Hbase服务启动异常(hbase-ams-master.pid doesn‘t exist)
1.问题描述
部署完hbase之后启动服务发现报错,报错信息为hbase-ams-master.pid doesn‘t exist
2.问题排查
查看错误日志/var/log/hbase/hbase-hbase-master-khd-sd-b2k-hbase--ca83.out 和 hbase-hbase-master-khd-sd-b2k-hbase--ca83.log日志发现ERROR
unning master, logging to /var/log/hbase/hbase-hbase-master-khd-sd-b2k-hbase--ca83.out
Error: VM option 'UseG1GC' is experimental and must be enabled via -XX:+UnlockExperimentalVMOptions.
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
3.解决办法
在Hbase服务组件的Advanced hbase-env添加-XX:+UnlockExperimentalVMOptions,然后重启服务
# Set common JVM configuration
export HBASE_OPTS="$HBASE_OPTS -XX:+UnlockExperimentalVMOptions -XX:+UseG1GC -XX:MaxGCPauseMillis=100 -XX:-ResizePLAB -XX:ErrorFile={{log_dir}}/hs_err_pid%p.log -Djava.io.tmpdir={{java_io_tmpdir}}"
本文来自博客园,作者:whiteY,转载请注明原文链接:https://www.cnblogs.com/whiteY/p/18043416