Member since
03-17-2019
2
Posts
0
Kudos Received
0
Solutions
06-25-2019
04:52 PM
Hi All, I am using cloudera hadoop cluster and accidentally deleted few important folders/files from one of the location in cloudera local location. By any chance can I retrieve them ? I tried "recover" command but it is not available Please note this is regarding recovery of deleted files from Cloudera cluster local unix / linux location. Not from HDFS location Thanks
... View more
Labels:
- Labels:
-
Apache Hadoop
-
HDFS
03-17-2019
05:20 PM
I have tried to list the hadoop directories in human readable format using the below command and it worked well : hadoop fs -du -s -h <path_to_hadoop_folder> Now I am trying to sort this output based on size descending or ascending but not able to do so "-S" option sorts based on file size but it is not compatible with -du filesystem command. It works only with -ls And I used the below command. It sorts based on file size but it is listing all the subdirectories as well. hadoop fs -ls -S -h <path_to_hadoop_folder> But what I want is to list the folders' size and sort them based on its size. It should not go into the folder and list all the sub-directories or files.
... View more
Labels:
- Labels:
-
HDFS