Uploaded image for project: 'Hadoop Map/Reduce'
  1. Hadoop Map/Reduce
  2. MAPREDUCE-7142

[JDK9] Add "--add-modules java.activation" to java option if the Java version is 9 or upper.

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Critical
    • Resolution: Duplicate
    • None
    • None
    • None
    • None

    Description

      In Java 9, MapReduce job fails due to missing java.activation module, so we need to configure mapred-site.xml as follows to run MapReduce job:

      <property name="yarn.app.mapreduce.am.admin-command-opts" value="--add-modules java.activation"/>
      <property name="mapreduce.map.java.opts" value="--add-modules java.activation"/>
      <property name="mapreduce.reduce.java.opts" value="--add-modules java.activation"/>
      

      I'm thinking it's better to add "--add-modules java.activation" automatically.

      Attachments

        1. MAPREDUCE-7142.01.patch
          1 kB
          Akira Ajisaka

        Issue Links

          Activity

            People

              aajisaka Akira Ajisaka
              aajisaka Akira Ajisaka
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: