java.lang.String cannot be cast to java.lang.Integer

2014-05-30 Thread Patcharee Thongtra
Hi, I got very strange exception. 80693 [main] ERROR org.apache.pig.tools.grunt.Grunt - ERROR 1066: Unable to open iterator for alias ordered. Backend error : java.lang.String cannot be cast to java.lang.Integer 14/05/30 11:53:22 ERROR grunt.Grunt: ERROR 1066: Unable to open iterator for

Re: java.lang.String cannot be cast to java.lang.Integer

2014-05-30 Thread Piotr Dendek
Hi, Handle null values, check if the content of column z is definitely integer values, ensure that no whitecharacters are included (e.g. 11 ). Ultimately, you can read the z column as chararray and process it with udf. This will give you chance to log the faulty record. Tell if any of this

Re: java.lang.String cannot be cast to java.lang.Integer

2014-05-30 Thread Patcharee Thongtra
Hi, column z is integer and not null, so I do not understand why I got cast exception. Patcharee On 05/30/2014 01:23 PM, Piotr Dendek wrote: Hi, Handle null values, check if the content of column z is definitely integer values, ensure that no whitecharacters are included (e.g. 11 ).

Issue when building Pig

2014-05-30 Thread Botelho, Andrew
Hi all, I am trying to build and install Pig 0.12.1. I downloaded the tar file and unpackaged it. Now I am trying to build Pig so that it can work with the version of Hadoop that I am using - version 2.4.0. In order to do this, I enter the command: ant clean jar-all -Dhadoopversion=23

Re: Issue when building Pig

2014-05-30 Thread Cheolsoo Park
I've seen this before, and I believe it's some env issue because I can't reproduce it on my laptop while my colleague can on his laptop. If you look at ivy.xml, ivy shouldn't download jetty-6.1.26.zip at all. I couldn't figure out why this happens in certain environments. On Fri, May 30, 2014

Re:java.lang.String cannot be cast to java.lang.Integer

2014-05-30 Thread James
How about using the explicit cast like ordered = ORDER query BY (int)z; Alcaid -- Original -- From: Patcharee Thongtra;patcharee.thong...@uni.no; Date: Fri, May 30, 2014 06:02 PM To: useruser@pig.apache.org; Subject: java.lang.String cannot be cast to