Sample Header Ad - 728x90

Passing inline arguments to shell script being executed on HDFS

1 vote
2 answers
2832 views
I am running a shell script stored on HDFS (so that it can be recognized by my oozie workflow). to run this script I am using hadoop fs -cat script.sh |exec sh However I need to pass inline arguments to the script. On the CLI I would simply do this with ./script.sh arg1 Then echo the varaiable with $1. I am trying to figure out how I would do the same with a script stored in HDFS
Asked by user2211504 (11 rep)
Jul 6, 2017, 04:47 PM
Last activity: May 24, 2025, 04:03 AM