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, 2019 in Big Data Hadoop by Janan
218 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, 2019 by Omkar
• 69,000 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
• 69,000 points
250 views
0 votes
1 answer

Not able to upload files to hdfs: No such file or directory

The reason for this error is that ...READ MORE

answered Jul 11, 2019 in Big Data Hadoop by Srujan
131 views
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, 2019 in Big Data Hadoop by Esha
69 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
710 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
411 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,870 points
4,529 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,870 points
641 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
25,549 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
• 69,000 points
1,353 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
• 69,000 points
714 views