转载自:http://blog.csdn.net/sunny05296/article/details/54089194
安装HBase时,要考虑选择正确的Hadoop版本,否则可能出现不兼容的情况。
HBase各版本和Hadoop版本的支持情况,官方有相关说明,下面表格中:
"S" = 支持
"X" = 不支持
"NT" = 未测试
HBase-0.94.x | HBase-0.98.x (Support for Hadoop 1.1+ is deprecated.) | HBase-1.0.x (Hadoop 1.x is NOT supported) | HBase-1.1.x | HBase-1.2.x | HBase-1.3.x | HBase-2.0.x | |
---|---|---|---|---|---|---|---|
Hadoop-1.0.x |
X |
X |
X |
X |
X |
X |
X |
Hadoop-1.1.x |
S |
NT |
X |
X |
X |
X |
X |
Hadoop-0.23.x |
S |
X |
X |
X |
X |
X |
X |
Hadoop-2.0.x-alpha |
NT |
X |
X |
X |
X |
X |
X |
Hadoop-2.1.0-beta |
NT |
X |
X |
X |
X |
X |
X |
Hadoop-2.2.0 |
NT |
S |
NT |
NT |
X |
X |
X |
Hadoop-2.3.x |
NT |
S |
NT |
NT |
X |
X |
X |
Hadoop-2.4.x |
NT |
S |
S |
S |
S |
S |
X |
Hadoop-2.5.x |
NT |
S |
S |
S |
S |
S |
X |
Hadoop-2.6.0 |
X |
X |
X |
X |
X |
X |
X |
Hadoop-2.6.1+ |
NT |
NT |
NT |
NT |
S |
S |
S |
Hadoop-2.7.0 |
X |
X |
X |
X |
X |
X |
X |
Hadoop-2.7.1+ |
NT |
NT |
NT |
NT |
S |
S |
S |
Hadoop 2.6.x
Hadoop distributions based on the 2.6.x line must have HADOOP-11710 applied |
Hadoop 2.7.x
Hadoop version 2.7.0 is not tested or supported as the Hadoop PMC has explicitly labeled that release as not being stable. |
Replace the Hadoop Bundled With HBase!
Because HBase depends on Hadoop, it bundles an instance of the Hadoop jar under its lib directory. The bundled jar is ONLY for use in standalone mode. In distributed mode, it is critical that the version of Hadoop that is out on your cluster match what is under |
参考官方说明:
http://hbase.apache.org/book.html#configuration