HDFS - Directory

> Database > (Apache) Hadoop > Hadoop Distributed File System (HDFS)

1 - About

3 - Management

With the doc

3.1 - list

hadoop fs -ls /
# For a recursive 
# hadoop fs -lsr /
Found 15 items
drwxr-xr-x   - root   supergroup          0 2018-01-25 13:59 /HdiSamples
drwxr-xr-x   - hdfs   supergroup          0 2018-01-25 13:46 /ams
drwxr-xr-x   - hdfs   supergroup          0 2018-01-25 13:46 /amshbase
drwxrwxrwx   - yarn   hadoop              0 2018-01-25 13:46 /app-logs
drwxr-xr-x   - hdfs   supergroup          0 2018-01-25 13:46 /apps
drwxr-xr-x   - yarn   hadoop              0 2018-01-25 13:46 /atshistory
drwxr-xr-x   - root   supergroup          0 2018-01-25 13:59 /custom-scriptaction-logs
drwxr-xr-x   - root   supergroup          0 2018-01-25 13:59 /example
drwxr-xr-x   - hbase  supergroup          0 2018-01-25 13:46 /hbase
drwxr-xr-x   - hdfs   supergroup          0 2018-01-25 13:46 /hdp
drwxr-xr-x   - hdfs   supergroup          0 2018-01-25 13:46 /hive
drwxr-xr-x   - mapred supergroup          0 2018-01-25 13:46 /mapred
drwxrwxrwx   - mapred hadoop              0 2018-01-25 13:46 /mr-history
drwxrwxrwx   - hdfs   supergroup          0 2018-01-25 13:46 /tmp
drwxr-xr-x   - hdfs   supergroup          0 2018-01-25 13:46 /user
Advertising

3.2 - create

hadoop fs -mkdir /myNewDir