phoenix同步索引超时问题:Error: Operation timed out. (state=TIM01,code=6000)

测试环境:hbase1.1.1 phoenix4.14.1

相同表结构,在小数据量的表(60W)同步索引成功,耗时173s。在大数据量的表(430w)同步索引,
时间超过600s(恰好是
phoenix.query.timeoutMs 默认的10分钟)时报超时异常,已在hbase-site.xml配置如下参数,
目测不生效的样子。求解




<property>
<name>phoenix.query.timeoutMs</name>
<value>1200000</value>
</property>

<property>
<name>phoenix.query.keepAliveMs</name>
<value>1200000</value>
</property>

<property>
<name>hbase.rpc.timeout</name>
<value>1200000</value>
</property>

<property>
<name>hbase.regionserver.lease.period</name>
<value>1200000</value>
</property>

<property>
<name>hbase.client.operation.timeout</name>
<value>1200000</value>
</property>

<property>
<name>hbase.client.scanner.caching</name>
<value>1000</value>
</property>

<property>
<name>hbase.client.scanner.timeout.period</name>
<value>1200000</value>
</property>

异常如下:
Error: Operation timed out. (state=TIM01,code=6000)
java.sql.SQLTimeoutException: Operation timed out.
at org.apache.phoenix.exception.SQLExceptionCode$15.newException(SQLExceptionCode.java:405)
at org.apache.phoenix.exception.SQLExceptionInfo.buildException(SQLExceptionInfo.java:150)
at org.apache.phoenix.iterate.BaseResultIterators.getIterators(BaseResultIterators.java:1344)
at org.apache.phoenix.iterate.BaseResultIterators.getIterators(BaseResultIterators.java:1239)
at org.apache.phoenix.iterate.RoundRobinResultIterator.getIterators(RoundRobinResultIterator.java:176)
at org.apache.phoenix.iterate.RoundRobinResultIterator.next(RoundRobinResultIterator.java:91)
at org.apache.phoenix.compile.UpsertCompiler$ClientUpsertSelectMutationPlan.execute(UpsertCompiler.java:1318)
at org.apache.phoenix.compile.DelegateMutationPlan.execute(DelegateMutationPlan.java:31)
at org.apache.phoenix.compile.PostIndexDDLCompiler$1.execute(PostIndexDDLCompiler.java:117)
at org.apache.phoenix.query.ConnectionQueryServicesImpl.updateData(ConnectionQueryServicesImpl.java:3663)
at org.apache.phoenix.schema.MetaDataClient.buildIndex(MetaDataClient.java:1382)
at org.apache.phoenix.schema.MetaDataClient.createIndex(MetaDataClient.java:1694)
at org.apache.phoenix.compile.CreateIndexCompiler$1.execute(CreateIndexCompiler.java:85)
at org.apache.phoenix.jdbc.PhoenixStatement$2.call(PhoenixStatement.java:406)
at org.apache.phoenix.jdbc.PhoenixStatement$2.call(PhoenixStatement.java:389)
at org.apache.phoenix.call.CallRunner.run(CallRunner.java:53)
at org.apache.phoenix.jdbc.PhoenixStatement.executeMutation(PhoenixStatement.java:388)
at org.apache.phoenix.jdbc.PhoenixStatement.executeMutation(PhoenixStatement.java:376)
at org.apache.phoenix.jdbc.PhoenixStatement.execute(PhoenixStatement.java:1789)
at sqlline.Commands.execute(Commands.java:822)
at sqlline.Commands.sql(Commands.java:732)
at sqlline.SqlLine.dispatch(SqlLine.java:813)
at sqlline.SqlLine.begin(SqlLine.java:686)
at sqlline.SqlLine.start(SqlLine.java:398)
at sqlline.SqlLine.main(SqlLine.java:291)






已邀请:

riyu_liang

赞同来自:

已解决,还需在phoenix/bin下添加以上相关配置

要回复问题请先登录注册


中国HBase技术社区微信公众号:
hbasegroup

欢迎加入HBase生态+Spark社区钉钉大群