hbase常见错误----单机版hbase启动失败zookeeper.RecoverableZooKeeper: ZooKeeper exists failed after...

本文记录了一次HBase启动失败的故障排查过程,通过启动Hadoop服务、清理HBase配置目录及重启HBase成功解决了问题。
2017-12-14 15:08:50,804 ERROR [main] zookeeper.RecoverableZooKeeper: ZooKeeper exists failed after 4 attempts
2017-12-14 15:08:50,806 WARN  [main] zookeeper.ZKUtil: hconnection-0x3078cac0x0, quorum=localhost:2181, baseZNode=/hbase Unable to set watcher on znode (/hbase/hbaseid)
org.apache.zookeeper.KeeperException$ConnectionLossException: KeeperErrorCode = ConnectionLoss for /hbase/hbaseid
    at org.apache.zookeeper.KeeperException.create(KeeperException.java:99)
    at org.apache.zookeeper.KeeperException.create(KeeperException.java:51)
    at org.apache.zookeeper.ZooKeeper.exists(ZooKeeper.java:1045)
    at org.apache.hadoop.hbase.zookeeper.RecoverableZooKeeper.exists(RecoverableZooKeeper.java:220)
    at org.apache.hadoop.hbase.zookeeper.ZKUtil.checkExists(ZKUtil.java:420)
    at org.apache.hadoop.hbase.zookeeper.ZKClusterId.readClusterIdZNode(ZKClusterId.java:65)
    at org.apache.hadoop.hbase.client.ZooKeeperRegistry.getClusterId(ZooKeeperRegistry.java:105)
    at org.apache.hadoop.hbase.client.ConnectionManager$HConnectionImplementation.retrieveClusterId(ConnectionManager.java:907)
    at org.apache.hadoop.hbase.client.ConnectionManager$HConnectionImplementation.<init>(ConnectionManager.java:691)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
    at org.apache.hadoop.hbase.client.ConnectionFactory.createConnection(ConnectionFactory.java:238)
    at org.apache.hadoop.hbase.client.ConnectionFactory.createConnection(ConnectionFactory.java:218)
    at org.apache.hadoop.hbase.client.ConnectionFactory.createConnection(ConnectionFactory.java:119)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at org.jruby.javasupport.JavaMethod.invokeDirectWithExceptionHandling(JavaMethod.java:450)
    at org.jruby.javasupport.JavaMethod.invokeStaticDirect(JavaMethod.java:362)
    at org.jruby.java.invokers.StaticMethodInvoker.call(StaticMethodInvoker.java:58)
    at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:312)
    at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:169)
    at org.jruby.ast.CallOneArgNode.interpret(CallOneArgNode.java:57)
    at org.jruby.ast.InstAsgnNode.interpret(InstAsgnNode.java:95)
    at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:104)
    at org.jruby.ast.BlockNode.interpret(BlockNode.java:71)
    at org.jruby.evaluator.ASTInterpreter.INTERPRET_METHOD(ASTInterpreter.java:74)
    at org.jruby.internal.runtime.methods.InterpretedMethod.call(InterpretedMethod.java:169)
    at org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:191)
    at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:302)
    at org.jruby.runtime.callsite.CachingCallSite.callBlock(CachingCallSite.java:144)
    at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:148)
    at org.jruby.RubyClass.newInstance(RubyClass.java:822)
    at org.jruby.RubyClass$i$newInstance.call(RubyClass$i$newInstance.gen:65535)
    at org.jruby.internal.runtime.methods.JavaMethod$JavaMethodZeroOrNBlock.call(JavaMethod.java:249)
    at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:292)
    at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:135)
    at root.software.hbase_minus_1_dot_3_dot_1.bin.$_dot_dot_.bin.hirb.__file__(/root/software/hbase-1.3.1/bin/../bin/hirb.rb:131)
    at root.software.hbase_minus_1_dot_3_dot_1.bin.$_dot_dot_.bin.hirb.load(/root/software/hbase-1.3.1/bin/../bin/hirb.rb)
    at org.jruby.Ruby.runScript(Ruby.java:697)
    at org.jruby.Ruby.runScript(Ruby.java:690)
    at org.jruby.Ruby.runNormally(Ruby.java:597)
    at org.jruby.Ruby.runFromMain(Ruby.java:446)
    at org.jruby.Main.doRunFromMain(Main.java:369)
    at org.jruby.Main.internalRun(Main.java:258)
    at org.jruby.Main.run(Main.java:224)
    at org.jruby.Main.run(Main.java:208)
    at org.jruby.Main.main(Main.java:188)
2017-12-14 15:08:50,829 ERROR [main] zookeeper.ZooKeeperWatcher: hconnection-0x3078cac0x0, quorum=localhost:2181, baseZNode=/hbase Received unexpected KeeperException, re-throwing exception
org.apache.zookeeper.KeeperException$ConnectionLossException: KeeperErrorCode = ConnectionLoss for /hbase/hbaseid
    at org.apache.zookeeper.KeeperException.create(KeeperException.java:99)
    at org.apache.zookeeper.KeeperException.create(KeeperException.java:51)
    at org.apache.zookeeper.ZooKeeper.exists(ZooKeeper.java:1045)
    at org.apache.hadoop.hbase.zookeeper.RecoverableZooKeeper.exists(RecoverableZooKeeper.java:220)
    at org.apache.hadoop.hbase.zookeeper.ZKUtil.checkExists(ZKUtil.java:420)
    at org.apache.hadoop.hbase.zookeeper.ZKClusterId.readClusterIdZNode(ZKClusterId.java:65)
    at org.apache.hadoop.hbase.client.ZooKeeperRegistry.getClusterId(ZooKeeperRegistry.java:105)
    at org.apache.hadoop.hbase.client.ConnectionManager$HConnectionImplementation.retrieveClusterId(ConnectionManager.java:907)
    at org.apache.hadoop.hbase.client.ConnectionManager$HConnectionImplementation.<init>(ConnectionManager.java:691)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
    at org.apache.hadoop.hbase.client.ConnectionFactory.createConnection(ConnectionFactory.java:238)
    at org.apache.hadoop.hbase.client.ConnectionFactory.createConnection(ConnectionFactory.java:218)
    at org.apache.hadoop.hbase.client.ConnectionFactory.createConnection(ConnectionFactory.java:119)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at org.jruby.javasupport.JavaMethod.invokeDirectWithExceptionHandling(JavaMethod.java:450)
    at org.jruby.javasupport.JavaMethod.invokeStaticDirect(JavaMethod.java:362)
    at org.jruby.java.invokers.StaticMethodInvoker.call(StaticMethodInvoker.java:58)
    at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:312)
    at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:169)
    at org.jruby.ast.CallOneArgNode.interpret(CallOneArgNode.java:57)
    at org.jruby.ast.InstAsgnNode.interpret(InstAsgnNode.java:95)
    at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:104)
    at org.jruby.ast.BlockNode.interpret(BlockNode.java:71)
    at org.jruby.evaluator.ASTInterpreter.INTERPRET_METHOD(ASTInterpreter.java:74)
    at org.jruby.internal.runtime.methods.InterpretedMethod.call(InterpretedMethod.java:169)
    at org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:191)
    at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:302)
    at org.jruby.runtime.callsite.CachingCallSite.callBlock(CachingCallSite.java:144)
    at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:148)
    at org.jruby.RubyClass.newInstance(RubyClass.java:822)
    at org.jruby.RubyClass$i$newInstance.call(RubyClass$i$newInstance.gen:65535)
    at org.jruby.internal.runtime.methods.JavaMethod$JavaMethodZeroOrNBlock.call(JavaMethod.java:249)
    at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:292)
    at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:135)
    at root.software.hbase_minus_1_dot_3_dot_1.bin.$_dot_dot_.bin.hirb.__file__(/root/software/hbase-1.3.1/bin/../bin/hirb.rb:131)
    at root.software.hbase_minus_1_dot_3_dot_1.bin.$_dot_dot_.bin.hirb.load(/root/software/hbase-1.3.1/bin/../bin/hirb.rb)
    at org.jruby.Ruby.runScript(Ruby.java:697)
    at org.jruby.Ruby.runScript(Ruby.java:690)
    at org.jruby.Ruby.runNormally(Ruby.java:597)
    at org.jruby.Ruby.runFromMain(Ruby.java:446)
    at org.jruby.Main.doRunFromMain(Main.java:369)
    at org.jruby.Main.internalRun(Main.java:258)
    at org.jruby.Main.run(Main.java:224)
    at org.jruby.Main.run(Main.java:208)
    at org.jruby.Main.main(Main.java:188)

