java - 如何启动 OpenTSDB?

标签 java hbase opentsdb

我正在关注 getting started instructions对于 OpenTSDB,但在运行程序时出现如下所示的错误。谁能帮忙?

运行命令时:

./build/tsdb tsd --port=4242 --staticroot=build/staticroot --cachedir="$tsdtemp"

我收到这个错误:

java.net.ConnectException: Connection refused
    at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method) ~[na:1.6.0_20]
    at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:592) ~[na:1.6.0_20]
    at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1078) ~[zookeeper-3.3.1.jar:3.3.1-942149]
2011-12-19 10:07:54,459 INFO  [main-SendThread(localhost:2181)] ClientCnxn: Opening socket connection to server localhost/127.0.0.1:2181
2011-12-19 10:07:54,461 WARN  [main-SendThread(localhost:2181)] ClientCnxn: Session 0x0 for server null, unexpected error, closing socket connection and attempting reconnect
java.net.ConnectException: Connection refused
    at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method) ~[na:1.6.0_20]
    at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:592) ~[na:1.6.0_20]
    at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1078) ~[zookeeper-3.3.1.jar:3.3.1-942149]
^[[A2011-12-19 10:07:56,521 INFO  [main-SendThread(localhost:2181)] ClientCnxn: Opening socket connection to server localhost/127.0.0.1:2181
2011-12-19 10:07:56,522 WARN  [main-SendThread(localhost:2181)] ClientCnxn: Session 0x0 for server null, unexpected error, closing socket connection and attempting reconnect
java.net.ConnectException: Connection refused
    at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method) ~[na:1.6.0_20]
    at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:592) ~[na:1.6.0_20]
    at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1078) ~[zookeeper-3.3.1.jar:3.3.1-942149]

最佳答案

您的 zookeeper 似乎已关闭/未在端口 2181 上配置

您可以从检查安装了 zookeeper 的 zoo.cfg 文件开始

关于java - 如何启动 OpenTSDB?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8557421/

相关文章:

opentsdb - 如何在grafana图表中创建趋势线

Java Web Start 在版本 7u25 之后不起作用

java - 如何使 jprogressbar 与我的算法并行运行

java - 在 FreeMarker 中获取字符串的最后四个字符

java.lang.NoSuchFieldError : IBM_JAVA for a simple hbase java client in Eclipse 错误

hadoop - 我可以将 opentsdb 数据库用于车辆 GPS 数据吗?

hadoop - hbase openTSDB 在一定时间后自动删除数据

java - 奇怪的 FTPClient.storeFile 行为

hadoop - hbase-master无法启动

hadoop - 扫描 hbase 时 map task 卡住