I need to import data from RDBMS table into remote Hive machine. How can i achieve this using Sqoop ?
In nut shell, How to specify hive database name and the hive machine i/p in the import command?
Please help me with appropriate sqoop command.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You should run the
sqoopcommand on the machine where you have Hive installed, becausesqoopwill look for$HIVE_HOME/bin/hiveto execute theCREATE TABLE ...and other statements.Alternatively, you could use
sqoopwith the--hive-homecommand line option to specify where your Hive is installed (just overrides$HIVE_HOME)To connect to your remote RDBMS:
To import into Hive:
You can get a more comprehensive list of commands by looking at http://archive.cloudera.com/cdh/3/sqoop/SqoopUserGuide.html#_literal_sqoop_import_literal“>this link.