这个错误的原因是因为,没有启动hadoop造成的。
我的解决方案是:
step1:启动hadoop namenode datanode

[root@dev-02 sbin]# ./hadoop-daemon start namenode
[root@dev-02 sbin]# ./hadoop-daemon start datanode

step2:删除hbase-site.xml中的hbase.rootdir目录下的文件。这些文件是hbase第一次启动生成的一些文件和配置信息。

<configuration>
  <property>
   <name>hbase.rootdir</name>
    <value>file:/root/software/hbase-1.3.1/hbase_data/hbase</value>
  </property>
</configuration>

[root@dev-02 conf]# rm -rf /root/software/hbase-1.3.1/hbase_data/hbase/*

step3:重新启动hbase

[root@dev-02 bin]# ./start-hbase.sh
查看进程状态: 进程状态ok
[root@dev-02 bin]# jps
3165 NameNode
4280 HMaster
4433 Main
3224 DataNode
8509 Jps

启动hbase shell

[root@dev-02 bin]# ./hbase shell
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/root/software/hbase-1.3.1/lib/slf4j-log4j12-1.7.5.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/root/software/hadoop-2.7.4/share/hadoop/common/lib/slf4j-log4j12-1.7.10.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory]
HBase Shell; enter 'help<RETURN>' for list of supported commands.
Type "exit<RETURN>" to leave the HBase Shell
Version 1.3.1, r930b9a55528fe45d8edce7af42fef2d35e77677a, Thu Apr  6 19:36:54 PDT 2017

hbase(main):001:0> list
TABLE                                                                                                  
0 row(s) in 0.8630 seconds

