Uploaded image for project: 'Pig'
  1. Pig
  2. PIG-4556

Local mode is broken in some case by PIG-4247

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.15.0
    • None
    • None
    • Reviewed

    Description

      HExecutionEngine.getS3Conf is wrong. It should only return s3 config. Currently it will return all the properties, including *-site.xml even in local mode. In one particular case, mapred-site.xml contains "mapreduce.application.framework.path", this will going to the local mode config, thus we see the exception:

      Message: java.io.FileNotFoundException: File file:/hdp/apps/2.2.0.0-2041/mapreduce/mapreduce.tar.gz does not exist
      	at org.apache.hadoop.fs.RawLocalFileSystem.deprecatedGetFileStatus(RawLocalFileSystem.java:534)
      	at org.apache.hadoop.fs.RawLocalFileSystem.getFileLinkStatusInternal(RawLocalFileSystem.java:747)
      	at org.apache.hadoop.fs.RawLocalFileSystem.getFileStatus(RawLocalFileSystem.java:524)
      	at org.apache.hadoop.fs.DelegateToFileSystem.getFileStatus(DelegateToFileSystem.java:111)
      	at org.apache.hadoop.fs.AbstractFileSystem.resolvePath(AbstractFileSystem.java:460)
      	at org.apache.hadoop.fs.FilterFs.resolvePath(FilterFs.java:157)
      	at org.apache.hadoop.fs.FileContext$24.next(FileContext.java:2137)
      	at org.apache.hadoop.fs.FileContext$24.next(FileContext.java:2133)
      	at org.apache.hadoop.fs.FSLinkResolver.resolve(FSLinkResolver.java:90)
      	at org.apache.hadoop.fs.FileContext.resolve(FileContext.java:2133)
      	at org.apache.hadoop.fs.FileContext.resolvePath(FileContext.java:595)
      	at org.apache.hadoop.mapreduce.JobSubmitter.addMRFrameworkToDistributedCache(JobSubmitter.java:753)
      	at org.apache.hadoop.mapreduce.JobSubmitter.submitJobInternal(JobSubmitter.java:435)
      	at org.apache.hadoop.mapreduce.Job$10.run(Job.java:1296)
      	at org.apache.hadoop.mapreduce.Job$10.run(Job.java:1293)
      	at java.security.AccessController.doPrivileged(Native Method)
      	at javax.security.auth.Subject.doAs(Subject.java:415)
      	at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1628)
      	at org.apache.hadoop.mapreduce.Job.submit(Job.java:1293)
      	at org.apache.hadoop.mapreduce.lib.jobcontrol.ControlledJob.submit(ControlledJob.java:335)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:606)
      	at org.apache.pig.backend.hadoop23.PigJobControl.submit(PigJobControl.java:128)
      	at org.apache.pig.backend.hadoop23.PigJobControl.run(PigJobControl.java:194)
      	at java.lang.Thread.run(Thread.java:745)
      	at org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.MapReduceLauncher$1.run(MapReduceLauncher.java:276)
      

      Attachments

        1. PIG-4556-3.patch
          1 kB
          Daniel Dai
        2. PIG-4556-2.patch
          1 kB
          Daniel Dai
        3. PIG-4556-1.patch
          1.0 kB
          Daniel Dai

        Issue Links

          Activity

            People

              daijy Daniel Dai
              daijy Daniel Dai
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: