t*u
2 楼
data3 = FOREACH data2 GENERATE group, SUM(data1.cpc) as cost:int;
data4 = ORDER data3 BY cost ASC;
如果
DESCRIBE data4;
不会报错
但是换成 DUMP data4;
就报错
2014-06-11 17:22:26,525 ERROR org.apache.pig.tools.pigstats.SimplePigStats:
ERROR: java.lang.RuntimeException: java.lang.ClassCastException: java.lang.L
ong cannot be cast to java.lang.Integer
2014-06-11 17:22:26,525 ERROR org.apache.pig.tools.pigstats.PigStatsUtil: 1
map reduce job(s) failed!
2014-06-11 17:22:26,573 ERROR org.apache.pig.tools.grunt.Grunt: ERROR 1066:
Unable to open iterator for alias data4. Backend error : java.lang.RuntimeEx
ception: java.lang.ClassCastException: java.lang.Long cannot be cast to java
.lang.Integer
data4: {group: chararray,cost: int}
里面没有出现需要long的地方啊
data4 = ORDER data3 BY cost ASC;
如果
DESCRIBE data4;
不会报错
但是换成 DUMP data4;
就报错
2014-06-11 17:22:26,525 ERROR org.apache.pig.tools.pigstats.SimplePigStats:
ERROR: java.lang.RuntimeException: java.lang.ClassCastException: java.lang.L
ong cannot be cast to java.lang.Integer
2014-06-11 17:22:26,525 ERROR org.apache.pig.tools.pigstats.PigStatsUtil: 1
map reduce job(s) failed!
2014-06-11 17:22:26,573 ERROR org.apache.pig.tools.grunt.Grunt: ERROR 1066:
Unable to open iterator for alias data4. Backend error : java.lang.RuntimeEx
ception: java.lang.ClassCastException: java.lang.Long cannot be cast to java
.lang.Integer
data4: {group: chararray,cost: int}
里面没有出现需要long的地方啊
k*o
3 楼
Before doing DUMP data4, mapreduce is not actually running.. "Describe"
works without mapreduce runs..
check the table for pig SUM :
http://pig.apache.org/docs/r0.7.0/piglatin_ref2.html#SUM:
SUM returns long when input is int, but you assign it to cost: int..
This is where the runtime error comes from, I believe. change to "cost: long
", or simply "cost" without type specification..
.L
【在 t*********u 的大作中提到】
: data3 = FOREACH data2 GENERATE group, SUM(data1.cpc) as cost:int;
: data4 = ORDER data3 BY cost ASC;
: 如果
: DESCRIBE data4;
: 不会报错
: 但是换成 DUMP data4;
: 就报错
: 2014-06-11 17:22:26,525 ERROR org.apache.pig.tools.pigstats.SimplePigStats:
: ERROR: java.lang.RuntimeException: java.lang.ClassCastException: java.lang.L
: ong cannot be cast to java.lang.Integer
works without mapreduce runs..
check the table for pig SUM :
http://pig.apache.org/docs/r0.7.0/piglatin_ref2.html#SUM:
SUM returns long when input is int, but you assign it to cost: int..
This is where the runtime error comes from, I believe. change to "cost: long
", or simply "cost" without type specification..
.L
【在 t*********u 的大作中提到】
: data3 = FOREACH data2 GENERATE group, SUM(data1.cpc) as cost:int;
: data4 = ORDER data3 BY cost ASC;
: 如果
: DESCRIBE data4;
: 不会报错
: 但是换成 DUMP data4;
: 就报错
: 2014-06-11 17:22:26,525 ERROR org.apache.pig.tools.pigstats.SimplePigStats:
: ERROR: java.lang.RuntimeException: java.lang.ClassCastException: java.lang.L
: ong cannot be cast to java.lang.Integer
t*u
4 楼
got it
thanks
long
【在 k****o 的大作中提到】
: Before doing DUMP data4, mapreduce is not actually running.. "Describe"
: works without mapreduce runs..
: check the table for pig SUM :
: http://pig.apache.org/docs/r0.7.0/piglatin_ref2.html#SUM:
: SUM returns long when input is int, but you assign it to cost: int..
: This is where the runtime error comes from, I believe. change to "cost: long
: ", or simply "cost" without type specification..
:
: .L
thanks
long
【在 k****o 的大作中提到】
: Before doing DUMP data4, mapreduce is not actually running.. "Describe"
: works without mapreduce runs..
: check the table for pig SUM :
: http://pig.apache.org/docs/r0.7.0/piglatin_ref2.html#SUM:
: SUM returns long when input is int, but you assign it to cost: int..
: This is where the runtime error comes from, I believe. change to "cost: long
: ", or simply "cost" without type specification..
:
: .L
t*u
5 楼
你的意思是 pig
相当于先编译成java
然后在执行?
long
【在 k****o 的大作中提到】
: Before doing DUMP data4, mapreduce is not actually running.. "Describe"
: works without mapreduce runs..
: check the table for pig SUM :
: http://pig.apache.org/docs/r0.7.0/piglatin_ref2.html#SUM:
: SUM returns long when input is int, but you assign it to cost: int..
: This is where the runtime error comes from, I believe. change to "cost: long
: ", or simply "cost" without type specification..
:
: .L
相当于先编译成java
然后在执行?
long
【在 k****o 的大作中提到】
: Before doing DUMP data4, mapreduce is not actually running.. "Describe"
: works without mapreduce runs..
: check the table for pig SUM :
: http://pig.apache.org/docs/r0.7.0/piglatin_ref2.html#SUM:
: SUM returns long when input is int, but you assign it to cost: int..
: This is where the runtime error comes from, I believe. change to "cost: long
: ", or simply "cost" without type specification..
:
: .L
相关阅读
Instagram is hiring data scientist找工作屡败屡战,求提携,求建议转: Twitter 各种职位内推!!!大量新职位海量数据,”大数据”,高频数据及其它---从“Big Data"说开去Neural Network面试的时候会怎么问啊?数据清理和数据质量控制---大数据时代的挑战之三想请问以下F家DS的面经可以么?DS在San diego 好找工作不?终于要转数据库啦Reporting AnalystDS in my understanding请问谁有关于AB test的一些教程。。。请教大家几个职位:data analyst,data analytics, data scientist转发 :LinkedIn最近狂招d engineers/data scientists/...有人面过kwanteraquestion about using Hive parameterHadoop Spark 学习小结[2014版] (转载)要不要继续当ds?A position of Marketing Analyst蟒蛇真是方便啊 (转载)