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,345 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,770 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,605 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,042 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,319 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,015 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,527 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
108,739 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,605 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
740 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,438 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