title: Pass parameters to shell script stored in HDFS
body: <p>I want to execute a shell script stored in HDFS with an option of passing parameters to the script. I've verified the following works</p>
  
  <p><code>hadoop fs -cat hdfs://path_to_script/sample.sh | exec bash</code></p>
  
  <p>I want to make the following work </p>
  
  <p><code>hadoop fs -cat hdfs://path_to_script/sample.sh param1 param2 param3 param4 | exec bash</code></p>
  
  <p>The issue is that the cat command expects files to be streamed to stdout but the parameters are folders and files stored in HDFS. Any other way of making it work ? </p>