Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Unable to execute the ./build/tsdb tsd command

Unable to execute the ./build/tsdb tsd command

Contributor

Hi Team,

As per the installation steps that are given in the http://opentsdb.net/docs/build/html/installation.html#id1 . I followed all the steps, but I am getting an error. when I am executing the following command. I have checked the core-site.xml file also same hosts are present. Please help me on this.

Command I have Executed: .

/build/tsdb tsd --port=4242 --staticroot=build/staticroot --cachedir=/tmp/opentsdb --zkquorum=blpd213.bhdc.att.com:2181,blpd214.bhdc.att.com:2181,blpd215.bhdc.att.com:2181

value of quorun in Core-site.xml:

<property>

<name>ha.zookeeper.quorum</name>

<value>blpd213.bhdc.att.com:2181,blpd214.bhdc.att.com:2181,blpd215.bhdc.att.com:2181</value>

</property>

Error I am facing:

./build/tsdb tsd --port=4242 --staticroot=build/staticroot --cachedir=/tmp/opentsdb --zkquorum=blpd213.bhdc.att.com:2181,blpd214.bhdc.att.com:2181,blpd215.bhdc.att.com:2181

2017-02-13 12:50:55,088 INFO [main] TSDMain: Starting.

2017-02-13 12:50:55,091 INFO [main] TSDMain: net.opentsdb.tools 2.3.0 built at revision cac608a (MINT)

2017-02-13 12:50:55,091 INFO [main] TSDMain: Built on 2016/12/29 13:57:15 +0000 by root@centos.localhost:/home/hobbes/opentsdb_OFFICIAL/build

2017-02-13 12:50:55,095 INFO [main] Config: No configuration found, will use defaults

2017-02-13 12:50:55,241 WARN [main] PluginLoader: Unable to locate any plugins of the type: net.opentsdb.query.filter.TagVFilter

2017-02-13 12:50:55,257 INFO [main] ZooKeeper: Client environment:zookeeper.version=3.4.6-1569965, built on 02/20/2014 09:09 GMT

2017-02-13 12:50:55,257 INFO [main] ZooKeeper: Client environment:host.name=blpd215.bhdc.att.com

2017-02-13 12:50:55,258 INFO [main] ZooKeeper: Client environment:java.version=1.7.0_111

2017-02-13 12:50:55,258 INFO [main] ZooKeeper: Client environment:java.vendor=Oracle Corporation

2017-02-13 12:50:55,258 INFO [main] ZooKeeper: Client environment:java.home=/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.111.x86_64/jre

2017-02-13 12:50:55,258 INFO [main] ZooKeeper: Client environment:java.class.path=/opt/app/opentsdb/opentsdb-

2.3.0/build/third_party/jexl/commons-logging-1.1.1.jar:/opt/app/opentsdb/opentsdb-2.3.0/build/third_party/guava/guava-18.0.jar:/opt/app/opentsdb/opentsdb-2.3.0/build/third_party/slf4j/log4j-over-slf4j-1.7.7.jar:/opt/app/opentsdb/opentsdb-2.3.0/build/third_party/logback/logback-classic-1.0.13.jar:/opt/app/opentsdb/opentsdb-2.3.0/build/third_party/logback/logback-core-1.0.13.jar:/opt/app/opentsdb/opentsdb-2.3.0/build/third_party/jackson/jackson-annotations-2.4.3.jar:/opt/app/opentsdb/opentsdb-2.3.0/build/third_party/jackson/jackson-core-2.4.3.jar:/opt/app/opentsdb/opentsdb-2.3.0/build/third_party/jackson/jackson-databind-2.4.3.jar:/opt/app/opentsdb/opentsdb-2.3.0/build/third_party/javacc/javacc-6.1.2.jar:/opt/app/opentsdb/opentsdb-2.3.0/build/third_party/jexl/commons-jexl-2.1.1.jar:/opt/app/opentsdb/opentsdb-2.3.0/build/third_party/jgrapht/jgrapht-core-0.9.1.jar:/opt/app/opentsdb/opentsdb-2.3.0/build/third_party/netty/netty-3.9.4.Final.jar:/opt/app/opentsdb/opentsdb-2.3.0/build/third_party/slf4j/slf4j-api-1.7.7.jar:/opt/app/opentsdb/opentsdb-2.3.0/build/third_party/suasync/async-1.4.0.jar:/opt/app/opentsdb/opentsdb-2.3.0/build/third_party/apache/commons-math3-3.4.1.jar:/opt/app/opentsdb/opentsdb-2.3.0/build/third_party/hbase/asynchbase-1.7.2.jar:/opt/app/opentsdb/opentsdb-2.3.0/build/third_party/protobuf/protobuf-java-2.5.0.jar:/opt/app/opentsdb/opentsdb-2.3.0/build/third_party/zookeeper/zookeeper-3.4.6.jar:/opt/app/opentsdb/opentsdb-2.3.0/build/tsdb-2.3.0.jar:/opt/app/opentsdb/opentsdb-2.3.0/build/../src

2017-02-13 12:50:55,258 INFO [main] ZooKeeper: Client environment:java.library.path=/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib

