Options
- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Solved
Go to solution
Show hidden files in HDFS
Labels:
- Labels:
-
Apache Hadoop
Contributor
Created 09-28-2017 11:22 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Is there a special command to list hidden files (files that start with a dot) in a given path in HDFS?
1 ACCEPTED SOLUTION
Contributor
Created 09-29-2017 08:32 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
hdfs dfs -ls /user/hdfs
The above can direct show hidden files, you can directly see the below, for example
drwx------ - hdfs hdfs 0 2017-07-13 02:00 /user/hdfs/.Trash drwxr-xr-x - hdfs hdfs 0 2017-04-06 14:21 /user/hdfs/.hiveJars drwxr-xr-x - hdfs hdfs 0 2017-06-29 09:12 /user/hdfs/.sparkStaging drwxr-xr-x - hdfs hdfs 0 2017-04-24 15:54 /user/hdfs/SSP00805
where you can see the file start with a dot.
1 REPLY 1
Contributor
Created 09-29-2017 08:32 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
hdfs dfs -ls /user/hdfs
The above can direct show hidden files, you can directly see the below, for example
drwx------ - hdfs hdfs 0 2017-07-13 02:00 /user/hdfs/.Trash drwxr-xr-x - hdfs hdfs 0 2017-04-06 14:21 /user/hdfs/.hiveJars drwxr-xr-x - hdfs hdfs 0 2017-06-29 09:12 /user/hdfs/.sparkStaging drwxr-xr-x - hdfs hdfs 0 2017-04-24 15:54 /user/hdfs/SSP00805
where you can see the file start with a dot.
