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 in Big Data Hadoop by Esha
37 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 by TIna

Related Questions In Big Data Hadoop

0 votes
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
• 67,660 points
745 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
• 67,660 points
392 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
• 67,660 points
62 views
0 votes
1 answer

How to read multiple files in hdfs?

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

answered Feb 7 in Big Data Hadoop by Omkar
• 67,660 points
473 views
0 votes
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
• 10,710 points
3,343 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
• 10,710 points
399 views
0 votes
10 answers

hadoop fs -put command?

put syntax: put <localSrc> <dest> copy syntax: copyFr ...READ MORE

answered Dec 7, 2018 in Big Data Hadoop by Aditya
16,556 views
0 votes
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,260 points
1,208 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 25 in Big Data Hadoop by Gitika
• 25,340 points
54 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 in Big Data Hadoop by Gitika
• 25,340 points
121 views