在哪里设置hbase jvm选项

lx0bsm1f  于 2021-06-09  发布在  Hbase
关注(0)|答案(1)|浏览(383)

有没有什么办法来设置 JVM 选择,比如 -XX:HeapDumpPath=./java_pid<pid>.hprof 为了 HBase ?
我正在使用 Ambari ,有没有办法通过使用 Ambari ?

nvbavucw

nvbavucw1#

在拉尔斯·乔治的《终极指南》中

$HABASE_HOME/conf/hbase-env.sh

hbase-env.sh
You set HBase environment variables in this file. Examples include options to pass to
the JVM when an HBase daemon starts, such as Java heap size and garbage collector
configurations. You also set options for HBase configuration, log directories, niceness,
SSH options, where to locate process pid files, and so on. Open the file at conf/hbaseenv.
sh and peruse its content. Each option is fairly well documented. Add your own
environment variables here if you want them read when an HBase daemon is started.
Changes here will require a cluster restart for HBase to notice the change.†

相关问题