- Error: JAVA_HOME is not set
解决办法:
- 确认正确配置JAVA_HOE相关配置,
- 加载配置文件: source ~/.bash_profile
- java -version,检查是否安装成功
- 启动hbase,报错ignoring option PermSize=128m……;
解决办法:
-
修改./hbase/conf/hbase-env.sh 文件
-
注释hbase-env.sh文件中“ # Configure PermSize. ”下面内容:##export HBASE_MASTER_OPTS="$HBASE_MASTER_OPTS -XX:PermSize=128m -XX:MaxPermSize=128m"##export HBASE_REGIONSERVER_OPTS="$HBASE_REGIONSERVER_OPTS -XX:PermSize=128m -XX:MaxPermSize=128m -XX:ReservedCodeCacheSize=256m"
- 启动hbase报错,master running as process 10816. Stop it first.
解决办法:
./bin目录下的文件
-
先使用脚本stop-hbse.sh,停止hbase;[root@localhost bin]# ./stop-hbase.shstopping hbase.................
-
使用命令脚本start-hbase.sh启动;[root@localhost bin]# ./start-hbase.shstarting master, logging to /data/hbase/alihbase-1.1.4/bin/../logs/hbase-root-master-localhost.localdomain.out
-
成功启动后,进入hbase,测试是否正常使用:[root@localhost bin]# ./hbase shell2018-04-11 18:47:52,734 WARN [main] util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicableHBase Shell; enter 'help<RETURN>' for list of supported commands.Type "exit<RETURN>" to leave the HBase ShellVersion 1.1.4, r42087c14e8a7c40a7b027b54e00271bf1e3c1d26, Wed Mar 21 20:59:02 CST 2018hbase(main):001:0>
- 启动hbase,Error: JAVA_HOME is not set
解决办法:
-
向./bin/hbse-env.sh,将文件添加JAVA_HOME,指定为java实际安装目录即可:export JAVA_HOME=/usr/local/jdk1.8.0_161/