Uploaded image for project: 'Sqoop (Retired)'
  1. Sqoop (Retired)
  2. SQOOP-2344

Sqoop codegen does not support the -- argument

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.4.5
    • None
    • codegen
    • None

    Description

      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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            mdominguez@cloudera.com Mariano Dominguez
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: