OpenTSDB:动物园管理员错误

OpenTSDB: Zookeeper Error

我是在 Ubuntu 上第一次安装 opentsdb。我正在按照这些文档进行安装: http://opentsdb.net/docs/build/html/installation.html#id1 http://opentsdb.net/setup-hbase.html

我在执行命令时遇到以下错误

Abharthan/opentsdb$ env COMPRESSION=NONE HBASE_HOME=/home/administrator/Abharthan/hbase-0.98.13-hadoop1 ./src/create_table.sh

安装 OpenTSDB 后: 我已经安装了hbase、gnuplot、JDK等

关于以下方面存在一些错误:

  1. 无法连接到 zookeeper

    对此建议的一些答案: 看起来你的 zookeeper down/not 配置在 poort 2181 您可以从检查安装 zookeepr

  2. 的 zoo.cfg 文件开始

但是,我没有明确安装 zookeeper,它应该由 opentsdb/hbase 自己安装。我在哪里可以找到这个文件来进行这个改变。

  1. 无法为您的平台加载本机 hadoop 库

  2. SLF4J:类路径包含多个 SLF4J 构建

    HBase Shell; enter 'help' for list of supported commands. Type "exit" to leave the HBase Shell Version 0.98.13-hadoop1, r8f54f8daf8cf4d1a629f8ed62363be29141c1b6e, Wed Jun 10 22:18:15 PDT 2015

    create 'tsdb-uid', {NAME => 'id', COMPRESSION => 'NONE', BLOOMFILTER => 'ROW'}, {NAME => 'name', COMPRESSION => 'NONE', BLOOMFILTER => 'ROW'} SLF4J: Class path contains multiple SLF4J bindings. SLF4J: Found binding in [jar:file:/home/administrator/Abharthan/hbase-0.98.13-hadoop1/lib/slf4j-log4j12-1.6.4.jar!/org/slf4j/impl/StaticLoggerBinder.class] SLF4J: Found binding in [jar:file:/usr/local/hadoop/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. 2015-07-03 08:44:12,270 ERROR [main] zookeeper.RecoverableZooKeeper: ZooKeeper exists failed after 4 attempts 2015-07-03 08:44:12,273 WARN [main] zookeeper.ZKUtil: hconnection-0x225875070x0, 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:222) at org.apache.hadoop.hbase.zookeeper.ZKUtil.checkExists(ZKUtil.java:481) at org.apache.hadoop.hbase.zookeeper.ZKClusterId.readClusterIdZNode(ZKClusterId.java:65) at org.apache.hadoop.hbase.client.ZooKeeperRegistry.getClusterId(ZooKeeperRegistry.java:83) at org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.retrieveClusterId(HConnectionManager.java:909) at org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.(HConnectionManager.java:703) 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:408) at org.apache.hadoop.hbase.client.HConnectionManager.createConnection(HConnectionManager.java:459) . . .

我可以启动 hbase 服务器:

Abharthan/hbase-0.98.13-hadoop1$ ./bin/start-hbase.sh 
starting master, logging to /usr/lib/hbase/hbase-1.0.1.1/logs/hbaseIdeaCentre-Q190.out

运行 以下命令

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

给出这个结果:

2015-07-03 09:49:19,220 INFO [main] TSDMain: Starting. 2015-07-03 09:49:19,231 INFO [main] TSDMain: net.opentsdb 2.1.0 built at revision 45e575a (MINT) 2015-07-03 09:49:19,232 INFO [main] TSDMain: Built on 2015/06/30 21:00:14 +0000 by IdeaCentre-Q190:/home/administrator/Abharthan/opentsdb/build 2015-07-03 09:49:19,255 INFO [main] Config: No configuration found, will use defaults Missing cache directory

谁能指出问题所在。

此外,它说我可以在浏览器中以 localhost:4242 打开它,但是在哪里提到服务使用的端口。

1 号(失败的动物园管理员)是问题所在。我们有一个 运行 openTSDB,经常看到错误 2 和 3;他们并不认真。

您需要追查zookeepers失败的原因;查找 zookeeper 日志文件。

确保你的hadoop和hbase在创建opentsdb之前已经启动table,这样就可以了。