Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

start tsdb problem #280

Closed
boastcao opened this issue Feb 13, 2014 · 17 comments
Closed

start tsdb problem #280

boastcao opened this issue Feb 13, 2014 · 17 comments

Comments

@boastcao
Copy link

When I run the following command:
./build/tsdb tsd --port=4242 --staticroot=build/staticroot --cachedir="/tmp/tsdtmp" --zkquorum ubuntu23

The follow errors appeared:
2014-02-13 18:19:39,545 INFO [main] ZooKeeper: Initiating client connection, connectString=ubuntu23 sessionTimeout=5000 watcher=org.hbase.async.HBaseClient$ZKClient@6adb93a2
2014-02-13 18:19:39,565 INFO [main] HBaseClient: Need to find the -ROOT- region
2014-02-13 18:19:39,570 INFO [main-SendThread(ubuntu23:2181)] ClientCnxn: Opening socket connection to server ubuntu23/10.45.33.23:2181. Will not attempt to authenticate using SASL (unknown error)
2014-02-13 18:19:39,574 INFO [main-SendThread(ubuntu23:2181)] ClientCnxn: Socket connection established to ubuntu23/10.45.33.23:2181, initiating session
2014-02-13 18:19:39,601 INFO [main-SendThread(ubuntu23:2181)] ClientCnxn: Session establishment complete on server ubuntu23/10.45.33.23:2181, sessionid = 0x442a5b00940013, negotiated timeout = 6000
2014-02-13 18:19:39,615 ERROR [main-EventThread] HBaseClient: The znode for the -ROOT- region doesn't exist!
2014-02-13 18:19:40,618 ERROR [main-EventThread] HBaseClient: The znode for the -ROOT- region doesn't exist!
2014-02-13 18:19:41,637 ERROR [main-EventThread] HBaseClient: The znode for the -ROOT- region doesn't exist!
2014-02-13 18:19:42,658 ERROR [main-EventThread] HBaseClient: The znode for the -ROOT- region doesn't exist!

I searched on internet,but I dont find any solutions.

Is there anybody met this problem?

@1tylermitchell
Copy link

Try setting --zkbasedir as well, see if that helps.

On Feb 13, 2014, at 2:52, boastcao notifications@github.com wrote:

When I run the following command:
./build/tsdb tsd --port=4242 --staticroot=build/staticroot --cachedir="/tmp/tsdtmp" --zkquorum ubuntu23

The follow errors appeared:
2014-02-13 18:19:39,545 INFO [main] ZooKeeper: Initiating client connection, connectString=ubuntu23 sessionTimeout=5000 watcher=org.hbase.async.HBaseClient$ZKClient@6adb93a2
2014-02-13 18:19:39,565 INFO [main] HBaseClient: Need to find the -ROOT- region
2014-02-13 18:19:39,570 INFO [main-SendThread(ubuntu23:2181)] ClientCnxn: Opening socket connection to server ubuntu23/10.45.33.23:2181. Will not attempt to authenticate using SASL (unknown error)
2014-02-13 18:19:39,574 INFO [main-SendThread(ubuntu23:2181)] ClientCnxn: Socket connection established to ubuntu23/10.45.33.23:2181, initiating session
2014-02-13 18:19:39,601 INFO [main-SendThread(ubuntu23:2181)] ClientCnxn: Session establishment complete on server ubuntu23/10.45.33.23:2181, sessionid = 0x442a5b00940013, negotiated timeout = 6000
2014-02-13 18:19:39,615 ERROR [main-EventThread] HBaseClient: The znode for the -ROOT- region doesn't exist!
2014-02-13 18:19:40,618 ERROR [main-EventThread] HBaseClient: The znode for the -ROOT- region doesn't exist!
2014-02-13 18:19:41,637 ERROR [main-EventThread] HBaseClient: The znode for the -ROOT- region doesn't exist!
2014-02-13 18:19:42,658 ERROR [main-EventThread] HBaseClient: The znode for the -ROOT- region doesn't exist!

I searched on internet,but I dont find any solutions.

Is there anybody met this problem?


Reply to this email directly or view it on GitHub.

@boastcao
Copy link
Author

I run the following command:
./build/tsdb tsd --port=4242 --staticroot=build/staticroot --cachedir="/tmp/tsdtmp" --zkquorum ubuntu23 --zkbasedir='/home/hadoop/zookeeper'
But the problem remains.

@stuart-warren
Copy link

According to a Google search for "The znode for the -ROOT- region doesn't exist!"
The top result:
https://groups.google.com/forum/#!topic/opentsdb/MwbFypTV7DA
suggests that Hbase may not be started...?

