I have created one directory in HDFS. Now I want to remove the directory from the cluster. How can I do that?
You can remove the directory using the Hadoop file system command. The below command will remove the directory from the Hadoop Cluster.
$ hadoop fs -rmdir <path>
Just use the FileSystem's copyFromLocalFile method. If the source Path ...READ MORE
First, need to create a directory in Hadoop:
$ ...READ MORE
Read operation on HDFS
In order to read ...READ MORE
There are two possible ways to copy ...READ MORE
You can use dfsadmin which runs a ...READ MORE
hdfs dfsadmin -report
This command tells fs ...READ MORE
Firstly you need to understand the concept ...READ MORE
org.apache.hadoop.mapred is the Old API
org.apache.hadoop.mapreduce is the ...READ MORE
You will find rm command in your ...READ MORE
You can copy a directory from one ...READ MORE
At least 1 upper-case and 1 lower-case letter
Minimum 8 characters and Maximum 50 characters
Already have an account? Sign in.