Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-17426

Inconsistent environment variable names for enabling JMX

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.4.0, 2.0.0
    • None
    • None
    • Reviewed
    • Hide
      In bin/hbase-config.sh,
      if value for HBASE_JMX_BASE is empty, keep current behavior.
      if HBASE_JMX_OPTS is not empty, keep current behavior.
      otherwise use the value of HBASE_JMX_BASE
      Show
      In bin/hbase-config.sh, if value for HBASE_JMX_BASE is empty, keep current behavior. if HBASE_JMX_OPTS is not empty, keep current behavior. otherwise use the value of HBASE_JMX_BASE

    Description

      In conf/hbase-env.sh :

      # export HBASE_JMX_BASE="-Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false"
      # If you want to configure BucketCache, specify '-XX: MaxDirectMemorySize=' with proper direct memory size
      # export HBASE_THRIFT_OPTS="$HBASE_JMX_BASE -Dcom.sun.management.jmxremote.port=10103"
      

      But in bin/hbase-config.sh , a different variable is used:

      # Thrift JMX opts
      if [ -n "$HBASE_JMX_OPTS" ] && [ -z "$HBASE_THRIFT_JMX_OPTS" ]; then
        HBASE_THRIFT_JMX_OPTS="$HBASE_JMX_OPTS -Dcom.sun.management.jmxremote.port=10103"
      fi
      

      The variable names should be aligned for better user experience.

      Attachments

        1. HBASE-17426.branch-1.v0.patch
          0.7 kB
          Chia-Ping Tsai
        2. HBASE-17426.branch-1.v0.patch
          0.7 kB
          Chia-Ping Tsai
        3. HBASE-17426.v0.patch
          0.7 kB
          Chia-Ping Tsai

        Activity

          People

            chia7712 Chia-Ping Tsai
            yuzhihong@gmail.com Ted Yu
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: