Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-17970

Set yarn.app.mapreduce.am.staging-dir when starting MiniMRCluster

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.0.0
    • Component/s: mapreduce, snapshots, test
    • Labels:
      None

      Description

      As discussed in mailing-list

      https://builds.apache.org/job/HBASE-Flaky-Tests/15333/artifact/hbase-server/target/surefire-reports/org.apache.hadoop.hbase.snapshot.TestMobExportSnapshot-output.txt/*view*/

      Test*ExportSnapshot will fail if they are executed concurrently because of they share the same staging directory.

      java.io.FileNotFoundException: File
      file:/tmp/hadoop-yarn/staging/jenkins/.staging/job_1492809330233_0001/job.split
      does not exist
              at org.apache.hadoop.fs.RawLocalFileSystem.deprecatedGetFileStatus(RawLocalFileSystem.java:606)
              at org.apache.hadoop.fs.RawLocalFileSystem.getFileLinkStatusInternal(RawLocalFileSystem.java:819)
              at org.apache.hadoop.fs.RawLocalFileSystem.getFileStatus(RawLocalFileSystem.java:596)
              at org.apache.hadoop.fs.FilterFileSystem.getFileStatus(FilterFileSystem.java:421)
              at org.apache.hadoop.yarn.util.FSDownload.copy(FSDownload.java:253)
              at org.apache.hadoop.yarn.util.FSDownload.access$000(FSDownload.java:63)
              at org.apache.hadoop.yarn.util.FSDownload$2.run(FSDownload.java:361)
              at org.apache.hadoop.yarn.util.FSDownload$2.run(FSDownload.java:359)
              at java.security.AccessController.doPrivileged(Native Method)
              at javax.security.auth.Subject.doAs(Subject.java:422)
              at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1657)
              at org.apache.hadoop.yarn.util.FSDownload.call(FSDownload.java:359)
              at org.apache.hadoop.yarn.util.FSDownload.call(FSDownload.java:62)
              at java.util.concurrent.FutureTask.run(FutureTask.java:266)
              at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
              at java.util.concurrent.FutureTask.run(FutureTask.java:266)
              at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
              at java.lang.Thread.run(Thread.java:745)
      

      We need to set yarn.app.mapreduce.am.staging-dir to let hem use different directories.

        Attachments

        1. HBASE-17970-v1.patch
          9 kB
          Duo Zhang
        2. HBASE-17970-v1.patch
          9 kB
          Duo Zhang
        3. HBASE-17970.patch
          2 kB
          Duo Zhang

          Issue Links

            Activity

              People

              • Assignee:
                Apache9 Duo Zhang
                Reporter:
                Apache9 Duo Zhang
              • Votes:
                0 Vote for this issue
                Watchers:
                8 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: