From 8fff459619fd55490e8aebe2fe3b0ebb8cf5b66d Mon Sep 17 00:00:00 2001 From: StarLord993 Date: Sun, 26 Mar 2017 15:12:44 +0530 Subject: [PATCH] Updated sqoop_demo.txt Added the " --driver com.mysql.jdbc.Driver " to some of the sqoop codes as they don't work without them in hdp sandbox. Thanks and Regards, --- hadoop/edw/hdp/sqoop/sqoop_demo.txt | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/hadoop/edw/hdp/sqoop/sqoop_demo.txt b/hadoop/edw/hdp/sqoop/sqoop_demo.txt index 0ddacbc..35b6200 100644 --- a/hadoop/edw/hdp/sqoop/sqoop_demo.txt +++ b/hadoop/edw/hdp/sqoop/sqoop_demo.txt @@ -14,7 +14,8 @@ sqoop import \ --password=itversity \ --table departments \ --as-textfile \ - --target-dir=/user/root/departments + --target-dir=/user/root/departments \ + --driver com.mysql.jdbc.Driver sqoop eval \ --connect "jdbc:mysql://sandbox.hortonworks.com:3306/retail_db" \ @@ -37,7 +38,8 @@ sqoop import-all-tables \ --username=retail_dba \ --password=hadoop \ --as-avrodatafile \ - --warehouse-dir=/apps/hive/warehouse/retail_stage.db + --warehouse-dir=/apps/hive/warehouse/retail_stage.db \ + --driver com.mysql.jdbc.Driver --Default sqoop import \ @@ -62,7 +64,8 @@ sqoop import \ --password=hadoop \ --table departments \ --as-avrodatafile \ - --target-dir=/user/root/departments + --target-dir=/user/root/departments \ + --driver com.mysql.jdbc.Driver -- A file with extension avsc will be created under the directory from which sqoop import is executed -- Copy avsc file to HDFS location