I have .sh file. which is working in linux. I want to execute that file in hadoop environment.
can anyone porvide me some knowledge?
There are 3 ways.
1. hadoop fs -cat /tmp/test.sh|exec sh
2. You can install HDP NFS and mount the hdfs directory on local file system from where you can execute your script.
3. You can write an oozie shell workflow and call your .sh HDFS file inside the workflow.
Should I execute this command in Sandbox terminal? yes
Where should I upload file test.sh? /tmp folder
how I will copy test.sh from local machine?
hadoop fs -copyFromLocal <local path of test.sh file> /tmp/