First, you need a working instance of Hadoop. Download releases at Hadoop downloads. Unpack the release and connect to its top-level directory. Edit the file conf/hadoop-env.sh to define at least JAVA_HOME. Try the following command:
bin/hadoopThis will display the documentation for the Hadoop command script.
TODO