Uploaded image for project: 'Flume'
  1. Flume
  2. FLUME-2347

Add FLUME_JAVA_OPTS which allows users to inject java properties from cmd line

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.5.0
    • None
    • None

    Description

      In order to set java properties such as -X, -D, and -javaagent we have teh following:

      • flume-ng takes -X and -D as native properties
      • JAVA_OPTS can be placed in the flume-env.sh file

      However, there is no way to set properties on the command line which do not start with -X or -D.

      eg.

      env JAVA_OPTS="-javaagent...." flume-ng ....

      Therefore I suggest we introduce FLUME_JAVA_OPTS which sets properties from the env starting the flume-ng command. This will not impact users who use JAVA_OPTs in the non-flume environment incompatibly with flume.

      Attachments

        1. FLUME-2347.patch
          0.5 kB
          Brock Noland

        Activity

          People

            brocknoland Brock Noland
            brocknoland Brock Noland
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: