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

DUMP throws IOException but it DESCRIBE's the schema

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • None
    • None
    • Hortonworks - hadoop platform. But code is running local using PigUnit test method

    Description

      This started happening recently for some JOINs and ORDER BY clause. Not sure anything to do with the java update. Currently running Java 8 (161). Here is the pig code and log 

      memberIds: {newMemberId: long,memberId: long}

      memberTier: {Name: chararray,MemberId: long,TierId: long,StartDateId: long,EndDateId: long}

      DUMP memberTier; – works fine
      DESCRIBE memberTier; – works fine 
      DUMP memberIds; – works fine
      DESCRIBE memberIds; – works fine
      memberTierOne = JOIN memberTier BY (MemberId) LEFT OUTER, memberIds BY (memberId);
      DUMP memberTierOne; – errors out (if commented, the next line works)
      DESCRIBE memberTierOne; – (works fine, when DUMP is commented)

      Stack Trace 

      4097 [main] ERROR org.apache.pig.tools.pigstats.mapreduce.MRPigStatsUtil - 1 map reduce job(s) failed!
      Disconnected from the target VM, address: '127.0.0.1:55872', transport: 'socket'

      org.apache.pig.impl.logicalLayer.FrontendException: ERROR 1066: Unable to open iterator for alias memberTierOne

      at org.apache.pig.PigServer.openIterator(PigServer.java:1019)
      at org.apache.pig.tools.grunt.GruntParser.processDump(GruntParser.java:747)
      at org.apache.pig.tools.pigscript.parser.PigScriptParser.parse(PigScriptParser.java:376)
      at org.apache.pig.tools.grunt.GruntParser.parseStopOnError(GruntParser.java:231)
      at org.apache.pig.pigunit.pig.PigServer.registerScript(PigServer.java:55)
      at org.apache.pig.pigunit.PigTest.registerScript(PigTest.java:193)
      at org.apache.pig.pigunit.PigTest.runScript(PigTest.java:203)
      at com.olson.tally.client.hilton.migration.pigunit.test.MemberTierTest.MemberTierFileLoadMemberTierTestRun(MemberTierTest.java:157)
      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.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
      at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
      at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
      at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
      at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
      at org.junit.rules.ExpectedException$ExpectedExceptionStatement.evaluate(ExpectedException.java:110)
      at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:76)
      at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
      at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
      at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)
      at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)
      at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)
      at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)
      at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
      at org.junit.runner.JUnitCore.run(JUnitCore.java:157)
      at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:68)
      at com.intellij.rt.execution.junit.IdeaTestRunner$Repeater.startRunnerWithArgs(IdeaTestRunner.java:47)
      at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:242)
      at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:70)
      Caused by: java.io.IOException: Job terminated with anomalous status FAILED
      at org.apache.pig.PigServer.openIterator(PigServer.java:1011)
      ... 30 more

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            tamilarasu TamilArasu Perumal
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: