Mariano Dominguez created SQOOP-2344:
----------------------------------------
Summary: Sqoop codegen does not support the -- argument
Key: SQOOP-2344
URL: https://issues.apache.org/jira/browse/SQOOP-2344
Project: Sqoop
Issue Type: Bug
Components: codegen
Affects Versions: 1.4.5
Reporter: Mariano Dominguez
This limitation makes the codegen command incompatible with the use of "--
--schema <schema>" in PostgreSQL or Microsoft SQL Server.
$ sqoop codegen --connect jdbc:sqlserver://host --username user -P --table
table --hive-import -- --schema schema
Warning: /usr/lib/sqoop/../accumulo does not exist! Accumulo imports will fail.
Please set $ACCUMULO_HOME to the root of your Accumulo installation.
15/05/01 20:46:19 INFO sqoop.Sqoop: Running Sqoop version: 1.4.5-cdh5.3.2
Enter password:
15/05/01 20:46:21 ERROR tool.BaseSqoopTool: Error parsing arguments for codegen:
15/05/01 20:46:21 ERROR tool.BaseSqoopTool: Unrecognized argument: --
15/05/01 20:46:21 ERROR tool.BaseSqoopTool: Unrecognized argument: --schema
15/05/01 20:46:21 ERROR tool.BaseSqoopTool: Unrecognized argument: schema
Try --help for usage instructions.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)