title: Running Hadoop commands in a shell script
body: <p>I have a simple shell script that I'd like to use to move log files into my Hadoop cluster.</p>
  
  <p>When I invoke the the shell script in my Java program, the script can not be found "Hadoop Commands", and I do not take any action.</p>
  
  <p>For instance, I would like to run the following command:</p>
  
  <pre><code>#!/bin/bash
  hadoop fs -put /home/can/workspace2/myWebApp/tweets.txt /user/training/tweetFolder
  </code></pre>
  
  <p>How can I solve this in a simple manner?</p>