Can t seem to read files Invalid container ID

0 votes

I ran my hadoop fs command at the command line. the file shows up when I open Hue. I am getting errors when using the PIG editor in HUE.

hadoop fs -copyFromLocal patent2PIG 
/user/edureka_558472/DALLAS_PIG/patent2.data

PIG EDITOR

patcnt = LOAD "/user/edureka_558472/DALLAS_PIG/patent2.data" USING PigStorage() AS (pat:chararray,subpat:chararray);

desc patcnt;

Invalid container ID: edureka_558472
Aug 2, 2019 in Big Data Hadoop by Esha
1,374 views

1 answer to this question.

0 votes

You will have to start pig first and then run these commands:

pig -x mapreduce

hadoop fs -copyFromLocal patent2PIG  /user/edureka_558472

patcnt = LOAD "patent2PIG " USING PigStorage(",") AS (pat:chararray,subpat:chararray);

// Mention some delimiter inside the PigStorage() function in this

//Also keep a habit of using proper folder names as patent2.data seems like an file name with its format as .data.
answered Aug 2, 2019 by TIna

Related Questions In Big Data Hadoop

+1 vote
1 answer

How to read HDFS and local files with the same code in Java?

You can try something like this: ​ ...READ MORE

answered Nov 22, 2018 in Big Data Hadoop by Omkar
• 69,220 points
4,792 views
0 votes
1 answer

How to read more than one files in Apache Spark?

Try this: val text = sc.wholeTextFiles("student/*") text.collect() ...READ MORE

answered Dec 11, 2018 in Big Data Hadoop by Omkar
• 69,220 points
2,625 views
–1 vote
1 answer

Can't seem to make hdfs commands to work

Check the ip address mentioned in core-site.xml ...READ MORE

answered Dec 21, 2018 in Big Data Hadoop by Omkar
• 69,220 points
1,083 views
0 votes
1 answer

How to read multiple files in hdfs?

If you want to read files with ...READ MORE

answered Feb 7, 2019 in Big Data Hadoop by Omkar
• 69,220 points
4,364 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
11,077 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
2,574 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
109,071 views
–1 vote
1 answer

Hadoop dfs -ls command?

In your case there is no difference ...READ MORE

answered Mar 16, 2018 in Big Data Hadoop by kurt_cobain
• 9,350 points
4,642 views
0 votes
1 answer

What are the extra files we need to run when we run a Hive action in Oozie?

Hi, Below are the extra files that need ...READ MORE

answered Jun 26, 2019 in Big Data Hadoop by Gitika
• 65,770 points
772 views
0 votes
1 answer

How to load data from flat files into Hive?

Hey, You can load data from flat files ...READ MORE

answered Jun 26, 2019 in Big Data Hadoop by Gitika
• 65,770 points
3,465 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP