Hbase启动警告:Java HotSpot(TM) 64-Bit Server VM warning: ignoring option PermSize=128m; ......

目录

一、问题

二、排查&解决


一、问题

Hbase启动时,出现警告:

[hadoop@hadoop000 ~]$ start-hbase.sh 
starting master, logging to /home/hadoop/app/hbase-1.2.0-cdh5.7.0/logs/hbase-hadoop-master-hadoop000.out
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option PermSize=128m; support was removed in 8.0
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=128m; support was removed in 8.0

hadoop000: starting regionserver, logging to /home/hadoop/app/hbase-1.2.0-cdh5.7.0/bin/../logs/hbase-hadoop-regionserver-hadoop000.out

二、排查&解决

1、Hbase安装过程中,能跟Java有关系的操作,我只是在 $HBASE_HOME/conf/hbase-env.sh 文件中进行过配置,所以先去查看这个文件。

2、在这个文件中搜索相关内容,找到如下:

# Configure PermSize. Only needed in JDK7. You can safely remove it for JDK8+
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"

3、根据注释说明,将两个 export 注释掉即可。

4、再重新启动,正常了。

[hadoop@hadoop000 conf]$ start-hbase.sh 
starting master, logging to /home/hadoop/app/hbase-1.2.0-cdh5.7.0/logs/hbase-hadoop-master-hadoop000.out
hadoop000: starting regionserver, logging to /home/hadoop/app/hbase-1.2.0-cdh5.7.0/bin/../logs/hbase-hadoop-regionserver-hadoop000.out
[hadoop@hadoop000 conf]$ 

 

你可能感兴趣的:(大数据)