Hadoop Map/Reduce
  1. Hadoop Map/Reduce
  2. MAPREDUCE-4076

Stream job fails with ZipException when use yarn jar command

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Blocker Blocker
    • Resolution: Fixed
    • Affects Version/s: 2.0.0-alpha, 3.0.0
    • Fix Version/s: 2.0.0-alpha
    • Component/s: mrv2
    • Labels:
      None

      Description

      Stream job fails with ZipException when use yarn jar command and executes successfully with hadoop jar command.

      linux-f330:/home/devaraj/hadoop/trunk/hadoop-0.24.0-SNAPSHOT/bin # ./yarn jar ../share/hadoop/tools/lib/hadoop-streaming-0.24.0-SNAPSHOT.jar -input /hadoop -output /test/output/1 -mapper cat -reducer wc
      packageJobJar: [] [/home/devaraj/hadoop/trunk/hadoop-0.24.0-SNAPSHOT/bin/$%7Bhadoop.home.dir%7D/hadoop-$%7Buser.name%7D/hadoop-unjar4241129353499211360/] /tmp/streamjob7683981905208294893.jar tmpDir=null
      Exception in thread "main" java.io.IOException: java.util.zip.ZipException: ZIP file must have at least one entry
              at org.apache.hadoop.streaming.JarBuilder.merge(JarBuilder.java:82)
              at org.apache.hadoop.streaming.StreamJob.packageJobJar(StreamJob.java:707)
              at org.apache.hadoop.streaming.StreamJob.setJobConf(StreamJob.java:948)
              at org.apache.hadoop.streaming.StreamJob.run(StreamJob.java:127)
              at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:70)
              at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:84)
              at org.apache.hadoop.streaming.HadoopStreaming.main(HadoopStreaming.java:50)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
              at java.lang.reflect.Method.invoke(Method.java:597)
              at org.apache.hadoop.util.RunJar.main(RunJar.java:200)
      

        Activity

        Devaraj K created issue -
        Devaraj K made changes -
        Field Original Value New Value
        Attachment MAPREDUCE-4076.patch [ 12520416 ]
        Devaraj K made changes -
        Status Open [ 1 ] Patch Available [ 10002 ]
        Devaraj K made changes -
        Affects Version/s 2.0.0 [ 12320354 ]
        Affects Version/s 3.0.0 [ 12320355 ]
        Priority Critical [ 2 ] Blocker [ 1 ]
        Devaraj K made changes -
        Affects Version/s 0.23.1 [ 12318883 ]
        Robert Joseph Evans made changes -
        Status Patch Available [ 10002 ] Resolved [ 5 ]
        Fix Version/s 2.0.0 [ 12320354 ]
        Resolution Fixed [ 1 ]
        Arun C Murthy made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            Devaraj K
            Reporter:
            Devaraj K
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development