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

JarManager fails for rsrc: jars

    XMLWordPrintableJSON

Details

    Description

      The following error occurs when using PigSever class, while using registerScript (InputStream). The Eclipse Maven project adds "pig-0.9.2.jar" as a dependency. When runned, if fails to merge pig-0.9.2.jar. The whole trace is:

      ###
      Caused by: org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.JobCreationException: ERROR 2017: Internal error creating job configuration.
      at org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.JobControlCompiler.getJob(JobControlCompiler.java:727)
      at org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.JobControlCompiler.compile(JobControlCompiler.java:258)
      at org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.MapReduceLauncher.launchPig(MapReduceLauncher.java:150)
      at org.apache.pig.PigServer.launchPlan(PigServer.java:1314)
      at org.apache.pig.PigServer.executeCompiledLogicalPlan(PigServer.java:1299)
      at org.apache.pig.PigServer.execute(PigServer.java:1289)
      at org.apache.pig.PigServer.access$400(PigServer.java:125)
      at org.apache.pig.PigServer$Graph.registerQuery(PigServer.java:1591)
      ... 44 more
      Caused by: java.io.FileNotFoundException: rsrc:pig-0.9.2-core.jar (No such file or directory)
      at java.io.FileInputStream.open(Native Method)
      at java.io.FileInputStream.<init>(FileInputStream.java:137)
      at java.io.FileInputStream.<init>(FileInputStream.java:96)
      at org.apache.pig.impl.util.JarManager.mergeJar(JarManager.java:176)
      at org.apache.pig.impl.util.JarManager.createJar(JarManager.java:118)
      at org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.JobControlCompiler.getJob(JobControlCompiler.java:412)
      ###

      Pig should not fail for jars on the "rsrc:" path.

      Attachments

        1. pig_1333633836139.log
          5 kB
          Catalin Alexandru Zamfir
        2. mergeJarFix.diff
          1 kB
          Catalin Alexandru Zamfir

        Activity

          People

            Unassigned Unassigned
            catalinalexandru.zamfir@gameloft.com Catalin Alexandru Zamfir
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: