Hadoop ERROR1070 Could not resolve count using imports java lang org apache pig builtin org apache pig impl builtin

0 votes

While executing PIG statement from GRUNT: 

grunt> cnt = foreach grpd generate group, count(words) as nos; 

Failed to generate logical plan. Nested exception: org.apache.pig.backend.executionengine.ExecException. Its giving me the above error. Can anyone tell how to resolve this?

Aug 7, 2019 in Big Data Hadoop by Nikitha
892 views

1 answer to this question.

0 votes

Hi,

I can see the error arose because the count in pig statement should be upper case COUNT. You can change the statement with the below:

grunt> cnt = foreach grpd generate group, COUNT(words) as nos;

Hope it will remove your error.

answered Aug 7, 2019 by Gitika
• 65,950 points

Related Questions In Big Data Hadoop

0 votes
1 answer

Hadoop Pig: java.lang.NoClassDefFoundError: org/apache/hadoop/hbase/filter/Filter

This seems like a problem with the ...READ MORE

answered Nov 16, 2018 in Big Data Hadoop by Omkar
• 69,150 points
934 views
0 votes
1 answer

Hadoop: Error: Could not find or load main class org.apache.hadoop.util.VersionInfo

This seems like a path issue. Add the ...READ MORE

answered Nov 16, 2018 in Big Data Hadoop by Omkar
• 69,150 points
8,955 views
0 votes
1 answer

Hadoop Apache: Could not fully initialize service [org.apache.oozie.service.ShareLibService]

As mentioned in the error, the problem ...READ MORE

answered Nov 19, 2018 in Big Data Hadoop by Omkar
• 69,150 points
389 views
0 votes
1 answer

Hadoop Java: org.apache.hadoop.conf.Configuration does not exist error

To solve this error, add hadoop-common to ...READ MORE

answered Nov 20, 2018 in Big Data Hadoop by Omkar
• 69,150 points
3,972 views
0 votes
1 answer

What do we exactly mean by “Hadoop” – the definition of Hadoop?

The official definition of Apache Hadoop given ...READ MORE

answered Mar 16, 2018 in Big Data Hadoop by Shubham
1,076 views
+1 vote
1 answer

Hadoop Mapreduce word count Program

Firstly you need to understand the concept ...READ MORE

answered Mar 16, 2018 in Data Analytics by nitinrawat895
• 11,380 points
7,802 views
0 votes
1 answer

hadoop.mapred vs hadoop.mapreduce?

org.apache.hadoop.mapred is the Old API  org.apache.hadoop.mapreduce is the ...READ MORE

answered Mar 16, 2018 in Data Analytics by nitinrawat895
• 11,380 points
1,296 views
+2 votes
11 answers

hadoop fs -put command?

Hi, You can create one directory in HDFS ...READ MORE

answered Mar 16, 2018 in Big Data Hadoop by nitinrawat895
• 11,380 points
60,755 views
0 votes
2 answers