Can't get HBase Stand-alone mode to start

hbase

Solution

The `unexpected operator` message indicates you might have the same problem as I had:

Did you run it with `sudo sh start-hbase.sh`? Instead, try `sudo ./start-hbase.sh`.

I don't really know why, but `sh` seems not to be able to interpret square brackets. More details on the difference: https://askubuntu.com/questions/22910/what-is-the-difference-between-and-sh-to-run-a-script

Problem

I am going through the HBase QuickStart guide (http://hbase.apache.org/book/quickstart.html), and I am running into lots of problems getting through the first step. I am using Mint Linux 13 under VirtualBox with Win7 as host. I downloaded hbase 0.94.6.1, unzipped the file on my home path, configured the loopback address. I was fine with writing to /tmp for testing purposes, so I did not modify /conf/hbase-site.xml. ``` start-hbase.sh: 45: [: false: unexpected operator localhost: starting zookeeper, logging to /home/askldjd/hbase-0.94.6.1/bin/../logs/hbase-askldjd-zookeeper-test-hadoop.out starting master, logging to /home/askldjd/hbase-0.94.6.1/bin/../logs/hbase-askldjd-master-test-hadoop.out Could not start ZK at requested port of 2181. ZK was started at port: 2182. Aborting as clients (e.g. shell) will not be able to find this ZK quorum. localhost: starting regionserver, logging to /home/askldjd/hbase-0.94.6.1/bin/../logs/hbase-askldjd-regionserver-test-hadoop.out ``` If I type ./bin/hbase shell, and enter status, here's what I get. ``` 13/04/05 01:47:06 ERROR client.HConnectionManager$HConnectionImplementation: Check the value configured in 'zookeeper.znode.parent'. There could be a mismatch with the one configured in the master. ``` JAVA_HOME is configured. ``` askldjd@test-hadoop ~ $ echo $JAVA_HOME /usr/lib/jvm/java-6-openjdk-amd64/ ``` I think I am missing something very basic here. Any help would be greatly appreciated. Thanks ... Alan

Original source