=> []
testParseConfig(com.alibaba.datax.plugin.reader.hbase11xsqlreader.HbaseSQLHelperTest) Time elapsed: 101.359 sec <<< ERROR! com.alibaba.datax.common.exception.DataXException: Code:[Hbasewriter-02], Description:[获取phoenix表的列值错误]. - HBase的columns配置不能为空,请添加目标表的列名配置.org.apache.hadoop.hbase.client.RetriesExhaustedException: Can't get the locations - java.sql.SQLException: org.apache.hadoop.hbase.client.RetriesExhaustedException: Can't get the locations at org.apache.phoenix.query.ConnectionQueryServicesImpl$13.call(ConnectionQueryServicesImpl.java:2468) at org.apache.phoenix.query.ConnectionQueryServicesImpl$13.call(ConnectionQueryServicesImpl.java:2374) at org.apache.phoenix.util.PhoenixContextExecutor.call(PhoenixContextExecutor.java:76) at org.apache.phoenix.query.ConnectionQueryServicesImpl.init(ConnectionQueryServicesImpl.java:2374) at org.apache.phoenix.jdbc.PhoenixDriver.getConnectionQueryServices(PhoenixDriver.java:255) at org.apache.phoenix.jdbc.PhoenixEmbeddedDriver.createConnection(PhoenixEmbeddedDriver.java:154) at org.apache.phoenix.jdbc.PhoenixDriver.connect(PhoenixDriver.java:221) at java.sql.DriverManager.getConnection(DriverManager.java:664) at java.sql.DriverManager.getConnection(DriverManager.java:208) at com.alibaba.datax.plugin.reader.hbase11xsqlreader.HbaseSQLHelper.getPColumnNames(HbaseSQLHelper.java:81) at com.alibaba.datax.plugin.reader.hbase11xsqlreader.HbaseSQLReaderConfig.parseTableConfig(HbaseSQLReaderConfig.java:136) at com.alibaba.datax.plugin.reader.hbase11xsqlreader.HbaseSQLReaderConfig.parse(HbaseSQLReaderConfig.java:75) at com.alibaba.datax.plugin.reader.hbase11xsqlreader.HbaseSQLHelper.parseConfig(HbaseSQLHelper.java:126) at com.alibaba.datax.plugin.reader.hbase11xsqlreader.HbaseSQLHelperTest.testParseConfig(HbaseSQLHelperTest.java:27) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) at org.junit.runners.ParentRunner.run(ParentRunner.java:413) at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:252) at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:141) at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:112) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189) at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165) at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85) at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:115) at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:75) Caused by: org.apache.hadoop.hbase.client.RetriesExhaustedException: Can't get the locations at org.apache.hadoop.hbase.client.RpcRetryingCallerWithReadReplicas.getRegionLocations(RpcRetryingCallerWithReadReplicas.java:312) at org.apache.hadoop.hbase.client.ScannerCallableWithReplicas.call(ScannerCallableWithReplicas.java:156) at org.apache.hadoop.hbase.client.ScannerCallableWithReplicas.call(ScannerCallableWithReplicas.java:60) at org.apache.hadoop.hbase.client.RpcRetryingCaller.callWithoutRetries(RpcRetryingCaller.java:210) at org.apache.hadoop.hbase.client.ClientScanner.call(ClientScanner.java:327) at org.apache.hadoop.hbase.client.ClientScanner.nextScanner(ClientScanner.java:302) at org.apache.hadoop.hbase.client.ClientScanner.initializeScannerInConstruction(ClientScanner.java:167) at org.apache.hadoop.hbase.client.ClientScanner.<init>(ClientScanner.java:162) at org.apache.hadoop.hbase.client.HTable.getScanner(HTable.java:797) at org.apache.hadoop.hbase.MetaTableAccessor.fullScan(MetaTableAccessor.java:602) at org.apache.hadoop.hbase.MetaTableAccessor.tableExists(MetaTableAccessor.java:366) at org.apache.hadoop.hbase.client.HBaseAdmin.tableExists(HBaseAdmin.java:403) at org.apache.phoenix.query.ConnectionQueryServicesImpl$13.call(ConnectionQueryServicesImpl.java:2402) ... 45 more at com.alibaba.datax.common.exception.DataXException.asDataXException(DataXException.java:41) at com.alibaba.datax.plugin.reader.hbase11xsqlreader.HbaseSQLReaderConfig.parseTableConfig(HbaseSQLReaderConfig.java:139) at com.alibaba.datax.plugin.reader.hbase11xsqlreader.HbaseSQLReaderConfig.parse(HbaseSQLReaderConfig.java:75) at com.alibaba.datax.plugin.reader.hbase11xsqlreader.HbaseSQLHelper.parseConfig(HbaseSQLHelper.java:126) at com.alibaba.datax.plugin.reader.hbase11xsqlreader.HbaseSQLHelperTest.testParseConfig(HbaseSQLHelperTest.java:27) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) at org.junit.runners.ParentRunner.run(ParentRunner.java:413) at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:252) at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:141) at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:112) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189) at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165) at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85) at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:115) at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:75) Caused by: java.sql.SQLException: org.apache.hadoop.hbase.client.RetriesExhaustedException: Can't get the locations at org.apache.phoenix.query.ConnectionQueryServicesImpl$13.call(ConnectionQueryServicesImpl.java:2468) at org.apache.phoenix.query.ConnectionQueryServicesImpl$13.call(ConnectionQueryServicesImpl.java:2374) at org.apache.phoenix.util.PhoenixContextExecutor.call(PhoenixContextExecutor.java:76) at org.apache.phoenix.query.ConnectionQueryServicesImpl.init(ConnectionQueryServicesImpl.java:2374) at org.apache.phoenix.jdbc.PhoenixDriver.getConnectionQueryServices(PhoenixDriver.java:255) at org.apache.phoenix.jdbc.PhoenixEmbeddedDriver.createConnection(PhoenixEmbeddedDriver.java:154) at org.apache.phoenix.jdbc.PhoenixDriver.connect(PhoenixDriver.java:221) at java.sql.DriverManager.getConnection(DriverManager.java:664) at java.sql.DriverManager.getConnection(DriverManager.java:208) at com.alibaba.datax.plugin.reader.hbase11xsqlreader.HbaseSQLHelper.getPColumnNames(HbaseSQLHelper.java:81) at com.alibaba.datax.plugin.reader.hbase11xsqlreader.HbaseSQLReaderConfig.parseTableConfig(HbaseSQLReaderConfig.java:136) ... 35 more Caused by: org.apache.hadoop.hbase.client.RetriesExhaustedException: Can't get the locations at org.apache.hadoop.hbase.client.RpcRetryingCallerWithReadReplicas.getRegionLocations(RpcRetryingCallerWithReadReplicas.java:312) at org.apache.hadoop.hbase.client.ScannerCallableWithReplicas.call(ScannerCallableWithReplicas.java:156) at org.apache.hadoop.hbase.client.ScannerCallableWithReplicas.call(ScannerCallableWithReplicas.java:60) at org.apache.hadoop.hbase.client.RpcRetryingCaller.callWithoutRetries(RpcRetryingCaller.java:210) at org.apache.hadoop.hbase.client.ClientScanner.call(ClientScanner.java:327) at org.apache.hadoop.hbase.client.ClientScanner.nextScanner(ClientScanner.java:302) at org.apache.hadoop.hbase.client.ClientScanner.initializeScannerInConstruction(ClientScanner.java:167) at org.apache.hadoop.hbase.client.ClientScanner.<init>(ClientScanner.java:162) at org.apache.hadoop.hbase.client.HTable.getScanner(HTable.java:797) at org.apache.hadoop.hbase.MetaTableAccessor.fullScan(MetaTableAccessor.java:602) at org.apache.hadoop.hbase.MetaTableAccessor.tableExists(MetaTableAccessor.java:366) at org.apache.hadoop.hbase.client.HBaseAdmin.tableExists(HBaseAdmin.java:403) at org.apache.phoenix.query.ConnectionQueryServicesImpl$13.call(ConnectionQueryServicesImpl.java:2402) ... 45 more testSplit(com.alibaba.datax.plugin.reader.hbase11xsqlreader.HbaseSQLHelperTest) Time elapsed: 90.924 sec <<< ERROR! com.alibaba.datax.common.exception.DataXException: Code:[Hbasewriter-02], Description:[获取phoenix表的列值错误]. - HBase的columns配置不能为空,请添加目标表的列名配置.org.apache.hadoop.hbase.client.RetriesExhaustedException: Can't get the locations - java.sql.SQLException: org.apache.hadoop.hbase.client.RetriesExhaustedException: Can't get the locations at org.apache.phoenix.query.ConnectionQueryServicesImpl$13.call(ConnectionQueryServicesImpl.java:2468) at org.apache.phoenix.query.ConnectionQueryServicesImpl$13.call(ConnectionQueryServicesImpl.java:2374) at org.apache.phoenix.util.PhoenixContextExecutor.call(PhoenixContextExecutor.java:76) at org.apache.phoenix.query.ConnectionQueryServicesImpl.init(ConnectionQueryServicesImpl.java:2374) at org.apache.phoenix.jdbc.PhoenixDriver.getConnectionQueryServices(PhoenixDriver.java:255) at org.apache.phoenix.jdbc.PhoenixEmbeddedDriver.createConnection(PhoenixEmbeddedDriver.java:154) at org.apache.phoenix.jdbc.PhoenixDriver.connect(PhoenixDriver.java:221) at java.sql.DriverManager.getConnection(DriverManager.java:664) at java.sql.DriverManager.getConnection(DriverManager.java:208) at com.alibaba.datax.plugin.reader.hbase11xsqlreader.HbaseSQLHelper.getPColumnNames(HbaseSQLHelper.java:81) at com.alibaba.datax.plugin.reader.hbase11xsqlreader.HbaseSQLReaderConfig.parseTableConfig(HbaseSQLReaderConfig.java:136) at com.alibaba.datax.plugin.reader.hbase11xsqlreader.HbaseSQLReaderConfig.parse(HbaseSQLReaderConfig.java:75) at com.alibaba.datax.plugin.reader.hbase11xsqlreader.HbaseSQLHelper.parseConfig(HbaseSQLHelper.java:126) at com.alibaba.datax.plugin.reader.hbase11xsqlreader.HbaseSQLHelperTest.testSplit(HbaseSQLHelperTest.java:36) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) at org.junit.runners.ParentRunner.run(ParentRunner.java:413) at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:252) at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:141) at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:112) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189) at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165) at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85) at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:115) at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:75) Caused by: org.apache.hadoop.hbase.client.RetriesExhaustedException: Can't get the locations at org.apache.hadoop.hbase.client.RpcRetryingCallerWithReadReplicas.getRegionLocations(RpcRetryingCallerWithReadReplicas.java:312) at org.apache.hadoop.hbase.client.ScannerCallableWithReplicas.call(ScannerCallableWithReplicas.java:156) at org.apache.hadoop.hbase.client.ScannerCallableWithReplicas.call(ScannerCallableWithReplicas.java:60) at org.apache.hadoop.hbase.client.RpcRetryingCaller.callWithoutRetries(RpcRetryingCaller.java:210) at org.apache.hadoop.hbase.client.ClientScanner.call(ClientScanner.java:327) at org.apache.hadoop.hbase.client.ClientScanner.nextScanner(ClientScanner.java:302) at org.apache.hadoop.hbase.client.ClientScanner.initializeScannerInConstruction(ClientScanner.java:167) at org.apache.hadoop.hbase.client.ClientScanner.<init>(ClientScanner.java:162) at org.apache.hadoop.hbase.client.HTable.getScanner(HTable.java:797) at org.apache.hadoop.hbase.MetaTableAccessor.fullScan(MetaTableAccessor.java:602) at org.apache.hadoop.hbase.MetaTableAccessor.tableExists(MetaTableAccessor.java:366) at org.apache.hadoop.hbase.client.HBaseAdmin.tableExists(HBaseAdmin.java:403) at org.apache.phoenix.query.ConnectionQueryServicesImpl$13.call(ConnectionQueryServicesImpl.java:2402) ... 45 more at com.alibaba.datax.common.exception.DataXException.asDataXException(DataXException.java:41) at com.alibaba.datax.plugin.reader.hbase11xsqlreader.HbaseSQLReaderConfig.parseTableConfig(HbaseSQLReaderConfig.java:139) at com.alibaba.datax.plugin.reader.hbase11xsqlreader.HbaseSQLReaderConfig.parse(HbaseSQLReaderConfig.java:75) at com.alibaba.datax.plugin.reader.hbase11xsqlreader.HbaseSQLHelper.parseConfig(HbaseSQLHelper.java:126) at com.alibaba.datax.plugin.reader.hbase11xsqlreader.HbaseSQLHelperTest.testSplit(HbaseSQLHelperTest.java:36) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) at org.junit.runners.ParentRunner.run(ParentRunner.java:413) at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:252) at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:141) at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:112) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189) at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165) at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85) at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:115) at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:75) Caused by: java.sql.SQLException: org.apache.hadoop.hbase.client.RetriesExhaustedException: Can't get the locations at org.apache.phoenix.query.ConnectionQueryServicesImpl$13.call(ConnectionQueryServicesImpl.java:2468) at org.apache.phoenix.query.ConnectionQueryServicesImpl$13.call(ConnectionQueryServicesImpl.java:2374) at org.apache.phoenix.util.PhoenixContextExecutor.call(PhoenixContextExecutor.java:76) at org.apache.phoenix.query.ConnectionQueryServicesImpl.init(ConnectionQueryServicesImpl.java:2374) at org.apache.phoenix.jdbc.PhoenixDriver.getConnectionQueryServices(PhoenixDriver.java:255) at org.apache.phoenix.jdbc.PhoenixEmbeddedDriver.createConnection(PhoenixEmbeddedDriver.java:154) at org.apache.phoenix.jdbc.PhoenixDriver.connect(PhoenixDriver.java:221) at java.sql.DriverManager.getConnection(DriverManager.java:664) at java.sql.DriverManager.getConnection(DriverManager.java:208) at com.alibaba.datax.plugin.reader.hbase11xsqlreader.HbaseSQLHelper.getPColumnNames(HbaseSQLHelper.java:81) at com.alibaba.datax.plugin.reader.hbase11xsqlreader.HbaseSQLReaderConfig.parseTableConfig(HbaseSQLReaderConfig.java:136) ... 35 more Caused by: org.apache.hadoop.hbase.client.RetriesExhaustedException: Can't get the locations at org.apache.hadoop.hbase.client.RpcRetryingCallerWithReadReplicas.getRegionLocations(RpcRetryingCallerWithReadReplicas.java:312) at org.apache.hadoop.hbase.client.ScannerCallableWithReplicas.call(ScannerCallableWithReplicas.java:156) at org.apache.hadoop.hbase.client.ScannerCallableWithReplicas.call(ScannerCallableWithReplicas.java:60) at org.apache.hadoop.hbase.client.RpcRetryingCaller.callWithoutRetries(RpcRetryingCaller.java:210) at org.apache.hadoop.hbase.client.ClientScanner.call(ClientScanner.java:327) at org.apache.hadoop.hbase.client.ClientScanner.nextScanner(ClientScanner.java:302) at org.apache.hadoop.hbase.client.ClientScanner.initializeScannerInConstruction(ClientScanner.java:167) at org.apache.hadoop.hbase.client.ClientScanner.<init>(ClientScanner.java:162) at org.apache.hadoop.hbase.client.HTable.getScanner(HTable.java:797) at org.apache.hadoop.hbase.MetaTableAccessor.fullScan(MetaTableAccessor.java:602) at org.apache.hadoop.hbase.MetaTableAccessor.tableExists(MetaTableAccessor.java:366) at org.apache.hadoop.hbase.client.HBaseAdmin.tableExists(HBaseAdmin.java:403) at org.apache.phoenix.query.ConnectionQueryServicesImpl$13.call(ConnectionQueryServicesImpl.java:2402) ... 45 more Running com.alibaba.datax.plugin.reader.hbase11xsqlreader.HbaseSQLReaderTaskTest 16:30:15.883 [main] DEBUG o.a.p.j.PhoenixEmbeddedDriver$ConnectionInfo - Principal and keytab not provided, not attempting Kerberos login 16:30:15.921 [main] INFO o.a.p.q.ConnectionQueryServicesImpl - An instance of ConnectionQueryServices was created. 16:30:15.921 [main] INFO org.apache.zookeeper.ZooKeeper - Initiating client connection, connectString=hb-proxy-pub-xxx-001.hbase.rds.aliyuncs.com:2181,hb-proxy-pub-xxx-002.hbase.rds.aliyuncs.com:2181,hb-proxy-pub-xxx-003.hbase.rds.aliyuncs.com:2181 sessionTimeout=90000 watcher=hconnection-0xa4add540x0, quorum=hb-proxy-pub-xxx-001.hbase.rds.aliyuncs.com:2181,hb-proxy-pub-xxx-002.hbase.rds.aliyuncs.com:2181,hb-proxy-pub-xxx-003.hbase.rds.aliyuncs.com:2181, baseZNode=/hbase 16:30:15.921 [main] INFO org.apache.zookeeper.ZooKeeper - Initiating client connection, connectString=hb-proxy-pub-xxx-001.hbase.rds.aliyuncs.com:2181,hb-proxy-pub-xxx-002.hbase.rds.aliyuncs.com:2181,hb-proxy-pub-xxx-003.hbase.rds.aliyuncs.com:2181 sessionTimeout=90000 watcher=hconnection-0xa4add540x0, quorum=hb-proxy-pub-xxx-001.hbase.rds.aliyuncs.com:2181,hb-proxy-pub-xxx-002.hbase.rds.aliyuncs.com:2181,hb-proxy-pub-xxx-003.hbase.rds.aliyuncs.com:2181, baseZNode=/hbase 16:30:16.933 [main] INFO org.apache.zookeeper.ZooKeeper - Initiating client connection, connectString=hb-proxy-pub-xxx-001.hbase.rds.aliyuncs.com:2181,hb-proxy-pub-xxx-002.hbase.rds.aliyuncs.com:2181,hb-proxy-pub-xxx-003.hbase.rds.aliyuncs.com:2181 sessionTimeout=90000 watcher=hconnection-0xa4add540x0, quorum=hb-proxy-pub-xxx-001.hbase.rds.aliyuncs.com:2181,hb-proxy-pub-xxx-002.hbase.rds.aliyuncs.com:2181,hb-proxy-pub-xxx-003.hbase.rds.aliyuncs.com:2181, baseZNode=/hbase 16:30:18.939 [main] INFO org.apache.zookeeper.ZooKeeper - Initiating client connection, connectString=hb-proxy-pub-xxx-001.hbase.rds.aliyuncs.com:2181,hb-proxy-pub-xxx-002.hbase.rds.aliyuncs.com:2181,hb-proxy-pub-xxx-003.hbase.rds.aliyuncs.com:2181 sessionTimeout=90000 watcher=hconnection-0xa4add540x0, quorum=hb-proxy-pub-xxx-001.hbase.rds.aliyuncs.com:2181,hb-proxy-pub-xxx-002.hbase.rds.aliyuncs.com:2181,hb-proxy-pub-xxx-003.hbase.rds.aliyuncs.com:2181, baseZNode=/hbase 16:30:22.950 [main] INFO org.apache.zookeeper.ZooKeeper - Initiating client connection, connectString=hb-proxy-pub-xxx-001.hbase.rds.aliyuncs.com:2181,hb-proxy-pub-xxx-002.hbase.rds.aliyuncs.com:2181,hb-proxy-pub-xxx-003.hbase.rds.aliyuncs.com:2181 sessionTimeout=90000 watcher=hconnection-0xa4add540x0, quorum=hb-proxy-pub-xxx-001.hbase.rds.aliyuncs.com:2181,hb-proxy-pub-xxx-002.hbase.rds.aliyuncs.com:2181,hb-proxy-pub-xxx-003.hbase.rds.aliyuncs.com:2181, baseZNode=/hbase 16:30:30.955 [main] INFO org.apache.zookeeper.ZooKeeper - Initiating client connection, connectString=hb-proxy-pub-xxx-001.hbase.rds.aliyuncs.com:2181,hb-proxy-pub-xxx-002.hbase.rds.aliyuncs.com:2181,hb-proxy-pub-xxx-003.hbase.rds.aliyuncs.com:2181 sessionTimeout=90000 watcher=hconnection-0xa4add540x0, quorum=hb-proxy-pub-xxx-001.hbase.rds.aliyuncs.com:2181,hb-proxy-pub-xxx-002.hbase.rds.aliyuncs.com:2181,hb-proxy-pub-xxx-003.hbase.rds.aliyuncs.com:2181, baseZNode=/hbase 16:30:30.957 [main] INFO o.a.p.q.ConnectionQueryServicesImpl - HConnection established. Stacktrace for informational purposes: hconnection-0xa4add54 16:30:30.957 [main] INFO org.apache.zookeeper.ZooKeeper - Initiating client connection, connectString=hb-proxy-pub-xxx-001.hbase.rds.aliyuncs.com:2181,hb-proxy-pub-xxx-002.hbase.rds.aliyuncs.com:2181,hb-proxy-pub-xxx-003.hbase.rds.aliyuncs.com:2181 sessionTimeout=90000 watcher=hconnection-0xa4add540x0, quorum=hb-proxy-pub-xxx-001.hbase.rds.aliyuncs.com:2181,hb-proxy-pub-xxx-002.hbase.rds.aliyuncs.com:2181,hb-proxy-pub-xxx-003.hbase.rds.aliyuncs.com:2181, baseZNode=/hbase 16:30:31.963 [main] INFO org.apache.zookeeper.ZooKeeper - Initiating client connection, connectString=hb-proxy-pub-xxx-001.hbase.rds.aliyuncs.com:2181,hb-proxy-pub-xxx-002.hbase.rds.aliyuncs.com:2181,hb-proxy-pub-xxx-003.hbase.rds.aliyuncs.com:2181 sessionTimeout=90000 watcher=hconnection-0xa4add540x0, quorum=hb-proxy-pub-xxx-001.hbase.rds.aliyuncs.com:2181,hb-proxy-pub-xxx-002.hbase.rds.aliyuncs.com:2181,hb-proxy-pub-xxx-003.hbase.rds.aliyuncs.com:2181, baseZNode=/hbase 16:30:33.970 [main] INFO org.apache.zookeeper.ZooKeeper - Initiating client connection, connectString=hb-proxy-pub-xxx-001.hbase.rds.aliyuncs.com:2181,hb-proxy-pub-xxx-002.hbase.rds.aliyuncs.com:2181,hb-proxy-pub-xxx-003.hbase.rds.aliyuncs.com:2181 sessionTimeout=90000 watcher=hconnection-0xa4add540x0, quorum=hb-proxy-pub-xxx-001.hbase.rds.aliyuncs.com:2181,hb-proxy-pub-xxx-002.hbase.rds.aliyuncs.com:2181,hb-proxy-pub-xxx-003.hbase.rds.aliyuncs.com:2181, baseZNode=/hbase 16:30:37.973 [main] INFO org.apache.zookeeper.ZooKeeper - Initiating client connection, connectString=hb-proxy-pub-xxx-001.hbase.rds.aliyuncs.com:2181,hb-proxy-pub-xxx-002.hbase.rds.aliyuncs.com:2181,hb-proxy-pub-xxx-003.hbase.rds.aliyuncs.com:2181 sessionTimeout=90000 watcher=hconnection-0xa4add540x0, quorum=hb-proxy-pub-xxx-001.hbase.rds.aliyuncs.com:2181,hb-proxy-pub-xxx-002.hbase.rds.aliyuncs.com:2181,hb-proxy-pub-xxx-003.hbase.rds.aliyuncs.com:2181, baseZNode=/hbase 16:30:45.985 [main] INFO org.apache.zookeeper.ZooKeeper - Initiating client connection, connectString=hb-proxy-pub-xxx-001.hbase.rds.aliyuncs.com:2181,hb-proxy-pub-xxx-002.hbase.rds.aliyuncs.com:2181,hb-proxy-pub-xxx-003.hbase.rds.aliyuncs.com:2181 sessionTimeout=90000 watcher=hconnection-0xa4add540x0, quorum=hb-proxy-pub-xxx-001.hbase.rds.aliyuncs.com:2181,hb-proxy-pub-xxx-002.hbase.rds.aliyuncs.com:2181,hb-proxy-pub-xxx-003.hbase.rds.aliyuncs.com:2181, baseZNode=/hbase 16:30:45.989 [main] INFO org.apache.zookeeper.ZooKeeper - Initiating client connection, connectString=hb-proxy-pub-xxx-001.hbase.rds.aliyuncs.com:2181,hb-proxy-pub-xxx-002.hbase.rds.aliyuncs.com:2181,hb-proxy-pub-xxx-003.hbase.rds.aliyuncs.com:2181 sessionTimeout=90000 watcher=hconnection-0xa4add540x0, quorum=hb-proxy-pub-xxx-001.hbase.rds.aliyuncs.com:2181,hb-proxy-pub-xxx-002.hbase.rds.aliyuncs.com:2181,hb-proxy-pub-xxx-003.hbase.rds.aliyuncs.com:2181, baseZNode=/hbase 16:30:46.998 [main] INFO org.apache.zookeeper.ZooKeeper - Initiating client connection, connectString=hb-proxy-pub-xxx-001.hbase.rds.aliyuncs.com:2181,hb-proxy-pub-xxx-002.hbase.rds.aliyuncs.com:2181,hb-proxy-pub-xxx-003.hbase.rds.aliyuncs.com:2181 sessionTimeout=90000 watcher=hconnection-0xa4add540x0, quorum=hb-proxy-pub-xxx-001.hbase.rds.aliyuncs.com:2181,hb-proxy-pub-xxx-002.hbase.rds.aliyuncs.com:2181,hb-proxy-pub-xxx-003.hbase.rds.aliyuncs.com:2181, baseZNode=/hbase 16:30:49.008 [main] INFO org.apache.zookeeper.ZooKeeper - Initiating client connection, connectString=hb-proxy-pub-xxx-001.hbase.rds.aliyuncs.com:2181,hb-proxy-pub-xxx-002.hbase.rds.aliyuncs.com:2181,hb-proxy-pub-xxx-003.hbase.rds.aliyuncs.com:2181 sessionTimeout=90000 watcher=hconnection-0xa4add540x0, quorum=hb-proxy-pub-xxx-001.hbase.rds.aliyuncs.com:2181,hb-proxy-pub-xxx-002.hbase.rds.aliyuncs.com:2181,hb-proxy-pub-xxx-003.hbase.rds.aliyuncs.com:2181, baseZNode=/hbase 16:30:53.019 [main] INFO org.apache.zookeeper.ZooKeeper - Initiating client connection, connectString=hb-proxy-pub-xxx-001.hbase.rds.aliyuncs.com:2181,hb-proxy-pub-xxx-002.hbase.rds.aliyuncs.com:2181,hb-proxy-pub-xxx-003.hbase.rds.aliyuncs.com:2181 sessionTimeout=90000 watcher=hconnection-0xa4add540x0, quorum=hb-proxy-pub-xxx-001.hbase.rds.aliyuncs.com:2181,hb-proxy-pub-xxx-002.hbase.rds.aliyuncs.com:2181,hb-proxy-pub-xxx-003.hbase.rds.aliyuncs.com:2181, baseZNode=/hbase 16:31:01.032 [main] INFO org.apache.zookeeper.ZooKeeper - Initiating client connection, connectString=hb-proxy-pub-xxx-001.hbase.rds.aliyuncs.com:2181,hb-proxy-pub-xxx-002.hbase.rds.aliyuncs.com:2181,hb-proxy-pub-xxx-003.hbase.rds.aliyuncs.com:2181 sessionTimeout=90000 watcher=hconnection-0xa4add540x0, quorum=hb-proxy-pub-xxx-001.hbase.rds.aliyuncs.com:2181,hb-proxy-pub-xxx-002.hbase.rds.aliyuncs.com:2181,hb-proxy-pub-xxx-003.hbase.rds.aliyuncs.com:2181, baseZNode=/hbase 16:31:01.243 [main] INFO org.apache.zookeeper.ZooKeeper - Initiating client connection, connectString=hb-proxy-pub-xxx-001.hbase.rds.aliyuncs.com:2181,hb-proxy-pub-xxx-002.hbase.rds.aliyuncs.com:2181,hb-proxy-pub-xxx-003.hbase.rds.aliyuncs.com:2181 sessionTimeout=90000 watcher=hconnection-0xa4add540x0, quorum=hb-proxy-pub-xxx-001.hbase.rds.aliyuncs.com:2181,hb-proxy-pub-xxx-002.hbase.rds.aliyuncs.com:2181,hb-proxy-pub-xxx-003.hbase.rds.aliyuncs.com:2181, baseZNode=/hbase 16:31:02.245 [main] INFO org.apache.zookeeper.ZooKeeper - Initiating client connection, connectString=hb-proxy-pub-xxx-001.hbase.rds.aliyuncs.com:2181,hb-proxy-pub-xxx-002.hbase.rds.aliyuncs.com:2181,hb-proxy-pub-xxx-003.hbase.rds.aliyuncs.com:2181 sessionTimeout=90000 watcher=hconnection-0xa4add540x0, quorum=hb-proxy-pub-xxx-001.hbase.rds.aliyuncs.com:2181,hb-proxy-pub-xxx-002.hbase.rds.aliyuncs.com:2181,hb-proxy-pub-xxx-003.hbase.rds.aliyuncs.com:2181, baseZNode=/hbase 16:31:04.255 [main] INFO org.apache.zookeeper.ZooKeeper - Initiating client connection, connectString=hb-proxy-pub-xxx-001.hbase.rds.aliyuncs.com:2181,hb-proxy-pub-xxx-002.hbase.rds.aliyuncs.com:2181,hb-proxy-pub-xxx-003.hbase.rds.aliyuncs.com:2181 sessionTimeout=90000 watcher=hconnection-0xa4add540x0, quorum=hb-proxy-pub-xxx-001.hbase.rds.aliyuncs.com:2181,hb-proxy-pub-xxx-002.hbase.rds.aliyuncs.com:2181,hb-proxy-pub-xxx-003.hbase.rds.aliyuncs.com:2181, baseZNode=/hbase 16:31:08.260 [main] INFO org.apache.zookeeper.ZooKeeper - Initiating client connection, connectString=hb-proxy-pub-xxx-001.hbase.rds.aliyuncs.com:2181,hb-proxy-pub-xxx-002.hbase.rds.aliyuncs.com:2181,hb-proxy-pub-xxx-003.hbase.rds.aliyuncs.com:2181 sessionTimeout=90000 watcher=hconnection-0xa4add540x0, quorum=hb-proxy-pub-xxx-001.hbase.rds.aliyuncs.com:2181,hb-proxy-pub-xxx-002.hbase.rds.aliyuncs.com:2181,hb-proxy-pub-xxx-003.hbase.rds.aliyuncs.com:2181, baseZNode=/hbase 16:31:16.262 [main] INFO org.apache.zookeeper.ZooKeeper - Initiating client connection, connectString=hb-proxy-pub-xxx-001.hbase.rds.aliyuncs.com:2181,hb-proxy-pub-xxx-002.hbase.rds.aliyuncs.com:2181,hb-proxy-pub-xxx-003.hbase.rds.aliyuncs.com:2181 sessionTimeout=90000 watcher=hconnection-0xa4add540x0, quorum=hb-proxy-pub-xxx-001.hbase.rds.aliyuncs.com:2181,hb-proxy-pub-xxx-002.hbase.rds.aliyuncs.com:2181,hb-proxy-pub-xxx-003.hbase.rds.aliyuncs.com:2181, baseZNode=/hbase 16:31:16.471 [main] INFO org.apache.zookeeper.ZooKeeper - Initiating client connection, connectString=hb-proxy-pub-xxx-001.hbase.rds.aliyuncs.com:2181,hb-proxy-pub-xxx-002.hbase.rds.aliyuncs.com:2181,hb-proxy-pub-xxx-003.hbase.rds.aliyuncs.com:2181 sessionTimeout=90000 watcher=hconnection-0xa4add540x0, quorum=hb-proxy-pub-xxx-001.hbase.rds.aliyuncs.com:2181,hb-proxy-pub-xxx-002.hbase.rds.aliyuncs.com:2181,hb-proxy-pub-xxx-003.hbase.rds.aliyuncs.com:2181, baseZNode=/hbase 16:31:17.473 [main] INFO org.apache.zookeeper.ZooKeeper - Initiating client connection, connectString=hb-proxy-pub-xxx-001.hbase.rds.aliyuncs.com:2181,hb-proxy-pub-xxx-002.hbase.rds.aliyuncs.com:2181,hb-proxy-pub-xxx-003.hbase.rds.aliyuncs.com:2181 sessionTimeout=90000 watcher=hconnection-0xa4add540x0, quorum=hb-proxy-pub-xxx-001.hbase.rds.aliyuncs.com:2181,hb-proxy-pub-xxx-002.hbase.rds.aliyuncs.com:2181,hb-proxy-pub-xxx-003.hbase.rds.aliyuncs.com:2181, baseZNode=/hbase 16:31:19.480 [main] INFO org.apache.zookeeper.ZooKeeper - Initiating client connection, connectString=hb-proxy-pub-xxx-001.hbase.rds.aliyuncs.com:2181,hb-proxy-pub-xxx-002.hbase.rds.aliyuncs.com:2181,hb-proxy-pub-xxx-003.hbase.rds.aliyuncs.com:2181 sessionTimeout=90000 watcher=hconnection-0xa4add540x0, quorum=hb-proxy-pub-xxx-001.hbase.rds.aliyuncs.com:2181,hb-proxy-pub-xxx-002.hbase.rds.aliyuncs.com:2181,hb-proxy-pub-xxx-003.hbase.rds.aliyuncs.com:2181, baseZNode=/hbase 16:31:23.482 [main] INFO org.apache.zookeeper.ZooKeeper - Initiating client connection, connectString=hb-proxy-pub-xxx-001.hbase.rds.aliyuncs.com:2181,hb-proxy-pub-xxx-002.hbase.rds.aliyuncs.com:2181,hb-proxy-pub-xxx-003.hbase.rds.aliyuncs.com:2181 sessionTimeout=90000 watcher=hconnection-0xa4add540x0, quorum=hb-proxy-pub-xxx-001.hbase.rds.aliyuncs.com:2181,hb-proxy-pub-xxx-002.hbase.rds.aliyuncs.com:2181,hb-proxy-pub-xxx-003.hbase.rds.aliyuncs.com:2181, baseZNode=/hbase 16:31:31.485 [main] INFO org.apache.zookeeper.ZooKeeper - Initiating client connection, connectString=hb-proxy-pub-xxx-001.hbase.rds.aliyuncs.com:2181,hb-proxy-pub-xxx-002.hbase.rds.aliyuncs.com:2181,hb-proxy-pub-xxx-003.hbase.rds.aliyuncs.com:2181 sessionTimeout=90000 watcher=hconnection-0xa4add540x0, quorum=hb-proxy-pub-xxx-001.hbase.rds.aliyuncs.com:2181,hb-proxy-pub-xxx-002.hbase.rds.aliyuncs.com:2181,hb-proxy-pub-xxx-003.hbase.rds.aliyuncs.com:2181, baseZNode=/hbase 16:31:31.724 [main] INFO org.apache.zookeeper.ZooKeeper - Initiating client connection, connectString=hb-proxy-pub-xxx-001.hbase.rds.aliyuncs.com:2181,hb-proxy-pub-xxx-002.hbase.rds.aliyuncs.com:2181,hb-proxy-pub-xxx-003.hbase.rds.aliyuncs.com:2181 sessionTimeout=90000 watcher=hconnection-0xa4add540x0, quorum=hb-proxy-pub-xxx-001.hbase.rds.aliyuncs.com:2181,hb-proxy-pub-xxx-002.hbase.rds.aliyuncs.com:2181,hb-proxy-pub-xxx-003.hbase.rds.aliyuncs.com:2181, baseZNode=/hbase 16:31:32.730 [main] INFO org.apache.zookeeper.ZooKeeper - Initiating client connection, connectString=hb-proxy-pub-xxx-001.hbase.rds.aliyuncs.com:2181,hb-proxy-pub-xxx-002.hbase.rds.aliyuncs.com:2181,hb-proxy-pub-xxx-003.hbase.rds.aliyuncs.com:2181 sessionTimeout=90000 watcher=hconnection-0xa4add540x0, quorum=hb-proxy-pub-xxx-001.hbase.rds.aliyuncs.com:2181,hb-proxy-pub-xxx-002.hbase.rds.aliyuncs.com:2181,hb-proxy-pub-xxx-003.hbase.rds.aliyuncs.com:2181, baseZNode=/hbase 16:31:34.738 [main] INFO org.apache.zookeeper.ZooKeeper - Initiating client connection, connectString=hb-proxy-pub-xxx-001.hbase.rds.aliyuncs.com:2181,hb-proxy-pub-xxx-002.hbase.rds.aliyuncs.com:2181,hb-proxy-pub-xxx-003.hbase.rds.aliyuncs.com:2181 sessionTimeout=90000 watcher=hconnection-0xa4add540x0, quorum=hb-proxy-pub-xxx-001.hbase.rds.aliyuncs.com:2181,hb-proxy-pub-xxx-002.hbase.rds.aliyuncs.com:2181,hb-proxy-pub-xxx-003.hbase.rds.aliyuncs.com:2181, baseZNode=/hbase 16:31:38.741 [main] INFO org.apache.zookeeper.ZooKeeper - Initiating client connection, connectString=hb-proxy-pub-xxx-001.hbase.rds.aliyuncs.com:2181,hb-proxy-pub-xxx-002.hbase.rds.aliyuncs.com:2181,hb-proxy-pub-xxx-003.hbase.rds.aliyuncs.com:2181 sessionTimeout=90000 watcher=hconnection-0xa4add540x0, quorum=hb-proxy-pub-xxx-001.hbase.rds.aliyuncs.com:2181,hb-proxy-pub-xxx-002.hbase.rds.aliyuncs.com:2181,hb-proxy-pub-xxx-003.hbase.rds.aliyuncs.com:2181, baseZNode=/hbase 16:31:46.749 [main] INFO org.apache.zookeeper.ZooKeeper - Initiating client connection, connectString=hb-proxy-pub-xxx-001.hbase.rds.aliyuncs.com:2181,hb-proxy-pub-xxx-002.hbase.rds.aliyuncs.com:2181,hb-proxy-pub-xxx-003.hbase.rds.aliyuncs.com:2181 sessionTimeout=90000 watcher=hconnection-0xa4add540x0, quorum=hb-proxy-pub-xxx-001.hbase.rds.aliyuncs.com:2181,hb-proxy-pub-xxx-002.hbase.rds.aliyuncs.com:2181,hb-proxy-pub-xxx-003.hbase.rds.aliyuncs.com:2181, baseZNode=/hbase 16:31:46.751 [main] DEBUG o.apache.phoenix.jdbc.PhoenixDriver - Expiring hb-proxy-pub-xxx-001.hbase.rds.aliyuncs.com,hb-proxy-pub-xxx-002.hbase.rds.aliyuncs.com,hb-proxy-pub-xxx-003.hbase.rds.aliyuncs.com:2181:/hbase because of EXPLICIT Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 90.857 sec <<< FAILURE! testReadRecord(com.alibaba.datax.plugin.reader.hbase11xsqlreader.HbaseSQLReaderTaskTest) Time elapsed: 90.857 sec <<< ERROR! com.alibaba.datax.common.exception.DataXException: Code:[Hbasewriter-02], Description:[获取phoenix表的列值错误]. - HBase的columns配置不能为空,请添加目标表的列名配置.org.apache.hadoop.hbase.client.RetriesExhaustedException: Can't get the locations - java.sql.SQLException: org.apache.hadoop.hbase.client.RetriesExhaustedException: Can't get the locations at org.apache.phoenix.query.ConnectionQueryServicesImpl$13.call(ConnectionQueryServicesImpl.java:2468) at org.apache.phoenix.query.ConnectionQueryServicesImpl$13.call(ConnectionQueryServicesImpl.java:2374) at org.apache.phoenix.util.PhoenixContextExecutor.call(PhoenixContextExecutor.java:76) at org.apache.phoenix.query.ConnectionQueryServicesImpl.init(ConnectionQueryServicesImpl.java:2374) at org.apache.phoenix.jdbc.PhoenixDriver.getConnectionQueryServices(PhoenixDriver.java:255) at org.apache.phoenix.jdbc.PhoenixEmbeddedDriver.createConnection(PhoenixEmbeddedDriver.java:154) at org.apache.phoenix.jdbc.PhoenixDriver.connect(PhoenixDriver.java:221) at java.sql.DriverManager.getConnection(DriverManager.java:664) at java.sql.DriverManager.getConnection(DriverManager.java:208) at com.alibaba.datax.plugin.reader.hbase11xsqlreader.HbaseSQLHelper.getPColumnNames(HbaseSQLHelper.java:81) at com.alibaba.datax.plugin.reader.hbase11xsqlreader.HbaseSQLReaderConfig.parseTableConfig(HbaseSQLReaderConfig.java:136) at com.alibaba.datax.plugin.reader.hbase11xsqlreader.HbaseSQLReaderConfig.parse(HbaseSQLReaderConfig.java:75) at com.alibaba.datax.plugin.reader.hbase11xsqlreader.HbaseSQLHelper.parseConfig(HbaseSQLHelper.java:126) at com.alibaba.datax.plugin.reader.hbase11xsqlreader.HbaseSQLReaderTaskTest.generateSplitConfig(HbaseSQLReaderTaskTest.java:28) at com.alibaba.datax.plugin.reader.hbase11xsqlreader.HbaseSQLReaderTaskTest.testReadRecord(HbaseSQLReaderTaskTest.java:36) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) at org.junit.runners.ParentRunner.run(ParentRunner.java:413) at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:252) at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:141) at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:112) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189) at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165) at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85) at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:115) at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:75) Caused by: org.apache.hadoop.hbase.client.RetriesExhaustedException: Can't get the locations at org.apache.hadoop.hbase.client.RpcRetryingCallerWithReadReplicas.getRegionLocations(RpcRetryingCallerWithReadReplicas.java:312) at org.apache.hadoop.hbase.client.ScannerCallableWithReplicas.call(ScannerCallableWithReplicas.java:156) at org.apache.hadoop.hbase.client.ScannerCallableWithReplicas.call(ScannerCallableWithReplicas.java:60) at org.apache.hadoop.hbase.client.RpcRetryingCaller.callWithoutRetries(RpcRetryingCaller.java:210) at org.apache.hadoop.hbase.client.ClientScanner.call(ClientScanner.java:327) at org.apache.hadoop.hbase.client.ClientScanner.nextScanner(ClientScanner.java:302) at org.apache.hadoop.hbase.client.ClientScanner.initializeScannerInConstruction(ClientScanner.java:167) at org.apache.hadoop.hbase.client.ClientScanner.<init>(ClientScanner.java:162) at org.apache.hadoop.hbase.client.HTable.getScanner(HTable.java:797) at org.apache.hadoop.hbase.MetaTableAccessor.fullScan(MetaTableAccessor.java:602) at org.apache.hadoop.hbase.MetaTableAccessor.tableExists(MetaTableAccessor.java:366) at org.apache.hadoop.hbase.client.HBaseAdmin.tableExists(HBaseAdmin.java:403) at org.apache.phoenix.query.ConnectionQueryServicesImpl$13.call(ConnectionQueryServicesImpl.java:2402) ... 46 more at com.alibaba.datax.common.exception.DataXException.asDataXException(DataXException.java:41) at com.alibaba.datax.plugin.reader.hbase11xsqlreader.HbaseSQLReaderConfig.parseTableConfig(HbaseSQLReaderConfig.java:139) at com.alibaba.datax.plugin.reader.hbase11xsqlreader.HbaseSQLReaderConfig.parse(HbaseSQLReaderConfig.java:75) at com.alibaba.datax.plugin.reader.hbase11xsqlreader.HbaseSQLHelper.parseConfig(HbaseSQLHelper.java:126) at com.alibaba.datax.plugin.reader.hbase11xsqlreader.HbaseSQLReaderTaskTest.generateSplitConfig(HbaseSQLReaderTaskTest.java:28) at com.alibaba.datax.plugin.reader.hbase11xsqlreader.HbaseSQLReaderTaskTest.testReadRecord(HbaseSQLReaderTaskTest.java:36) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) at org.junit.runners.ParentRunner.run(ParentRunner.java:413) at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:252) at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:141) at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:112) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189) at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165) at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85) at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:115) at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:75) Caused by: java.sql.SQLException: org.apache.hadoop.hbase.client.RetriesExhaustedException: Can't get the locations at org.apache.phoenix.query.ConnectionQueryServicesImpl$13.call(ConnectionQueryServicesImpl.java:2468) at org.apache.phoenix.query.ConnectionQueryServicesImpl$13.call(ConnectionQueryServicesImpl.java:2374) at org.apache.phoenix.util.PhoenixContextExecutor.call(PhoenixContextExecutor.java:76) at org.apache.phoenix.query.ConnectionQueryServicesImpl.init(ConnectionQueryServicesImpl.java:2374) at org.apache.phoenix.jdbc.PhoenixDriver.getConnectionQueryServices(PhoenixDriver.java:255) at org.apache.phoenix.jdbc.PhoenixEmbeddedDriver.createConnection(PhoenixEmbeddedDriver.java:154) at org.apache.phoenix.jdbc.PhoenixDriver.connect(PhoenixDriver.java:221) at java.sql.DriverManager.getConnection(DriverManager.java:664) at java.sql.DriverManager.getConnection(DriverManager.java:208) at com.alibaba.datax.plugin.reader.hbase11xsqlreader.HbaseSQLHelper.getPColumnNames(HbaseSQLHelper.java:81) at com.alibaba.datax.plugin.reader.hbase11xsqlreader.HbaseSQLReaderConfig.parseTableConfig(HbaseSQLReaderConfig.java:136) ... 36 more Caused by: org.apache.hadoop.hbase.client.RetriesExhaustedException: Can't get the locations at org.apache.hadoop.hbase.client.RpcRetryingCallerWithReadReplicas.getRegionLocations(RpcRetryingCallerWithReadReplicas.java:312) at org.apache.hadoop.hbase.client.ScannerCallableWithReplicas.call(ScannerCallableWithReplicas.java:156) at org.apache.hadoop.hbase.client.ScannerCallableWithReplicas.call(ScannerCallableWithReplicas.java:60) at org.apache.hadoop.hbase.client.RpcRetryingCaller.callWithoutRetries(RpcRetryingCaller.java:210) at org.apache.hadoop.hbase.client.ClientScanner.call(ClientScanner.java:327) at org.apache.hadoop.hbase.client.ClientScanner.nextScanner(ClientScanner.java:302) at org.apache.hadoop.hbase.client.ClientScanner.initializeScannerInConstruction(ClientScanner.java:167) at org.apache.hadoop.hbase.client.ClientScanner.<init>(ClientScanner.java:162) at org.apache.hadoop.hbase.client.HTable.getScanner(HTable.java:797) at org.apache.hadoop.hbase.MetaTableAccessor.fullScan(MetaTableAccessor.java:602) at org.apache.hadoop.hbase.MetaTableAccessor.tableExists(MetaTableAccessor.java:366) at org.apache.hadoop.hbase.client.HBaseAdmin.tableExists(HBaseAdmin.java:403) at org.apache.phoenix.query.ConnectionQueryServicesImpl$13.call(ConnectionQueryServicesImpl.java:2402) ... 46 more Results : Tests in error: testParseConfig(com.alibaba.datax.plugin.reader.hbase11xsqlreader.HbaseSQLHelperTest): Code:[Hbasewriter-02], Description:[获取phoenix表的列值错误]. - HBase的columns配置不能为空,请添加目标表的列名配置.org.apache.hadoop.hbase.client.RetriesExhaustedException: Can't get the locations - java.sql.SQLException: org.apache.hadoop.hbase.client.RetriesExhaustedException: Can't get the locations (..) testSplit(com.alibaba.datax.plugin.reader.hbase11xsqlreader.HbaseSQLHelperTest): Code:[Hbasewriter-02], Description:[获取phoenix表的列值错误]. - HBase的columns配置不能为空,请添加目标表的列名配置.org.apache.hadoop.hbase.client.RetriesExhaustedException: Can't get the locations - java.sql.SQLException: org.apache.hadoop.hbase.client.RetriesExhaustedException: Can't get the locations (..) testReadRecord(com.alibaba.datax.plugin.reader.hbase11xsqlreader.HbaseSQLReaderTaskTest): Code:[Hbasewriter-02], Description:[获取phoenix表的列值错误]. - HBase的columns配置不能为空,请添加目标表的列名配置.org.apache.hadoop.hbase.client.RetriesExhaustedException: Can't get the locations - java.sql.SQLException: org.apache.hadoop.hbase.client.RetriesExhaustedException: Can't get the locations (..) Tests run: 3, Failures: 0, Errors: 3, Skipped: 0 [INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary: [INFO] [INFO] datax-all .......................................... SUCCESS [ 0.129 s] [INFO] datax-common ....................................... SUCCESS [ 2.157 s] [INFO] datax-transformer .................................. SUCCESS [ 4.621 s] [INFO] datax-core ......................................... SUCCESS [ 11.762 s] [INFO] plugin-rdbms-util .................................. SUCCESS [ 1.310 s] [INFO] mysqlreader ........................................ SUCCESS [ 6.715 s] [INFO] drdsreader ......................................... SUCCESS [ 6.866 s] [INFO] sqlserverreader .................................... SUCCESS [ 6.624 s] [INFO] postgresqlreader ................................... SUCCESS [ 7.210 s] [INFO] kingbaseesreader ................................... SUCCESS [ 6.444 s] [INFO] oraclereader ....................................... SUCCESS [ 6.518 s] [INFO] cassandrareader .................................... SUCCESS [ 12.249 s] [INFO] oceanbasev10reader ................................. SUCCESS [ 9.664 s] [INFO] obhbasereader ...................................... SUCCESS [ 41.464 s] [INFO] rdbmsreader ........................................ SUCCESS [ 7.065 s] [INFO] odpsreader ......................................... SUCCESS [ 15.073 s] [INFO] otsreader .......................................... SUCCESS [ 13.810 s] [INFO] otsstreamreader .................................... SUCCESS [ 13.280 s] [INFO] hbase11xreader ..................................... SUCCESS [ 31.804 s] [INFO] hbase094xreader .................................... SUCCESS [ 27.747 s] [INFO] hbase11xsqlreader .................................. FAILURE [04:46 min] [INFO] hbase20xsqlreader .................................. SKIPPED [INFO] plugin-unstructured-storage-util ................... SKIPPED [INFO] hdfsreader ......................................... SKIPPED [INFO] ossreader .......................................... SKIPPED [INFO] ftpreader .......................................... SKIPPED [INFO] txtfilereader ...................................... SKIPPED [INFO] streamreader ....................................... SKIPPED [INFO] clickhousereader ................................... SKIPPED [INFO] mongodbreader ...................................... SKIPPED [INFO] tdenginewriter ..................................... SKIPPED [INFO] tdenginereader ..................................... SKIPPED [INFO] gdbreader .......................................... SKIPPED [INFO] tsdbreader ......................................... SKIPPED [INFO] opentsdbreader ..................................... SKIPPED [INFO] loghubreader ....................................... SKIPPED [INFO] datahubreader ...................................... SKIPPED [INFO] starrocksreader .................................... SKIPPED [INFO] sybasereader ....................................... SKIPPED [INFO] dorisreader ........................................ SKIPPED [INFO] mysqlwriter ........................................ SKIPPED [INFO] starrockswriter .................................... SKIPPED [INFO] drdswriter ......................................... SKIPPED [INFO] databendwriter ..................................... SKIPPED [INFO] oraclewriter ....................................... SKIPPED [INFO] sqlserverwriter .................................... SKIPPED [INFO] postgresqlwriter ................................... SKIPPED [INFO] kingbaseeswriter ................................... SKIPPED [INFO] odpswriter ......................................... SKIPPED [INFO] adswriter .......................................... SKIPPED [INFO] oceanbasev10writer ................................. SKIPPED [INFO] obhbasewriter ...................................... SKIPPED [INFO] adbpgwriter ........................................ SKIPPED [INFO] hologresjdbcwriter ................................. SKIPPED [INFO] rdbmswriter ........................................ SKIPPED [INFO] hdfswriter ......................................... SKIPPED [INFO] osswriter .......................................... SKIPPED [INFO] otswriter .......................................... SKIPPED [INFO] hbase11xwriter ..................................... SKIPPED [INFO] hbase094xwriter .................................... SKIPPED [INFO] hbase11xsqlwriter .................................. SKIPPED [INFO] hbase20xsqlwriter .................................. SKIPPED [INFO] kuduwriter ......................................... SKIPPED [INFO] ftpwriter .......................................... SKIPPED [INFO] txtfilewriter ...................................... SKIPPED [INFO] streamwriter ....................................... SKIPPED [INFO] elasticsearchwriter ................................ SKIPPED [INFO] mongodbwriter ...................................... SKIPPED [INFO] ocswriter .......................................... SKIPPED [INFO] tsdbwriter ......................................... SKIPPED [INFO] gdbwriter .......................................... SKIPPED [INFO] oscarwriter ........................................ SKIPPED [INFO] loghubwriter ....................................... SKIPPED [INFO] datahubwriter ...................................... SKIPPED [INFO] cassandrawriter .................................... SKIPPED [INFO] clickhousewriter ................................... SKIPPED [INFO] doriswriter ........................................ SKIPPED [INFO] selectdbwriter ..................................... SKIPPED [INFO] adbmysqlwriter ..................................... SKIPPED [INFO] sybasewriter ....................................... SKIPPED [INFO] neo4jwriter ........................................ SKIPPED [INFO] milvuswriter ....................................... SKIPPED [INFO] gaussdbreader ...................................... SKIPPED [INFO] gaussdbwriter ...................................... SKIPPED [INFO] datax-example ...................................... SKIPPED [INFO] datax-example-core ................................. SKIPPED [INFO] datax-example-streamreader ......................... SKIPPED [INFO] datax-example-neo4j ................................ SKIPPED [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 08:39 min [INFO] Finished at: 2025-11-11T16:31:46+08:00 [INFO] Final Memory: 230M/1135M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test (default-test) on project hbase11xsqlreader: There are test failures. [ERROR] [ERROR] Please refer to E:\projects\now\java\DataX-master\hbase11xsqlreader\target\surefire-reports for the individual test results. [ERROR] -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException [ERROR] [ERROR] After correcting the problems, you can resume the build with the command [ERROR] mvn <goals> -rf :hbase11xsqlreader
最新发布
11-12
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值