Home | About | Sematext search-lucene.com search-hadoop.com
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB
 Search Hadoop and all its subprojects:

Switch to Threaded View
Hadoop >> mail # user >> FileSystem iterative or limited alternative to listStatus()


Copy link to this message
-
FileSystem iterative or limited alternative to listStatus()
Is there an HDFS file system method for listing a directory contents iteratively, or at least stopping at some limit?  We have an application in which the user can type wildcards, which our app expands.  However, during interactive phases we only want the first matching file to check its format.  There may be folders with many 1000s of files...
Thanks
John

NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB