HBase启动时util.NativeCodeLoader错误

来源:互联网 发布:大数据分析师工资 编辑:程序博客网 时间:2024/06/06 05:08

在安装完hbase之后输入命令bin/start-hbase.sh可以正常启动master

在执行hbase shell之后会出现错误

[root@localhost hbase-1.2.6]# bin/hbase shell
2017-08-07 22:00:56,752 WARN  [main] util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
HBase Shell; enter 'help<RETURN>' for list of supported commands.
Type "exit<RETURN>" to leave the HBase Shell
Version 1.2.6, rUnknown, Mon May 29 02:25:32 CDT 2017


hbase(main):001:0> exit


解决办法:

在/etc/profile文件中添加HBASE_HOME和HADOOP_HOME


export HADOOP_HOME=/home/hadoop/hadoop-2.7.3


export HBASE_HOME=/usr/local/hbase-1.2.6

阅读全文
0 0