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

export JAVA_HOME in flume-env.sh.template and increase heap size

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.4.0
    • Fix Version/s: 1.6.0
    • Component/s: Configuration, Shell
    • Labels:
      None

      Description

      JAVA_HOME is set but not exported currently in flume-env.template

      When this is not exported, the invocation of 'hadoop GetJavaProperty' in startup script, it runs into JAVA_HOME not set error followed by ClassNotFoundException.

      1. FLUME-2337.patch
        0.6 kB
        Roshan Naik

        Issue Links

          Activity

          Hide
          roshan_naik Roshan Naik added a comment -

          patch exports JAVA_HOME and also bumps max heap size from 200m to 2g

          Show
          roshan_naik Roshan Naik added a comment - patch exports JAVA_HOME and also bumps max heap size from 200m to 2g
          Hide
          paliwalashish Ashish Paliwal added a comment -

          Would be worth setting JAVA_HOME, if not already set. Can use following for setting
          export JAVA_HOME=$

          {/usr/libexec/java_home}

          I think the reason for small Heap was to keep the Agent footprint smaller, Flume Dev can confirm on this setting

          Show
          paliwalashish Ashish Paliwal added a comment - Would be worth setting JAVA_HOME, if not already set. Can use following for setting export JAVA_HOME=$ {/usr/libexec/java_home} I think the reason for small Heap was to keep the Agent footprint smaller, Flume Dev can confirm on this setting
          Hide
          hshreedharan Hari Shreedharan added a comment -

          Do we want to export JAVA_OPTS too?

          Show
          hshreedharan Hari Shreedharan added a comment - Do we want to export JAVA_OPTS too?
          Hide
          roshan_naik Roshan Naik added a comment -

          not sure.. what do you think ? seemed harmless.

          Show
          roshan_naik Roshan Naik added a comment - not sure.. what do you think ? seemed harmless.
          Hide
          hshreedharan Hari Shreedharan added a comment -

          +1.

          Show
          hshreedharan Hari Shreedharan added a comment - +1.
          Hide
          jira-bot ASF subversion and git services added a comment -

          Commit 72be82d301895c214a10dd875260ddc308048623 in flume's branch refs/heads/trunk from Hari Shreedharan
          [ https://git-wip-us.apache.org/repos/asf?p=flume.git;h=72be82d ]

          FLUME-2337. export JAVA_HOME in flume-env.sh.template and increase heap size

          (Roshan Naik via Hari)

          Show
          jira-bot ASF subversion and git services added a comment - Commit 72be82d301895c214a10dd875260ddc308048623 in flume's branch refs/heads/trunk from Hari Shreedharan [ https://git-wip-us.apache.org/repos/asf?p=flume.git;h=72be82d ] FLUME-2337 . export JAVA_HOME in flume-env.sh.template and increase heap size (Roshan Naik via Hari)
          Hide
          jira-bot ASF subversion and git services added a comment -

          Commit e76583db5bda90ecb050761314d2264835070264 in flume's branch refs/heads/flume-1.6 from Hari Shreedharan
          [ https://git-wip-us.apache.org/repos/asf?p=flume.git;h=e76583d ]

          FLUME-2337. export JAVA_HOME in flume-env.sh.template and increase heap size

          (Roshan Naik via Hari)

          Show
          jira-bot ASF subversion and git services added a comment - Commit e76583db5bda90ecb050761314d2264835070264 in flume's branch refs/heads/flume-1.6 from Hari Shreedharan [ https://git-wip-us.apache.org/repos/asf?p=flume.git;h=e76583d ] FLUME-2337 . export JAVA_HOME in flume-env.sh.template and increase heap size (Roshan Naik via Hari)
          Hide
          hshreedharan Hari Shreedharan added a comment -

          Committed. Thanks Roshan!

          Show
          hshreedharan Hari Shreedharan added a comment - Committed. Thanks Roshan!
          Hide
          hudson Hudson added a comment -

          UNSTABLE: Integrated in flume-trunk #656 (See https://builds.apache.org/job/flume-trunk/656/)
          FLUME-2337. export JAVA_HOME in flume-env.sh.template and increase heap size (hshreedharan: http://git-wip-us.apache.org/repos/asf/flume/repo?p=flume.git&a=commit&h=72be82d301895c214a10dd875260ddc308048623)

          • conf/flume-env.sh.template
          Show
          hudson Hudson added a comment - UNSTABLE: Integrated in flume-trunk #656 (See https://builds.apache.org/job/flume-trunk/656/ ) FLUME-2337 . export JAVA_HOME in flume-env.sh.template and increase heap size (hshreedharan: http://git-wip-us.apache.org/repos/asf/flume/repo?p=flume.git&a=commit&h=72be82d301895c214a10dd875260ddc308048623 ) conf/flume-env.sh.template
          Hide
          hudson Hudson added a comment -

          UNSTABLE: Integrated in Flume-trunk-hbase-98 #16 (See https://builds.apache.org/job/Flume-trunk-hbase-98/16/)
          FLUME-2337. export JAVA_HOME in flume-env.sh.template and increase heap size (hshreedharan: http://git-wip-us.apache.org/repos/asf/flume/repo?p=flume.git&a=commit&h=72be82d301895c214a10dd875260ddc308048623)

          • conf/flume-env.sh.template
          Show
          hudson Hudson added a comment - UNSTABLE: Integrated in Flume-trunk-hbase-98 #16 (See https://builds.apache.org/job/Flume-trunk-hbase-98/16/ ) FLUME-2337 . export JAVA_HOME in flume-env.sh.template and increase heap size (hshreedharan: http://git-wip-us.apache.org/repos/asf/flume/repo?p=flume.git&a=commit&h=72be82d301895c214a10dd875260ddc308048623 ) conf/flume-env.sh.template
          Hide
          roshan_naik Roshan Naik added a comment -

          thanks Hari !

          Show
          roshan_naik Roshan Naik added a comment - thanks Hari !

            People

            • Assignee:
              roshan_naik Roshan Naik
              Reporter:
              roshan_naik Roshan Naik
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development