@looztra
Copy link
Contributor

looztra commented Feb 14, 2014

which version of HBase and OpenTSDB are you running?

On 14 February 2014 08:58, stuart-warren notifications@github.com wrote:

According to a Google search for "The znode for the -ROOT- region doesn't
exist!"
The top result:
https://groups.google.com/forum/#!topic/opentsdb/MwbFypTV7DA
suggests that Hbase may not be started...?

Reply to this email directly or view it on GitHubhttps://github.com//issues/280#issuecomment-35063364
.

@boastcao
Copy link
Author

Hbase has started.
Hbase version is :hbase-0.96.0-hadoop2.
OpenTSDB version is OpenTSDB 2.0.0 RC 2.
Is Hbase version should be 0.94?

@1tylermitchell
Copy link

Or, as I found out the hard way, you also get the error if opentsdb is not pointed to properly with the --zk... parameters.

On Feb 13, 2014, at 23:58, stuart-warren notifications@github.com wrote:

According to a Google search for "The znode for the -ROOT- region doesn't exist!"
The top result:
https://groups.google.com/forum/#!topic/opentsdb/MwbFypTV7DA
suggests that Hbase may not be started...?


Reply to this email directly or view it on GitHub.

@boastcao
Copy link
Author

Could you give me your hbase-site.xml and your tsdb build command?
Thank you!

@boastcao
Copy link
Author

I check on zookeeper client:
[zk: 10.45.33.23(CONNECTED) 1] ls /hbase
[meta-region-server, backup-masters, table, draining, region-in-transition, table-lock, running, master, namespace, hbaseid, online-snapshot, replication, splitWAL, recovering-regions, rs]

There is no root-reion-server dir.
Is anyone know why?

@manolama
Copy link
Member

If you're using HBase .96, use the "next" branch of the GIT repo. It includes asyncbase 1.5 with .96 compatibility. RC2 is only compatible with .94 and earlier.

@manolama
Copy link
Member

Closing this one. For further connection issues, try the mailing list at https://groups.google.com/forum/#!forum/opentsdb

@wkshare
Copy link

wkshare commented Jan 24, 2015

we used .98 T_T

@clohtd
Copy link

clohtd commented Apr 13, 2015

For anyone finding this thread I'll leave a note: On my system, I had to use

/opt/opentsdb/build/tsdb tsd --zkbasedir=/hbase-unsecure

@edi-bice
Copy link

I'm using Hortonworks HDP and had to change OpentTSDB config to also point to /hbase-unsecure

@typify
Copy link

typify commented Jan 11, 2016

This is the first (and one of the only relevant) hit in Google. I had the same issue when installing opentsdb and couldn't get to the solution. In the end it appeared a matter of getting everything right. If you think you find something, change it and it doesn't work then try another thing. Because of changing all those variables you just need to find the right mix by accident or think clearly for a moment. My issues:

  • I had a stand alone zookeeper. According to the documentation you need to set export HBASE_MANAGES_ZK=false in hbase-env.sh. That is not all though, you also need to add the hbase.cluster.distributed in your hbase-site.xml and set it to 'true'.
  • Make sure zookeeper, hadoop and hbase are running in that order.
  • Create (if not exists) a /hbase folder in zookeeper (login using bin/zkCli.sh and type 'create /hbase'.
  • Set your zk_basedir to /hbase in opentsdb.conf. In my case, make sure you use the right configuration file (/etc/opentsdb/opentsdb.conf in Debian installation)
  • You may also add the --zkbasedir=/hbase parameter when starting tsdb.
  • Create the tables necessary for opentsdb by starting /opt/opentsdb/src/create_tables.sh
  • Finally, make sure you run all the necessary startup scripts, but do so using bash, not sh. So really run just ./build/tsdb and not 'sh build/tsdb'.

@wwken
Copy link

wwken commented May 15, 2016

I had the same issue. The workaround for me is to set tsd.storage.hbase.zk_basedir = /hbase-unsecure in the opentsdb.conf then it works

@devsathish
Copy link

I had similar issues with Horton Works Setup (Ambari manage HBase).
Follwing setting in /etc/opentsdb/opentsdb.conf solved.
tsd.storage.hbase.zk_basedir = /mnt/hbase-unsecure

Here is the error message I was getting:
ERROR [HBaseClient.processResult] - The znode for the -ROOT- region doesn't exist!

It meant, opentsdb is unable to use zookeeper.

@philippeback
Copy link

Works for me on hdp 2.6.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests