Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Not A Problem
-
None
-
None
-
None
Description
1. Created link with following connection string: jdbc:mysql://kafkaf-1:3306/hive1
2. Created job with this connector as "from" and schema = cm, table = hosts
3. Running job failed with error:
com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table 'hive1.HOSTS' doesn't exist
....
at org.apache.sqoop.connector.jdbc.GenericJdbcExecutor.getPrimaryKey(GenericJdbcExecutor.java:208)
4. Created new link, this time with connection string:
jdbc:mysql://kafkaf-1:3306
5. Created job with same configs but new connector
6. Got following error:
com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Incorrect database name ''
...
at org.apache.sqoop.connector.jdbc.GenericJdbcExecutor.getPrimaryKey(GenericJdbcExecutor.java:208)
It looks like the "schema name" config is completely useless.