Environment
Hbase-0.90.3
Hadoop-0.20.2
At first I used a hadoop-0.21.0, engaged in half a day to do not good, the log inside the error said connection errors
16:05:32, 239 fatal org. Apache. hadoop. hbase. master. hmaster: unhandled exception. Starting shutdown.
Java. Io. ioexception: Call to hadoop5/10.20.151.9: 9000 failed on local exception: Java. Io. eofexception
After reading the configuration for half a day, I couldn't see any problems. Later I discussed it with my colleagues and found it was a version problem. below is the original statement in the hbase document.
This version of hbase will only run on hadoop 0.20.x. It will not run on hadoop 0.21.x (nor 0.22.x ).
It seems that the document should be carefully read.
Zookeeper is used in hbase. Therefore, there are two options in your environment. One is to allow hbase to help you manage zookeeper, and the other is to manage your own zookeeper cluster, this feature is controlled by the hbase_manages_zk parameter in the hbase-env.sh.
I will not talk about the steps for installing hbase and zookeeper. Refer to the links below for details.
Http://space.itpub.net/8183550/viewspace-683603
The following are some notes: there is a problem in my hadoop and hbase versions, and an error will be reported when I start hbase.
Org. apache. hadoop. ipc. RPC $ VersionMismatch: Protocol org. apache. hadoop. hdfs. protocol. ClientProtocol version mismatch. (client = 42, server = 41)
Check the Internet, the hbase-0.90.3/lib in the hadoop-core-0.20-append-r1056497.jar for the hadoop-core-0.20 can be.
However, even though the HMaster can run in this way, when hdp0: 60010 is executed, the system prompts that data may be lost if hadoop-append is not supported.
So the correct approach should be to make hadoop-append instead of hadoop-core-0.20.
After HBASE is started, use the habse shell to log in and try the operation.
[Gpadmin1 @ hadoop5 bin] $./hbase shell
HBase Shell; enter 'help <RETURN> 'for list of supported commands.
Type "exit <RETURN>" to leave the HBase Shell
Version 0.90.3, r1100350, Sat May 7 13:31:12 PDT 2011
Hbase (main): 001: 0> create 'test', 'cf'
0 row (s) in 1.8140 seconds
Hbase (main): 003: 0> put 'test', 'row1', 'cf: A', 'value1'
0 row (s) in 0.1470 seconds
Hbase (main): 004: 0> scan 'test'
Row column + CELL
Row1 column = cf: a, timestamp = 1308133829965, value = value1
1 row (s) in 0.0600 seconds
Hbase (main): 005: 0> list
TABLE
Test
1 row (s) in 0.0250 seconds