Uploaded image for project: 'Hadoop YARN'
  1. Hadoop YARN
  2. YARN-6999

Add log about how to solve Error: Could not find or load main class org.apache.hadoop.mapreduce.v2.app.MRAppMaster

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.0.0-beta1
    • Fix Version/s: 2.9.0, 3.0.0-beta1
    • Component/s: documentation, security
    • Labels:
    • Environment:

      All operating systems.

      Description

      According Setting up a Single Node Cluster https://hadoop.apache.org/docs/stable/hadoop-project-dist/hadoop-common/SingleCluster.html, we would still failed to run the MapReduce job example. Due to a security fix, yarn use user's environment variables to init, and user's environment variable usually doesn't include MapReduce related settings. So we need to add the related config in etc/hadoop/mapred-site.xml manually. Currently the log only tells there is an Error:
      Could not find or load main class org.apache.hadoop.mapreduce.v2.app.MRAppMaster, without suggestion on how to solve it. I want to add the useful suggestion in log.

        Attachments

        1. yarn-6999.patch
          2 kB
          Linlin Zhou
        2. yarn-6999.003.patch
          3 kB
          Linlin Zhou
        3. yarn-6999.002.patch
          3 kB
          Linlin Zhou

          Activity

            People

            • Assignee:
              littlestone00 Linlin Zhou
              Reporter:
              littlestone00 Linlin Zhou
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 1h
                1h
                Remaining:
                Remaining Estimate - 1h
                1h
                Logged:
                Time Spent - Not Specified
                Not Specified