【问题标题】:Phoenix create SecondaryIndex timeoutPhoenix 创建 SecondaryIndex 超时
【发布时间】:2016-10-21 03:20:49
【问题描述】:

我是 Phoenix 的新手,遇到了一个问题。首先,我在 Phoenix 上通过 java 创建了一个包含 30000000 条记录的表。然后,我想为表创建一个 phoenix global secondIndex。但是,当程序运行 10 分钟时,java 客户端会抛出 SQLTimeoutException。我不知道为什么,请帮助我。

java.sql.SQLTimeoutException: Operation timed out.
        at org.apache.phoenix.exception.SQLExceptionCode$15.newException(SQLExceptionCode.java:376)
        at org.apache.phoenix.exception.SQLExceptionInfo.buildException(SQLExceptionInfo.java:145)
        at org.apache.phoenix.iterate.BaseResultIterators.getIterators(BaseResultIterators.java:804)
        at org.apache.phoenix.iterate.BaseResultIterators.getIterators(BaseResultIterators.java:720)
        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$2.execute(UpsertCompiler.java:810)
        at org.apache.phoenix.compile.DelegateMutationPlan.execute(DelegateMutationPlan.java:31)
        at org.apache.phoenix.compile.PostIndexDDLCompiler$1.execute(PostIndexDDLCompiler.java:124)
        at org.apache.phoenix.query.ConnectionQueryServicesImpl.updateData(ConnectionQueryServicesImpl.java:2805)
        at org.apache.phoenix.schema.MetaDataClient.buildIndex(MetaDataClient.java:1153)
        at org.apache.phoenix.schema.MetaDataClient.createIndex(MetaDataClient.java:1462)
        at org.apache.phoenix.compile.CreateIndexCompiler$1.execute(CreateIndexCompiler.java:85)
        at org.apache.phoenix.jdbc.PhoenixStatement$2.call(PhoenixStatement.java:340)
        at org.apache.phoenix.jdbc.PhoenixStatement$2.call(PhoenixStatement.java:328)
        at org.apache.phoenix.call.CallRunner.run(CallRunner.java:53)
        at org.apache.phoenix.jdbc.PhoenixStatement.executeMutation(PhoenixStatement.java:326)
        at org.apache.phoenix.jdbc.PhoenixStatement.executeUpdate(PhoenixStatement.java:1369)
        at cc.xidian.PhoenixOperation.PhoenixSQLOperation.createSecondIndexHintForGeoHashValueLongOfTable(PhoenixSQLOperation.java:1713)
        at cc.xidian.MainTest.GeoHashMainTest.main(GeoHashMainTest.java:59)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at com.intellij.rt.execution.application.AppMain.main(AppMain.java:134)
CreateSecondIndex-Time: 602708 

【问题讨论】:

    标签: timeout phoenix secondary-indexes


    【解决方案1】:

    尝试使用异步选项创建索引。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2018-03-31
      • 1970-01-01
      • 2016-11-21
      • 2020-04-28
      • 1970-01-01
      • 2017-08-24
      • 2021-11-23
      相关资源
      最近更新 更多