如何启动OpenTSDB?

发布于 2024-12-21 18:26:07 字数 1900 浏览 5 评论 0原文

我正在遵循 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]

I'm following the getting started instructions for OpenTSDB, but I get the below-shown errors when running the program. Can anyone help?

When running command:

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

I get this error:

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]

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

轻许诺言 2024-12-28 18:26:07

看来你的zookeeper已关闭/未在poort 2181上配置,

你可以通过检查安装zookeepr的zoo.cfg文件来开始

It seems like your zookeeper is down/not configured on poort 2181

you can start by checking the zoo.cfg file where you installed zookeepr

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文