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

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

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: v1.5.0
    • Component/s: None
    • Labels:
      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.

      1. FLUME-2347.patch
        0.5 kB
        Brock Noland

        Activity

        Hide
        jarcec Jarek Jarcec Cecho added a comment -

        +1

        Show
        jarcec Jarek Jarcec Cecho added a comment - +1
        Hide
        jira-bot ASF subversion and git services added a comment -

        Commit 09f0a513602c3b0bb2c9e19903ae6d5e052ab460 in flume's branch refs/heads/trunk from Jarek Jarcec Cecho
        [ https://git-wip-us.apache.org/repos/asf?p=flume.git;h=09f0a51 ]

        FLUME-2347: Add FLUME_JAVA_OPTS which allows users to inject java properties from cmd line

        (Brock Noland via Jarek Jarcec Cecho)

        Show
        jira-bot ASF subversion and git services added a comment - Commit 09f0a513602c3b0bb2c9e19903ae6d5e052ab460 in flume's branch refs/heads/trunk from Jarek Jarcec Cecho [ https://git-wip-us.apache.org/repos/asf?p=flume.git;h=09f0a51 ] FLUME-2347 : Add FLUME_JAVA_OPTS which allows users to inject java properties from cmd line (Brock Noland via Jarek Jarcec Cecho)
        Hide
        jira-bot ASF subversion and git services added a comment -

        Commit 636031253a42e8bb5822cb2b52598e21fe4a40a9 in flume's branch refs/heads/flume-1.5 from Jarek Jarcec Cecho
        [ https://git-wip-us.apache.org/repos/asf?p=flume.git;h=6360312 ]

        FLUME-2347: Add FLUME_JAVA_OPTS which allows users to inject java properties from cmd line

        (Brock Noland via Jarek Jarcec Cecho)

        Show
        jira-bot ASF subversion and git services added a comment - Commit 636031253a42e8bb5822cb2b52598e21fe4a40a9 in flume's branch refs/heads/flume-1.5 from Jarek Jarcec Cecho [ https://git-wip-us.apache.org/repos/asf?p=flume.git;h=6360312 ] FLUME-2347 : Add FLUME_JAVA_OPTS which allows users to inject java properties from cmd line (Brock Noland via Jarek Jarcec Cecho)
        Hide
        jarcec Jarek Jarcec Cecho added a comment -

        Thank you for your contribution Brock Noland!

        Show
        jarcec Jarek Jarcec Cecho added a comment - Thank you for your contribution Brock Noland !
        Hide
        hudson Hudson added a comment -

        FAILURE: Integrated in flume-trunk #629 (See https://builds.apache.org/job/flume-trunk/629/)
        FLUME-2347: Add FLUME_JAVA_OPTS which allows users to inject java properties from cmd line (jarcec: http://git-wip-us.apache.org/repos/asf/flume/repo/?p=flume.git&a=commit&h=09f0a513602c3b0bb2c9e19903ae6d5e052ab460)

        • bin/flume-ng
        Show
        hudson Hudson added a comment - FAILURE: Integrated in flume-trunk #629 (See https://builds.apache.org/job/flume-trunk/629/ ) FLUME-2347 : Add FLUME_JAVA_OPTS which allows users to inject java properties from cmd line (jarcec: http://git-wip-us.apache.org/repos/asf/flume/repo/?p=flume.git&a=commit&h=09f0a513602c3b0bb2c9e19903ae6d5e052ab460 ) bin/flume-ng

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development