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

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 3.0.0-beta1
    • 2.9.0, 3.0.0-beta1
    • documentation, security
    • 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.003.patch
          3 kB
          Linlin Zhou
        2. yarn-6999.002.patch
          3 kB
          Linlin Zhou
        3. yarn-6999.patch
          2 kB
          Linlin Zhou

        Activity

          People

            littlestone00 Linlin Zhou
            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