I'm new to Hadoop and Java, for that matter. I am trying to count the number of files in an HDFS folder from the MapReduce driver that I am writing. I would like to do this without invoking the HDFS Shell, since I want to be able to transfer to the directory that I use when I start MapReduce. I tried a number of methods, but was unsuccessful in implementation due to my inexperience with Java.
Any help would be greatly appreciated.
Thank,
Nomad.
Nomad source
share