From dev-return-59319-archive-asf-public=cust-asf.ponee.io@pig.apache.org Fri Feb 2 16:11:05 2018 Return-Path: X-Original-To: archive-asf-public@eu.ponee.io Delivered-To: archive-asf-public@eu.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by mx-eu-01.ponee.io (Postfix) with ESMTP id E7A74180608 for ; Fri, 2 Feb 2018 16:11:05 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id D6FA9160C49; Fri, 2 Feb 2018 15:11:05 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 05110160C41 for ; Fri, 2 Feb 2018 16:11:04 +0100 (CET) Received: (qmail 83452 invoked by uid 500); 2 Feb 2018 15:11:03 -0000 Mailing-List: contact dev-help@pig.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@pig.apache.org Delivered-To: mailing list dev@pig.apache.org Received: (qmail 83441 invoked by uid 500); 2 Feb 2018 15:11:03 -0000 Delivered-To: apmail-hadoop-pig-dev@hadoop.apache.org Received: (qmail 83438 invoked by uid 99); 2 Feb 2018 15:11:03 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 02 Feb 2018 15:11:03 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 62F82C0448 for ; Fri, 2 Feb 2018 15:11:03 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -109.511 X-Spam-Level: X-Spam-Status: No, score=-109.511 tagged_above=-999 required=6.31 tests=[ENV_AND_HDR_SPF_MATCH=-0.5, KAM_ASCII_DIVIDERS=0.8, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01, USER_IN_DEF_SPF_WL=-7.5, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id Kt4BZ383gl_i for ; Fri, 2 Feb 2018 15:11:02 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id DE4095FAE7 for ; Fri, 2 Feb 2018 15:11:01 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 93BAEE02F1 for ; Fri, 2 Feb 2018 15:11:01 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 9D6EF21E87 for ; Fri, 2 Feb 2018 15:11:00 +0000 (UTC) Date: Fri, 2 Feb 2018 15:11:00 +0000 (UTC) From: "TamilArasu Perumal (JIRA)" To: pig-dev@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Comment Edited] (PIG-5330) DUMP throws IOException but it DESCRIBE's the schema MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/PIG-5330?page=3Dcom.atlassian.j= ira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D163504= 84#comment-16350484 ]=20 TamilArasu Perumal edited comment on PIG-5330 at 2/2/18 3:10 PM: ----------------------------------------------------------------- Pig doesn't like the implicit=C2=A0conversion. it has to be explicit=C2=A0 Ex.:=C2=A0memberId AS MemberId:long (memberId was an integer but doesn't co= nvert that to long)=C2=A0 i had to modify the line to (long) memberId AS MemberId.=C2=A0 =C2=A0 It is working now, I=C2=A0can close this issue with the above note for deve= lopers. but I am not sure whether any fix need to be done or it suppose to = work like this. Please review and take action as needed.=C2=A0 was (Author: tamilarasu): Pig doesn't like the implicit=C2=A0conversion. it has to be explicit=C2=A0 Ex.:=C2=A0memberId AS MemberId:long (memberId was an integer but doesn't co= nvert that to long)=C2=A0 i had to modify the line to (long) memberId AS MemberId.=C2=A0 =C2=A0 It is working now, I am closing with the above so it can be helpful for the= other developers if they see this generic error.=C2=A0 > DUMP throws IOException but it DESCRIBE's the schema > ---------------------------------------------------- > > Key: PIG-5330 > URL: https://issues.apache.org/jira/browse/PIG-5330 > Project: Pig > Issue Type: Bug > Environment: Hortonworks - hadoop platform. But code is running l= ocal using Junit test method > Reporter: TamilArasu Perumal > Priority: Major > > This started happening recently for some JOINs and ORDER BY clause. Not s= ure anything to do with the java update. Currently running Java 8 (161). He= re is the pig code and log=C2=A0 > memberIds: \{newMemberId: long,memberId: long} > memberTier: \{Name: chararray,MemberId: long,TierId: long,StartDateId: lo= ng,EndDateId: long} > DUMP memberTier; =E2=80=93 works fine > DESCRIBE memberTier; =E2=80=93 works fine=C2=A0 > DUMP memberIds; =E2=80=93 works fine > DESCRIBE memberIds; =E2=80=93 works fine > memberTierOne =3D JOIN memberTier BY (MemberId) LEFT OUTER, memberIds BY= (memberId); > DUMP memberTierOne; =E2=80=93 errors out (if commented, the next line wo= rks) > DESCRIBE memberTierOne; =E2=80=93 (works fine, when DUMP is commented) > Stack Trace=C2=A0 > 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:7= 47) > at org.apache.pig.tools.pigscript.parser.PigScriptParser.parse(PigScript= Parser.java:376) > at org.apache.pig.tools.grunt.GruntParser.parseStopOnError(GruntParser.j= ava: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.M= emberTierFileLoadMemberTierTestRun(MemberTierTest.java:157) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.= java:62) > at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces= sorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:498) > at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(Framework= Method.java:44) > at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCal= lable.java:15) > at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMe= thod.java:41) > at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMet= hod.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(BlockJUnit4ClassRun= ner.java:76) > at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRun= ner.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(JUnit4Id= eaTestRunner.java:68) > at com.intellij.rt.execution.junit.IdeaTestRunner$Repeater.startRunnerWi= thArgs(IdeaTestRunner.java:47) > at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(J= UnitStarter.java:242) > at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:7= 0) > Caused by: java.io.IOException: Job terminated with anomalous status FAI= LED > at org.apache.pig.PigServer.openIterator(PigServer.java:1011) > ... 30 more > =C2=A0 -- This message was sent by Atlassian JIRA (v7.6.3#76005)