Not able to delete file using pig

0 votes

I am trying to delete a file using pig using this command:

rmf /hduser/Pro-data/jan19.csv

But I am getting this error:

org.apache.pig.impl.logicalLayer.FrontendException: ERROR 1000: Error during parsing. Syntax error, unexpected symbol at or near 'rmf'
Feb 3 in Big Data Hadoop by Janan
55 views

1 answer to this question.

0 votes

rmf is a hadoop file system command and you are trying to use it in pig. Pig does not support hadoop commands. To delete file using pig, you can use the following command:

delete.File(/path/to/file)
answered Feb 3 by Omkar
• 67,290 points

Related Questions In Big Data Hadoop

0 votes
1 answer

Not able to install hadoop using maven

First make sure you have ant installed ...READ MORE

answered Dec 6, 2018 in Big Data Hadoop by Omkar
• 67,290 points
73 views
0 votes
1 answer
0 votes
1 answer

Not Able to read the file from hdfs location

You have to mention the hdfs path, ...READ MORE

answered Jul 23 in Big Data Hadoop by Esha
14 views
0 votes
1 answer

Not able to start Job History Server in Hadoop 2.8.1

You have to start JobHistoryServer process specifically ...READ MORE

answered Mar 29, 2018 in Big Data Hadoop by Ashish
• 2,630 points
369 views
0 votes
1 answer

What do we exactly mean by “Hadoop” – the definition of Hadoop?

The official definition of Apache Hadoop given ...READ MORE

answered Mar 16, 2018 in Big Data Hadoop by Shubham
173 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,510 points
2,392 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,510 points
244 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
12,191 views
0 votes
1 answer

How to delete a file from Hadoop hdfs using java?

Try this: FileSystem fs = FileSystem.get(getConf()); fs.delete(new ...READ MORE

answered Nov 28, 2018 in Big Data Hadoop by Omkar
• 67,290 points
360 views
0 votes
1 answer

Not able to create Hive table from HDFS file

You dont have to specify the file name ...READ MORE

answered Dec 5, 2018 in Big Data Hadoop by Omkar
• 67,290 points
183 views