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

database= option must be used in sqoop command when importing dbcs data from Teradata

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.3.0
    • 1.3.0
    • connectors
    • operation system:UNIX

    Description

      We must add "Database=" option in sqoop command when importing Unicode data from Teradata. The version of Teradata is 14.10. The sqoop command is as follows:

      sqoop import --connection-manager com.cloudera.connector.teradata.TeradataManager --connect jdbc:teradata://quasi/Database=xxxx,CHARSET=UTF8 --table nlstd -m 1 --split-by i --target-dir /tmp/test --delete-target-dir --username xxx --password xxxxx

      But this option is not necessary when importing latin characters from Teradata. Below is sqoop command:

      sqoop import --connection-manager com.cloudera.connector.teradata.TeradataManager --connect jdbc:teradata://quasi/xxxxx --table test -m 1 --split-by i --target-dir /tmp/test10_6 --delete-target-dir --username xxxx --password xxx

      However the Teradata documentation does show that ParameterName=Value is the expected syntax:

      jdbc:teradata://DatabaseServerName/ParameterName=Value

      https://developer.teradata.com/doc/connectivity/jdbc/reference/current/jdbcug_chapter_2.html#BABJIHBJ

      Attachments

        Activity

          People

            Unassigned Unassigned
            gwx Lucy Gu
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Time Tracking

                Estimated:
                Original Estimate - 672h
                672h
                Remaining:
                Remaining Estimate - 672h
                672h
                Logged:
                Time Spent - Not Specified
                Not Specified