jacobstanley / hadoop-tools

Tools for working with Hadoop, written with performance in mind.
Other
37 stars 15 forks source link

Make the `ls` command compatible with `hdfs dfs -ls` #18

Open prateek opened 8 years ago

prateek commented 8 years ago

Two parts:

Usage: hadoop fs [generic options] -ls [-d] [-h] [-R] [<path> ...]

e.g. -

[~]$ hdfs dfs -ls /user/prungta
Found 3 items
drwx------   - prungta supergroup          0 2016-04-28 17:00 /user/prungta/.Trash
drwxr-xr-x   - prungta supergroup          0 2016-04-29 23:24 /user/prungta/.sparkStaging
drwx------   - prungta supergroup          0 2016-05-03 18:34 /user/prungta/.staging
[~]$ hh ls /user/prungta
Found 3 items
drwx------ - prungta supergroup 0 2016-04-29 00:00 .Trash
drwxr-xr-x - prungta supergroup 0 2016-04-30 06:24 .sparkStaging
drwx------ - prungta supergroup 0 2016-05-04 01:34 .staging

Looks like hh is doing three things differently: