I have implemented a task in Hive.
But now I need to call a Shell Script which I have written for importing the tables in Hive from SQL Server using SQOOP. In that Shell Script I have written a SQOOP Command for importing the tables in HIve.
I tried to call a Shell Script in one of the Demo Application but as the Program runs no action taken place. I just see the blank console.
Do I need to do something extra in case of Hive?
Please help me out from this.
Thanks.
Try to run
/bin/sh /home/....TableToExport.sh.This explicitly defines the shell that interprets your script. This should work.
If it does not work try to simplify your command line. Start from running simple command like
lsorhostname. When it works try to execute something more complicated.Generally it should work. You are on the right way.