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
851 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, 2020 in Big Data Hadoop by anonymous
• 140 points
1,354 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,130 points
203 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,650 points
2,105 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,200 points
268 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,214 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,170 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
52,814 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,390 points
2,728 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
1,411 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,130 points
166 views