hfind
A file listing utility for HDFS filesystems similar to unix find(1).
Requires jruby 1.6+.
# installation
jgem install –no-wrapper hadoop-find
Or simply copy hfind.rb and hfind into your path.
# usage
usage: hfind [options] path
-a, --after # files modified after ISO date
-b, --before # files modified before ISO date
-m, --mmin # files modified before (-x) or after (+x) minutes ago
-M, --mtime # files modified before (-x) or after (+x) days ago
-s, --size # file size > (+x), < (-x), or == (x)
-u, --user # files owned by a particular username
-g, --group # files owned by a particular group
-r, --repl # replication factor > (+x), < (-x), or == (x)
-n, --name # show paths matching a regular expression
-U, --under # show under-replicated files
-t, --type # show type (f)ile or (d)irectory
-l, --ls # show full listing detail
-h, --human # show human readable file sizes
-D, --no-hidden # do not show hidden files
-i, --uri # show full uri for path
-v, --version
-H, --help
Please let me know if you find this software useful!
–frank