PIG Error while loading file: -bash: syntax error near unexpected token `('

0 votes

I understand this is a syntax error but can not identify where the actual error is.

student = LOAD '/mnt/home/edureka_545667/Desktop/PIG/student.txt' USING PigStorage(',') as (Name:chararray, Id:int);
Jul 31, 2019 in Big Data Hadoop by Sharan
460 views
Can you share the contents of your file?

This is the content of the file

image

1 answer to this question.

0 votes

Since your data is delimited with tabs use the command as such shown below.

student = LOAD '/mnt/home/edureka_545667/Desktop/PIG/student.txt' USING PigStorage('\t') as (Name:chararray, Id:int); 
answered Jul 31, 2019 by Ritu

Related Questions In Big Data Hadoop

0 votes
1 answer

getting error: -bash: syntax error near unexpected token `('

hi, you should give space between PigStorage and ...READ MORE

answered May 9 in Big Data Hadoop by anonymous
• 140 points
101 views
0 votes
1 answer

Getting some warning/error while loading java file using Hbase commands

In your code, you have set some ...READ MORE

answered Dec 14, 2018 in Big Data Hadoop by Omkar
• 69,040 points
114 views
0 votes
1 answer

Error while copying the file from local to HDFS

Well, the reason you are getting such ...READ MORE

answered May 2, 2018 in Big Data Hadoop by Ashish
• 2,630 points
1,102 views
+3 votes
1 answer

Getting Connection Error while loading data into table using cloudera hive

Hey Nafeesa, Itseems that Hive is not able ...READ MORE

answered Oct 3, 2018 in Big Data Hadoop by Vardhan
• 13,180 points
132 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
• 10,920 points
5,039 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,920 points
717 views
+1 vote
11 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
29,634 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,310 points
1,880 views
+4 votes
3 answers

Unable to find file error- while Streaming Hadoop

Is python installed running on the slaves that ...READ MORE

answered Oct 16, 2018 in Big Data Hadoop by Vinith
652 views
0 votes
1 answer

Error while accessing the file outformat method SetOutputpath

You have imported org.apache.hadoop.mapred.FileOutputFormat, ​​you need to import org.apache.hadoop.mapreduce.lib.output.FileOutputFormat So, make ...READ MORE

answered Feb 21, 2019 in Big Data Hadoop by Omkar
• 69,040 points
79 views