Hi,

Iam trying to do sqoop create-hive-table for one db which have 600 tables, 
sequentially.
But only first table of that db, schema is created in hive, other tables 
schemas are not being created in hive. and no error message showing where iam 
going wrong.


below java code i'm using to do that




 
for (int i=0;i<tables.size();i++){
      String[] str = {"create-hive-table", "--connect", jdbc:mysql://myip:port, 
"--table", tableName,
                    "--hive-table", db+"."+tableName, "--fields-terminated-by", 
",",
                    "--username", "username", "--password", "password"};
      Sqoop.runTool(str);

}
Please tell me where iam going wrong




Thanks





Reply via email to