在apache phoenix中由于意外原因无法构建索引

jvlzgdj9  于 2021-05-27  发布在  Hadoop
关注(0)|答案(0)|浏览(344)

我已经在hbase-2.2.2和hadoop-3.2.1上安装了phoenix-5当我在表上创建索引时,插入时会出现以下错误。有人知道问题出在哪里吗?

try {
            preparedStatement = connection.prepareStatement("create  Index  myIndex on city(name)");
            preparedStatement.executeUpdate();
            connection.commit();

        } catch (Exception e) {
            System.out.println(e.getMessage());
        }

org.apache.hadoop.hbase.client.retriesHaustedWithDetailsException:失败1操作:org.apache.phoenix.hbase.index.builder.indexbuildingfailureexception:由于意外原因无法生成索引!在org.apache.phoenix.hbase.index.util.indexmanagementutil.rethrowindexingexception(indexmanagementutil。java:206)在org.apache.phoenix.hbase.index.indexer.prebatchmutate(indexer。java:351)在org.apache.hadoop.hbase.regionserver.regionProcessorHost$28.call(regionProcessorHost。java:1019)在org.apache.hadoop.hbase.regionserver.regionProcessorHost$28.call(regionProcessorHost。java:1016)位于org.apache.hadoop.hbase.coprocessor.coprocessorhost$observeroperationwithoutresult.callobservator(协处理器主机)。java:551)位于org.apache.hadoop.hbase.coprocessor.coprocessorhost.execoperation(协处理器主机)。java:625)在org.apache.hadoop.hbase.regionserver.regionProcessorHost.prebatchmutate(regionProcessorHost。java:1016)在org.apache.hadoop.hbase.regionserver.hregion$mutationbatchoperation.prepareminibatchoperations(hregion。java:3675)在org.apache.hadoop.hbase.regionserver.hregion.dominibatchmutate(hregion。java:4091)在org.apache.hadoop.hbase.regionserver.hregion.batchmutate(hregion。java:4045)在org.apache.hadoop.hbase.regionserver.hregion.batchmutate(hregion。java:3976)在org.apache.hadoop.hbase.regionserver.rsrpcservices.dobatchop(rsrpcservices。java:1042)在org.apache.hadoop.hbase.regionserver.rsrpcservices.dononatomicbatchop(rsrpcservices。java:974)在org.apache.hadoop.hbase.regionserver.rsrpcservices.dononatomicregionmutation(rsrpcservices)。java:937)在org.apache.hadoop.hbase.regionserver.rsrpcservices.multi(rsrpcservices。java:2737)在org.apache.hadoop.hbase.shaded.protobuf.generated.clientprotos$clientservice$2.callblockingmethod(clientprotos。java:42202)在org.apache.hadoop.hbase.ipc.rpcserver.call(rpcserver。java:413)在org.apache.hadoop.hbase.ipc.callrunner.run(callrunner。java:133)在org.apache.hadoop.hbase.ipc.rpcexecutor$handler.run(rpcexecutor。java:338)在org.apache.hadoop.hbase.ipc.rpcexecutor$handler.run(rpcexecutor。java:318)原因:java.lang.verifyerror:classorg.apache.phoenix.hbase.index.covered.data.indexmemstore$1覆盖最终的方法比较;lorg/apache/hadoop/hbase/cell;)我在java.lang.classloader.defineclass1(本机方法)在java.lang.classloader.defineclass(classloader。java:760)在java.security.secureclassloader.defineclass(secureclassloader。java:142)在java.net.urlclassloader.defineclass(urlclassloader。java:467)在java.net.urlclassloader.access$100(urlclassloader。java:73)在java.net.urlclassloader$1.run(urlclassloader。java:368)在java.net.urlclassloader$1.run(urlclassloader。java:362)位于java.net.urlclassloader.findclass(urlclassloader)的java.security.accesscontroller.doprivileged(本机方法)。java:361)在java.lang.classloader.loadclass(classloader。java:424)在sun.misc.launcher$appclassloader.loadclass(launcher。java:331)在java.lang.classloader.loadclass(classloader。java:357)在org.apache.phoenix.hbase.index.covered.data.indexmemstore。java:82)在org.apache.phoenix.hbase.index.covered.localtablestate.(localtablestate。java:57)在org.apache.phoenix.hbase.index.covered.nontxindexbuilder.getindexupdate(nontxindexbuilder)。java:52)在org.apache.phoenix.hbase.index.builder.indexbuildmanager.getindexupdate(indexbuildmanager。java:90)在org.apache.phoenix.hbase.index.indexer.prebatchmutateWitheExceptions(索引器。java:503)在org.apache.phoenix.hbase.index.indexer.prebatchmutate(索引器。java:348) ... 18个以上:1次,有问题的服务器:ubuntu,160201580881208169

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题