Hi All
This is my first post in this Group
Am in a POC which gets table value from a Oracle table using sqoop and import it to hive table, there i need to ran few queries and save the output as CSV file.
I had done all the things in command like sqoop import,hive query etc.,
now i need to automate this kindly guide me to achieve this
1. Can i pack all them as Shell Script and automate it using cron job
2. Take all concept from what i have achieved and try to implement using java
If i use shell script will it be that efficiant
These are the import commands i have used
1. sqoop import -m 1 --connect jdbc:oracle:thin:@<ipaddress>:1521/<DB> --username username --password password --table <tablename> --columns column1 ,column2,column3,column4,column5,column6,column7 --hive-import --hive-overwrite --hive-table default.oracreport --lines-terminated-by '\n' --fields-terminated-by ',' --target-dir /user/hdfs/
2. hive -S -e " Hive query"