hadoop command stop working when used in shell script
<p>I have used <code>-mv</code> (move) command in my shell script. It was running successfully when tested. After some runs it fails which results in script failure.</p>

<p>Why does this happen? I'm not getting answer to it.</p>

<pre><code>hadoop fs -mv /user/abc/"$CURRENT_DATE" /user/xyz/Itr2Run"$run_index"
</code></pre>

<p>using Bourne shell to run script <code>#!/bin/sh.</code></p>