Friday, June 7, 2013

PleaseHoldException in HBase Shell (CloudEra)


Started learning a bit on Hadoop, HBase. In the coming months will post a bit about what I have been learning on that. So here goes,

I installed CloudEra on my local, installed Hadoop in a pseudo-distributed mode and HBase in a standalone mode. All installations were successful, but when I went into the HBase Shell and tried to run some commands, all I got was a "PleaseHoldException: Master is initializing"

So, the solution to this is to open the "/etc/hosts" file. Check the entries and there you'll find an entry with ip as "127.0.1.1". Change this to "127.0.0.1" and restart HBase and things should work fine.

This error normally comes because when you start HBase, it will search for the master node and try to connect to that. In the local system, it is not able to resolve the "127.0.1.1" and hence the exception.

Hope it helps. Cheers.


1 comment :

Anonymous said...

Thanks!! This helped