title: Running Simple Hadoop Command using Java code
body: <p>I would like to list files using hadoop command. "hadoop  fs -ls filepath". I want to write a Java code to achieve this. Can I write a small piece of java code, make a jar of it and supply it to Map reduce job(Amazon EMR) to achieve this ? Can you please point me to the code and steps using which I can achieve this ?</p>