Created
December 29, 2014 09:43
-
-
Save erasmas/b8002b78b2dd51e183ed to your computer and use it in GitHub Desktop.
List all files in HDFS given a glob pattern
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(let [fs (FileSystem/getLocal (Configuration.)) | |
path (Path. "/data/in/*.txt.gz")] | |
(map #(.getPath %) (.globStatus fs path))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment