启动OpenTSDB时出错

时间:2015-10-13 07:08:48

标签: java hbase apache-zookeeper opentsdb

我试图在独立模式下使用OpenTSDB over HBase。下面是我的hbase-site.xml。

<property>
    <name>hbase.rootdir</name>
    <value>file:///home/root/HBASE/hbase</value>
</property>

<property>
    <name>hbase.zookeeper.property.dataDir</name>
    <value>/home/root/HBASE/zookeeper</value>
</property>

我通过以下命令启动hbase

./仓/ start-hbase.sh

当我尝试启动OpenTSDB时,我在 opentsdb.log

中收到以下错误日志
java.net.ConnectException: Connection refused
at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method) ~[na:1.7.0_85]
at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:744) ~ [na:1.7.0_85]
at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1143) ~  [zookeeper-3.3.6.jar:3.3.6-1366786]
02:55:53.767 INFO  [ClientCnxn.startConnect] - Opening socket connection to server localhost/127.0.0.1:2181
02:55:53.769 WARN  [ClientCnxn.run] - Session 0x0 for server null, unexpected error, closing socket connection and attempting reconnect

在启动OpenTSDB后立即尝试 jps 时,我得到以下输出

[root@Flume_Server hbase-0.94.8]# jps
12321 TSDMain
12359 Jps
12085 HMaster
759 Main

但经过一段时间后,我的输出低于 jps

[root@Flume_Server conf]# jps
12476 Jps
12439 TSDMain
759 Main

以下是我在hbase日志中得到的错误

2015-10-13 05:14:31,875 ERROR org.apache.hadoop.hbase.master.HMasterCommandLine: Failed to start master
java.net.ConnectException: Call to localhost/127.0.0.1:54310 failed on connection exception: java.net.ConnectException: Connection refused
at org.apache.hadoop.ipc.Client.wrapException(Client.java:1099)
at org.apache.hadoop.ipc.Client.call(Client.java:1075)
at org.apache.hadoop.ipc.RPC$Invoker.invoke(RPC.java:225)
at com.sun.proxy.$Proxy8.getProtocolVersion(Unknown Source)
at org.apache.hadoop.ipc.RPC.getProxy(RPC.java:396)
at org.apache.hadoop.ipc.RPC.getProxy(RPC.java:379)
at org.apache.hadoop.hdfs.DFSClient.createRPCNamenode(DFSClient.java:119)
at org.apache.hadoop.hdfs.DFSClient.<init>(DFSClient.java:238)
at org.apache.hadoop.hdfs.DFSClient.<init>(DFSClient.java:203)
at org.apache.hadoop.hdfs.DistributedFileSystem.initialize(DistributedFileSystem.java:89)
at org.apache.hadoop.fs.FileSystem.createFileSystem(FileSystem.java:1386)
at org.apache.hadoop.fs.FileSystem.access$200(FileSystem.java:66)
at org.apache.hadoop.fs.FileSystem$Cache.get(FileSystem.java:1404)
at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:254)
at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:123)
at org.apache.hadoop.hbase.util.JVMClusterUtil.startup(JVMClusterUtil.java:191)
at org.apache.hadoop.hbase.LocalHBaseCluster.startup(LocalHBaseCluster.java:420)
at org.apache.hadoop.hbase.master.HMasterCommandLine.startMaster(HMasterCommandLine.java:149)
at org.apache.hadoop.hbase.master.HMasterCommandLine.run(HMasterCommandLine.java:104)
at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65)
at org.apache.hadoop.hbase.util.ServerCommandLine.doMain(ServerCommandLine.java:76)
at org.apache.hadoop.hbase.master.HMaster.main(HMaster.java:2079)
Caused by: java.net.ConnectException: Connection refused
at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:744)
at org.apache.hadoop.net.SocketIOWithTimeout.connect(SocketIOWithTimeout.java:206)
at org.apache.hadoop.net.NetUtils.connect(NetUtils.java:489)
at org.apache.hadoop.ipc.Client$Connection.setupConnection(Client.java:434)
at org.apache.hadoop.ipc.Client$Connection.setupIOstreams(Client.java:560)
at org.apache.hadoop.ipc.Client$Connection.access$2000(Client.java:184)
at org.apache.hadoop.ipc.Client.getConnection(Client.java:1206)
at org.apache.hadoop.ipc.Client.call(Client.java:1050)
... 20 more

0 个答案:

没有答案