Tuesday, 18 December 2012

HBase Master startup issue

I had tough time trying to solve an issue that occured when HBase started. The HBase master failed to start with an error "host name cant be null".

HBase was earlier started with a 2 node cluster (2 region servers) pointing to a specific HDFS folder. When data was inserted earlier, it keeps reference to the hostnames in the cluster.

Now when i start the Hbase now with just one node, it tries to look at the data that was earlier there and failed to see one of the nodes, which is not used now.

The solution is to delete the HDFS folder that was earlier used (if you do not mind the loss of data).
I restarted the HBase after deleting this folder and it worked fine.

Another option would be to make HBase point to a different HDFS folder (hbase-site.xml).

Hope this helps!!

No comments:

Post a Comment