2017-02-13 12:50:55,258 INFO [main] ZooKeeper: Client environment:java.io.tmpdir=/tmp

2017-02-13 12:50:55,258 INFO [main] ZooKeeper: Client environment:java.compiler=<NA>

2017-02-13 12:50:55,258 INFO [main] ZooKeeper: Client environment:os.name=Linux

2017-02-13 12:50:55,258 INFO [main] ZooKeeper: Client environment:os.arch=amd64

2017-02-13 12:50:55,258 INFO [main] ZooKeeper: Client environment:os.version=2.6.32-642.6.2.el6.x86_64

2017-02-13 12:50:55,258 INFO [main] ZooKeeper: Client environment:user.name=root

2017-02-13 12:50:55,258 INFO [main] ZooKeeper: Client environment:user.home=/root

2017-02-13 12:50:55,258 INFO [main] ZooKeeper: Client environment:user.dir=/opt/app/opentsdb/opentsdb-2.3.0

2017-02-13 12:50:55,259 INFO [main] ZooKeeper: Initiating client connection, connectString=blpd213.bhdc.att.com:2181,blpd214.bhdc.att.com:2181,blpd215.bhdc.att.com:2181 sessionTimeout=5000 watcher=org.hbase.async.HBaseClient$ZKClient@6a4cae18

2017-02-13 12:50:55,270 INFO [main] HBaseClient: Need to find the -ROOT- region

2017-02-13 12:50:55,274 INFO [main-SendThread(blpd213.bhdc.att.com:2181)] ClientCnxn: Opening socket connection to server blpd213.bhdc.att.com/130.5.106.3:2181. Will not attempt to authenticate using SASL (unknown error)

2017-02-13 12:50:55,278 INFO [main-SendThread(blpd213.bhdc.att.com:2181)] ClientCnxn: Socket connection established to blpd213.bhdc.att.com/130.5.106.3:2181, initiating session

2017-02-13 12:50:55,284 INFO [main-SendThread(blpd213.bhdc.att.com:2181)] ClientCnxn: Session establishment complete on server blpd213.bhdc.att.com/130.5.106.3:2181, sessionid = 0x15a293572a00199, negotiated timeout = 5000

2017-02-13 12:50:55,291 ERROR [main-EventThread] HBaseClient: The znode for the -ROOT- region doesn't exist!

2017-02-13 12:50:56,314 ERROR [main-EventThread] HBaseClient: The znode for the -ROOT- region doesn't exist!

2 REPLIES 2
Highlighted

Re: Unable to execute the ./build/tsdb tsd command

Try including the proper --zkbasedir for your installation ("/hbase-unsecure")

https://github.com/OpenTSDB/opentsdb/issues/280

/build/tsdb tsd --port=4242 --staticroot=build/staticroot --cachedir=/tmp/opentsdb --zkquorum=blpd213.bhdc.att.com:2181,blpd214.bhdc.att.com:2181,blpd215.bhdc.att.com:2181 --zkbasedir=/hbase-unsecure
Highlighted

Re: Unable to execute the ./build/tsdb tsd command

Contributor
@Josh Elser

