Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of Contents

...

In some other cases, you may want to make similar addition for CATALINA_OPTS variable in your bin/catalina.sh file.

Elasticsearch

  • starting from command line:

    Code Block
    languagebash
    ./elasticsearch  -Dcom.sun.management.jmxremote 
    -Dcom.sun.management.jmxremote.port=3000 
    -Dcom.sun.management.jmxremote.ssl=true 
    -Djavax.net.ssl.keyStorePassword=password123 
    -Djavax.net.ssl.keyStore=/home/es/elasticsearch.ks 
    -Dcom.sun.management.jmxremote.authenticate=false
  • by adjusting elasticsearch/bin/elasticsearch.in.sh:

    Code Block
    languagebash
    JAVA_OPTS="$JAVA_OPTS -Dcom.sun.management.jmxremote 
    -Dcom.sun.management.jmxremote.port=3000 
    -Dcom.sun.management.jmxremote.ssl=true 
    -Djavax.net.ssl.keyStorePassword=password123 
    -Djavax.net.ssl.keyStore=/home/es/elasticsearch.ks 
    -Dcom.sun.management.jmxremote.authenticate=false"

using Java Service Wrapper, adjust elasticsearch/bin/service/elasticsearch.conf:

...

languagebash

...

No need for any adjustments since SPM monitor uses JSON API calls to collect Elasticsearch metrics.

HBase

Adjust your hbase-env.sh file. For instance, hbase master could get the following parameters:

...

Below is the image of CDH UI:

 

ZooKeeper

Adjust your zkServer.sh (usually found at /usr/lib/zookeeper/bin/zkServer.sh) by changing JVMFLAGS as follows:

Code Block
languagebash
export JVMFLAGS="$JVMFLAGS -Dcom.sun.management.jmxremote
-Dcom.sun.management.jmxremote.port=3000
-Dcom.sun.management.jmxremote.ssl=false
-Dcom.sun.management.jmxremote.authenticate=false"

...

For Workers (use this approach to have Storm dynamically assign a JMX port to each Worker choosing from the port range specified in the storm.yaml): 

Code Block
languagebash
worker.childopts: "-Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.port=%ID%"

...