Need suggestion for shell script for sqoop
I am new to hortonworks . I have created a shell script with the Sqoop import command . I want to execute the .sh script to run the sqoop import command .
I have tried the following :
1. I have uploaded the .sh script in a folder /home/scripts/sqoop_test.sh
2. The permission : -rwxr-xr-x 1 root root 215 Jun 25 18:44 sqoop_test.sh
3. Then I tried to run the file : ./sqoop_test.sh
4. I am getting the error : Permission denied: user=root, access=WRITE, inode="/user":hdfs:hdfs:drwxr-xr-x
My query is :
1. Do I need to upload the .sh script in a folder within HDFS
2. How do I setup the permission for the script so that it runs successfully
3. How to execute .sh file from within hdfs so that I do not get the permission denied error
Thanks