Still I am getting the same error. :-(. In github also they said that it is not working.

[zkeeper@blpd214 opentsdb-2.3.0]$ ./build/tsdb tsd --port=4242 --staticroot=build/staticroot --cachedir=/tmp/opentsdb --zkquorum=blpd213.bhdc.att.com:2181,blpd214.bhdc.att.com:2181,blpd215.bhdc.att.com:2181 --zkbasedir=/hbase-unsecure

2017-02-14 12:43:21,624 INFO [main] TSDMain: Starting.

2017-02-14 12:43:21,627 INFO [main] TSDMain: net.opentsdb.tools 2.3.0 built at revision cac608a (MINT)

2017-02-14 12:43:21,627 INFO [main] TSDMain: Built on 2016/12/29 13:57:15 +0000 by root@centos.localhost:/home/hobbes/opentsdb_OFFICIAL/build

2017-02-14 12:43:21,631 INFO [main] Config: No configuration found, will use defaults

2017-02-14 12:43:21,774 WARN [main] PluginLoader: Unable to locate any plugins of the type: net.opentsdb.query.filter.TagVFilter

2017-02-14 12:43:21,790 INFO [main] ZooKeeper: Client environment:zookeeper.version=3.4.6-1569965, built on 02/20/2014 09:09 GMT

2017-02-14 12:43:21,790 INFO [main] ZooKeeper: Client environment:host.name=blpd214.bhdc.att.com

2017-02-14 12:43:21,790 INFO [main] ZooKeeper: Client environment:java.version=1.7.0_111

2017-02-14 12:43:21,790 INFO [main] ZooKeeper: Client environment:java.vendor=Oracle Corporation

2017-02-14 12:43:21,790 INFO [main] ZooKeeper: Client environment:java.home=/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.111.x86_64/jre

2017-02-14 12:43:21,790 INFO [main] ZooKeeper: Client environment:java.class.path=/opt/app/opentsdb/opentsdb-2.3.0/build/third_party/jexl/commons-logging-1.1.1.jar:/opt/app/opentsdb/opentsdb-2.3.0/build/third_party/guava/guava-18.0.jar:/opt/app/opentsdb/opentsdb-2.3.0/build/third_party/slf4j/log4j-over-slf4j-1.7.7.jar:/opt/app/opentsdb/opentsdb-2.3.0/build/third_party/logback/logback-classic-1.0.13.jar:/opt/app/opentsdb/opentsdb-2.3.0/build/third_party/logback/logback-core-1.0.13.jar:/opt/app/opentsdb/opentsdb-2.3.0/build/third_party/jackson/jackson-annotations-2.4.3.jar:/opt/app/opentsdb/opentsdb-2.3.0/build/third_party/jackson/jackson-core-2.4.3.jar:/opt/app/opentsdb/opentsdb-2.3.0/build/third_party/jackson/jackson-databind-2.4.3.jar:/opt/app/opentsdb/opentsdb-2.3.0/build/third_party/javacc/javacc-6.1.2.jar:/opt/app/opentsdb/opentsdb-2.3.0/build/third_party/jexl/commons-jexl-2.1.1.jar:/opt/app/opentsdb/opentsdb-2.3.0/build/third_party/jgrapht/jgrapht-core-0.9.1.jar:/opt/app/opentsdb/opentsdb-2.3.0/build/third_party/netty/netty-3.9.4.Final.jar:/opt/app/opentsdb/opentsdb-2.3.0/build/third_party/slf4j/slf4j-api-1.7.7.jar:/opt/app/opentsdb/opentsdb-2.3.0/build/third_party/suasync/async-1.4.0.jar:/opt/app/opentsdb/opentsdb-2.3.0/build/third_party/apache/commons-math3-3.4.1.jar:/opt/app/opentsdb/opentsdb-2.3.0/build/third_party/hbase/asynchbase-1.7.2.jar:/opt/app/opentsdb/opentsdb-2.3.0/build/third_party/protobuf/protobuf-java-2.5.0.jar:/opt/app/opentsdb/opentsdb-2.3.0/build/third_party/zookeeper/zookeeper-3.4.6.jar:/opt/app/opentsdb/opentsdb-2.3.0/build/tsdb-2.3.0.jar:/opt/app/opentsdb/opentsdb-2.3.0/build/../src

2017-02-14 12:43:21,790 INFO [main] ZooKeeper: Client environment:java.library.path=/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib

2017-02-14 12:43:21,790 INFO [main] ZooKeeper: Client environment:java.io.tmpdir=/tmp

2017-02-14 12:43:21,790 INFO [main] ZooKeeper: Client environment:java.compiler=<NA>

2017-02-14 12:43:21,790 INFO [main] ZooKeeper: Client environment:os.name=Linux

2017-02-14 12:43:21,790 INFO [main] ZooKeeper: Client environment:os.arch=amd64

2017-02-14 12:43:21,790 INFO [main] ZooKeeper: Client environment:os.version=2.6.32-642.6.2.el6.x86_64

2017-02-14 12:43:21,790 INFO [main] ZooKeeper: Client environment:user.name=zkeeper

2017-02-14 12:43:21,790 INFO [main] ZooKeeper: Client environment:user.home=/home/zkeeper

2017-02-14 12:43:21,790 INFO [main] ZooKeeper: Client environment:user.dir=/opt/app/opentsdb/opentsdb-2.3.0

2017-02-14 12:43:21,791 INFO [main] ZooKeeper: Initiating client connection, connectString=blpd213.bhdc.att.com:2181,blpd214.bhdc.att.com:2181,blpd215.bhdc.att.com:2181 sessionTimeout=5000 watcher=org.hbase.async.HBaseClient$ZKClient@5987b427

2017-02-14 12:43:21,825 INFO [main] HBaseClient: Need to find the -ROOT- region

2017-02-14 12:43:21,839 INFO [main-SendThread(blpd213.bhdc.att.com:2181)] ClientCnxn: Opening socket connection to server blpd213.bhdc.att.com/130.5.106.3:2181. Will not attempt to authenticate using SASL (unknown error)

2017-02-14 12:43:21,843 INFO [main-SendThread(blpd213.bhdc.att.com:2181)] ClientCnxn: Socket connection established to blpd213.bhdc.att.com/130.5.106.3:2181, initiating session 2017-02-14 12:43:21,849 INFO [main-SendThread(blpd213.bhdc.att.com:2181)] ClientCnxn: Session establishment complete on server blpd213.bhdc.att.com/130.5.106.3:2181, sessionid = 0x15a396fea2300aa, negotiated timeout = 5000

2017-02-14 12:43:21,856 ERROR [main-EventThread] HBaseClient: The znode for the -ROOT- region doesn't exist! 2017-02-14 12:43:22,878 ERROR [main-EventThread] HBaseClient: The znode for the -ROOT- region doesn't exist! 2017-02-14 12:43:23,897 ERROR [main-EventThread] HBaseClient: The znode for the -ROOT- region doesn't exist!

Don't have an account?
Coming from Hortonworks? Activate your account here