getting error -bash syntax error near unexpected token

0 votes
hi,

I am getting above error again and again while I am executing the below command.

A = load 'Anjali/data.txt' using PigStorage(',') as (fname: chararray, sname: chararray, phone: float, loc: chararrya, prof: chararry);
May 6, 2020 in Big Data Hadoop by Anjali
• 120 points
3,231 views
Hey, @Anjali,

Are you using this./a.out to run your code? You are supposed to run ./a.out which is the executable output of your compiler.
Hi@Angeli,

Can you tell from where you are trying to load your code, from HDFS or local system?

1 answer to this question.

0 votes
hi,

you should give space between PigStorage and these parenthesis (',') like PigStorage (',') and then try to execute.
answered May 9, 2020 by anonymous
• 140 points

Related Questions In Big Data Hadoop

0 votes
1 answer

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

Since your data is delimited with tabs ...READ MORE

answered Jul 31, 2019 in Big Data Hadoop by Ritu
2,054 views
+1 vote
1 answer
0 votes
1 answer
0 votes
1 answer

Getting error in command hdfs dfs -mkdir

You are getting this error because the ...READ MORE

answered Apr 15, 2018 in Big Data Hadoop by Shubham
• 13,490 points
3,266 views
0 votes
1 answer

Getting error in MapReduce job.setInputFormatClass

In old Hadoop API(i.e. below Hadoop 0.20.0), ...READ MORE

answered Apr 15, 2018 in Big Data Hadoop by Shubham
• 13,490 points
2,072 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,033 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,540 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,854 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,616 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