hdp(2.3):squirrel(3.7):phoenix(4.4.0.2.3.0.0-2557):hbase连接超时

wtzytmuj  于 2021-06-09  发布在  Hbase
关注(0)|答案(0)|浏览(264)

我们在AWSEC2集群上安装了hdp(2个名称节点、3个数据节点和1个管理服务器)。为了在hbase中使用phoenix(4.4.0.2.3.0.0-2557),我们遵循了hortonworks文档中提到的基本步骤(hortonworksPhoenix城安装指南)
为了与服务器连接,我们使用了与服务器版本相同的phoenix客户机jar,并编写了一个基本的java连接驱动程序。

  1. Class.forName("org.apache.phoenix.jdbc.PhoenixDriver").newInstance();
  2. Connection conn = DriverManager.getConnection("jdbc:phoenix:zookeeper_quorom_server_ip","","");

运行此程序后出现以下错误。
org.apache.phoenix.exception.phoenix异常:calltimeout=1200000,callduration=1237464:位于org.apache.phoenix.util.serverutil.parseserverexception(serverutil。java:108)在org.apache.phoenix.query.connectionqueryservicesimpl.ensuretablecreated(connectionqueryservicesimpl。java:881)在org.apache.phoenix.query.connectionqueryservicesimpl.createtable(connectionqueryservicesimpl。java:1215)在org.apache.phoenix.query.delegateconnectionqueryservices.createtable(delegateconnectionqueryservices)。java:112)位于org.apache.phoenix.schema.metadataclient.createtableinternal(metadataclient。java:1902)在org.apache.phoenix.schema.metadataclient.createtable(metadataclient。java:744)在org.apache.phoenix.compile.createtablecompiler$2.execute(createtablecompiler。java:186)在org.apache.phoenix.jdbc.phoenixstatement$2.call(phoenixstatement。java:303)在org.apache.phoenix.jdbc.phoenixstatement$2.call(phoenixstatement。java:295)在org.apache.phoenix.call.callrunner.run(callrunner。java:53)在org.apache.phoenix.jdbc.phoenixstatement.executeStation(phoenixstatement)。java:293)在org.apache.phoenix.jdbc.phoenixstatement.executeupdate(phoenixstatement)上。java:1236)在org.apache.phoenix.query.connectionqueryservicesimpl$12.call(connectionqueryservicesimpl。java:1893)在org.apache.phoenix.query.connectionqueryservicesimpl$12.call(connectionqueryservicesimpl。java:1862)在org.apache.phoenix.util.phoenixcontextexecutor.call(phoenixcontextexecutor。java:77)在org.apache.phoenix.query.connectionqueryservicesimpl.init(connectionqueryservicesimpl。java:1862)在org.apache.phoenix.jdbc.phoenixdriver.getconnectionqueryservices(phoenixdriver。java:180)在org.apache.phoenix.jdbc.phoenixembeddeddriver.connect(phoenixembeddeddriver。java:132)在org.apache.phoenix.jdbc.phoenixdriver.connect(phoenixdriver。java:151)在java.sql.drivermanager.getconnection(未知源)中位于hadoopconnector.main(hadoopconnector)的java.sql.drivermanager.getconnection(未知源)。java:17)原因:java.net.sockettimeoutexception:calltimeout=1200000,callduration=1237464:位于org.apache.hadoop.hbase.client.rpcretryingcaller.callwithretries(rpcretryingcaller)。java:159)在org.apache.hadoop.hbase.client.hbaseadmin.executecallable(hbaseadmin。java:3917)在org.apache.hadoop.hbase.client.hbaseadmin.gettabledescriptor(hbaseadmin。java:441)在org.apache.hadoop.hbase.client.hbaseadmin.gettabledescriptor(hbaseadmin。java:463)在org.apache.phoenix.query.connectionqueryservicesimpl.ensuretablecreated(connectionqueryservicesimpl。java:815) ... 20个以上原因:org.apache.hadoop.hbase.masternotrunningexception:org.apache.hadoop.hbase.masternotrunningexception:无法连接到zookeeper:keeperrorcode=connectionloss for/hbase,位于org.apache.hadoop.hbase.client.connectionmanager$hconnectionimplementation$stubmaker.makestub(connectionmanager)。java:1533)在org.apache.hadoop.hbase.client.connectionmanager$hconnectionimplementation$masterservicestubmaker.makestub(connectionmanager。java:1553)在org.apache.hadoop.hbase.client.connectionmanager$hconnectionimplementation.getkeepalivemasterservice(connectionmanager。java:1704)在org.apache.hadoop.hbase.client.mastercallable.prepare(mastercallable。java:38) 在org.apache.hadoop.hbase.client.rpcretryingcaller.callwithretries(rpcretryingcaller。java:124) ... 24其他原因:org.apache.hadoop.hbase.masternotrunningexception:无法连接到zookeeper:keeperrorcode=connectionloss for/hbase,位于org.apache.hadoop.hbase.client.connectionmanager$hconnectionimplementation.checkifbasenodeavailable(connectionmanager)。java:906)在org.apache.hadoop.hbase.client.connectionmanager$hconnectionimplementation.access$400(connectionmanager。java:545)位于org.apache.hadoop.hbase.client.connectionmanager$hconnectionimplementation$stubmaker.makestubnoretries(connectionmanager)。java:1483)在org.apache.hadoop.hbase.client.connectionmanager$hconnectionimplementation$stubmaker.makestub(connectionmanager。java:1524) ... 28更多原因:org.apache.zookeeper.keeperexception$connectionlossexception:keepererrorcode=connectionloss for/hbase at org.apache.zookeeper.keeperexception.create(keeperexception)。java:99)在org.apache.zookeeper.keeperexception.create(keeperexception。java:51)在org.apache.zookeeper.zookeeper.exists(zookeeper。java:1045)在org.apache.hadoop.hbase.zookeeper.recoverablezookeeper.exists(recoverablezookeeper。java:222)在org.apache.hadoop.hbase.zookeeper.zkutil.checkexists(zkutil。java:541)在org.apache.hadoop.hbase.client.connectionmanager$hconnectionimplementation.checkifbasenodeavailable(connectionmanager。java:895) ... 还有31个
当我尝试配置squirrel(hbase phoniex sql client)时,我在连接时遇到了类似的超时异常。
还尝试从命令提示符ping我的zookeeper quoroum服务器ip,然后它给出了一个请求超时错误。不知道我做错了什么。

暂无答案!

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

相关问题