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 5 in Big Data Hadoop by Anjali
• 120 points
546 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 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
606 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,450 points
858 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,450 points
694 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,950 points
5,882 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,950 points
884 views
+1 vote
11 answers

hadoop fs -put command?

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

answered Dec 7, 2018 in Big Data Hadoop by Aditya
37,110 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,320 points
2,198 views