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

Log process environment variable on HBase service startup

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 0.95.2, 0.94.11
    • 0.96.0
    • None
    • Reviewed
    • Hide
      HBase services (Master and Regionserver) logs environment variables to the log on startup. This can be disabled by setting "hbase.envvars.logging.disabled" to "true".

      If enabled, you can also exclude environment variables containing certain substrings by setting "hbase.envvars.logging.skipwords" to comma separated list of such substrings.
      Show
      HBase services (Master and Regionserver) logs environment variables to the log on startup. This can be disabled by setting "hbase.envvars.logging.disabled" to "true". If enabled, you can also exclude environment variables containing certain substrings by setting "hbase.envvars.logging.skipwords" to comma separated list of such substrings.

    Description

      HBase services already logs information related to JVM properties and command line arguments used to start the services which have been immensely helpful to investigate issues.

      One thing that they do not log is the environment variables and an unintended variable in the environment could lead to a scenario not reproducible anywhere else including its original location if the service is restarted differently.

      We should log environment variables (excluding those which may contains credentials) on service startup with option to disable this logging.

      Attachments

        1. HBASE-9577.patch
          4 kB
          Aditya Kishore
        2. HBASE-9577.patch
          4 kB
          Aditya Kishore
        3. HBASE-9577.patch
          5 kB
          Aditya Kishore

        Activity

          People

            adityakishore Aditya Kishore
            adityakishore Aditya Kishore
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: