Replies: 1
Hi,
Using HDP 2.1.2 I have created a snapshot by:
hdfs dfsadmin -allowSnapshot /user/myTestDir1
hdfs dfs -createSnapshot /user/myTestDir1
Console Output: Created snapshot /user/myTestDir1/.snapshot/s20140704-101231.886
Let’s say I forgot later that /user/myTestDir1 contains snapshots. I would like to list the entire content of that path, including hidden files or folders, by using:
hdfs dfs -ls /user/myTestDir1
But the hidden directory .snapshot is not visible. To see it’s content I must explicitly specify the path of the hidden directory
hdfs dfs -ls /user/myTestDir1/.snapshot/
QUESTION: Can you please suggest a way to list hidden file / directory in HDFS?
Thanks in advance for any help