title: How to run Hadoop HDFS command from java code
body: <p>I'm new in Hadoop! How can I run some hdfs commands from Java code? I've been testing successfully mapreduce with java code and hdfs commands directly from cloudera vm's terminal but now I'd like to learn how to do it with java code.
  I've been looking for any materials where to learn but I haven't found yet.
  Thanks</p>