Home | About | Sematext search-lucene.com search-hadoop.com
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB
 Search Hadoop and all its subprojects:

Switch to Plain View
Pig >> mail # user >> Fwd: error


Eh sorry

nf0 = foreach gruped generate features.id,features.f0/mf0;

Should be
nf0 = foreach gruped generate data.id,data.f0/mf0;
---------- Forwarded message ----------
From: jamal sasha
Date: Wednesday, December 12, 2012
Subject: error
To: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
mf0 = LOAD 'max.txt’ AS (maxi:double);

data =  LOAD
'/axp/rimimsat/userdata/msing137/hadoop_streaming/final_anomaly_detection/step3/output'
USING PigStorage(',')

                                                AS (id:long, f0:double)

gruped =  group data all;

nf0 = foreach gruped generate features.id,features.f0/mf0;

But I am getting an error in last line?

Invalid scalar projection: mf0 : A column needs to be projected from a
relation for it to be used as a scalar

What am I missing

Thanks
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB