An error is reported during Phoenix service query. The number of

举报
zhiru 发表于 2024/07/27 14:34:15 2024/07/27
【摘要】 [Problem Description]A Phoenix service query error is reported, and the number of concurrent queries reaches the upper limit.org.apache.phoenix.exception.PhoenixIOException: Task org.apache.phoenix...

[Problem Description]

A Phoenix service query error is reported, and the number of concurrent queries reaches the upper limit.

org.apache.phoenix.exception.PhoenixIOException: Task org.apache.phoenix.job.JobManager$InstrumentedJobFutureTask@6c0f32a6 rejected from org.apache.phoenix.job.JobManager$1@5e9e266e[Running, pool size = 128, active threads = 127, queued tasks = 5000, completed tasks = 1]

         at org.apache.phoenix.util.ServerUtil.parseServerException(ServerUtil.java:120)

         at org.apache.phoenix.iterate.BaseResultIterators.getIterators(BaseResultIterators.java:1024)

         at org.apache.phoenix.iterate.BaseResultIterators.getIterators(BaseResultIterators.java:916)

         at org.apache.phoenix.iterate.RoundRobinResultIterator.getIterators(RoundRobinResultIterator.java:176)

         at org.apache.phoenix.iterate.RoundRobinResultIterator.next(RoundRobinResultIterator.java:91)

         at org.apache.phoenix.jdbc.PhoenixResultSet.next(PhoenixResultSet.java:779)

         at com.main.opdata.OpDataQueryBytime2.queryLoad(OpDataQueryBytime2.java:81)

         at com.main.opdata.OpDataQueryBytime2.query(OpDataQueryBytime2.java:66)

         at com.main.opdata.OpDataTask.run(OpDataTask.java:29)

         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)

         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)

         at java.lang.Thread.run(Thread.java:748)

[Analysis Process]

1. Print query SQL execution plans. A maximum of 6236 tasks need to be started concurrently. By default, a maximum of 5000 tasks can be started at a time.

[Root Cause]

The number of concurrent query tasks is too large. The default number of tasks cannot meet the configuration requirements.

[Workaround]

Add the following configurations to the hbase-site.xml file on the service side to improve the query concurrency:

phoenix.query.threadPoolSize =512
phoenix.query.queueSize=10000

Determine the size of phoenix.query.queueSize based on the number of chunks printed in the execution plan.

【版权声明】本文为华为云社区用户原创内容,转载时必须标注文章的来源(华为云社区)、文章链接、文章作者等基本信息, 否则作者和本社区有权追究责任。如果您发现本社区中有涉嫌抄袭的内容,欢迎发送邮件进行举报,并提供相关证据,一经查实,本社区将立刻删除涉嫌侵权内容,举报邮箱: cloudbbs@huaweicloud.com
  • 点赞
  • 收藏
  • 关注作者

评论(0

0/1000
抱歉,系统识别当前为高风险访问,暂不支持该操作

全部回复

上滑加载中

设置昵称

在此一键设置昵称,即可参与社区互动!

*长度不超过10个汉字或20个英文字符,设置后3个月内不可修改。

*长度不超过10个汉字或20个英文字符,设置后3个月内不可修改。