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

Fix broken current folder expansion during MR job start

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.9.0, 3.0.3
    • 3.3.0, 3.2.1, 3.1.3
    • mrv2
    • None

    Description

      Starting a sleep job giving "." as files that should be localized is working fine up until 2.9.0, but after that the user is given an IllegalArgumentException. This change is a side-effect of HADOOP-12747 where GenericOptionsParser#validateFiles function got modified.

      Can be reproduced by starting a sleep job with "-files ." given as extra parameter. Log:

      sudo -u hdfs hadoop jar hadoop-mapreduce-client-jobclient-3.0.0.jar sleep -files . -m 1 -r 1 -rt 2000 -mt 2000
      WARNING: Use "yarn jar" to launch YARN applications.
      19/07/17 08:13:26 INFO client.ConfiguredRMFailoverProxyProvider: Failing over to rm21
      19/07/17 08:13:26 INFO mapreduce.JobResourceUploader: Disabling Erasure Coding for path: /user/hdfs/.staging/job_1563349475208_0017
      19/07/17 08:13:26 INFO mapreduce.JobSubmitter: Cleaning up the staging area /user/hdfs/.staging/job_1563349475208_0017
      java.lang.IllegalArgumentException: Can not create a Path from an empty string
      	at org.apache.hadoop.fs.Path.checkPathArg(Path.java:168)
      	at org.apache.hadoop.fs.Path.<init>(Path.java:180)
      	at org.apache.hadoop.fs.Path.<init>(Path.java:125)
      	at org.apache.hadoop.mapreduce.JobResourceUploader.copyRemoteFiles(JobResourceUploader.java:686)
      	at org.apache.hadoop.mapreduce.JobResourceUploader.uploadFiles(JobResourceUploader.java:262)
      	at org.apache.hadoop.mapreduce.JobResourceUploader.uploadResourcesInternal(JobResourceUploader.java:203)
      	at org.apache.hadoop.mapreduce.JobResourceUploader.uploadResources(JobResourceUploader.java:131)
      	at org.apache.hadoop.mapreduce.JobSubmitter.copyAndConfigureFiles(JobSubmitter.java:99)
      	at org.apache.hadoop.mapreduce.JobSubmitter.submitJobInternal(JobSubmitter.java:194)
      	at org.apache.hadoop.mapreduce.Job$11.run(Job.java:1570)
      	at org.apache.hadoop.mapreduce.Job$11.run(Job.java:1567)
      	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:1726)
      	at org.apache.hadoop.mapreduce.Job.submit(Job.java:1567)
      	at org.apache.hadoop.mapreduce.Job.waitForCompletion(Job.java:1588)
      	at org.apache.hadoop.mapreduce.SleepJob.run(SleepJob.java:273)
      	at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:76)
      	at org.apache.hadoop.mapreduce.SleepJob.main(SleepJob.java:194)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:498)
      	at org.apache.hadoop.util.ProgramDriver$ProgramDescription.invoke(ProgramDriver.java:71)
      	at org.apache.hadoop.util.ProgramDriver.run(ProgramDriver.java:144)
      	at org.apache.hadoop.test.MapredTestDriver.run(MapredTestDriver.java:139)
      	at org.apache.hadoop.test.MapredTestDriver.main(MapredTestDriver.java:147)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:498)
      	at org.apache.hadoop.util.RunJar.run(RunJar.java:313)
      	at org.apache.hadoop.util.RunJar.main(RunJar.java:227)
      

      Attachments

        1. MAPREDUCE-7225-003.patch
          7 kB
          Peter Bacsko
        2. MAPREDUCE-7225-002.patch
          6 kB
          Peter Bacsko
        3. MAPREDUCE-7225-002.patch
          6 kB
          Peter Bacsko
        4. MAPREDUCE-7225-001.patch
          1 kB
          Peter Bacsko
        5. MAPREDUCE-7225.branch-3.2.001.patch
          7 kB
          Peter Bacsko
        6. MAPREDUCE-7225.branch-3.1.001.patch
          7 kB
          Peter Bacsko

        Issue Links

          Activity

            People

              pbacsko Peter Bacsko
              adam.antal Adam Antal
              Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: