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

Sqoop Import Job Hangs when the Netezza direct option is used !

    XMLWordPrintableJSON

Details

    • Test
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.4.4
    • None
    • sqoop2-test
    • sqoop-1.4.4.2.0.6.1-102.jar, nzjdbc3.jar

    Description

      Hi, The SQOOP Import job hangs when used with the Netezza -direct option. It runs fine without the "-direct" option.

      Here is the SQOOP Job:
      --------------------------------------------------------------------------------------------
      /sqoop import --direct --connect "jdbc:netezza://netezza-1v:5480/DTSTTAPPL;schema=ADMIN;" --table PROCEDURE --username nzuser --P --target-dir /user/DTSTTAPPL/ --verbose -m 4
      --------------------------------------------------------------------------------------------
      The job hangs after saying that map 100% reduce 0%. I had to do a mapred job -kill.

      In looking at the Ambari, it looks like it read only 4 records. Basically 1 per mapper.

      In Looking at the YARN logs, I found the below error.

      2014-06-24 22:31:26,064 ERROR [Thread-15] org.apache.sqoop.mapreduce.db.netezza.NetezzaJDBCStatementRunner: Unable to execute external table export
      org.netezza.error.NzSQLException: ERROR: found delim ',' in a data field, specify escapeChar '\' option in the external table definition

      There is only 1 Date Timestamp field in the table I'm trying to import and I did not see a ','. Am i supposed to create an external table in Netezza before hand. My assumption was using the "--direct" option will take care of creating the external table in Netezza and dropping it later.

      Any help with this is appreciated.

      • Venkat.

      Attachments

        Activity

          People

            Unassigned Unassigned
            munjuluris Shyam
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:

              Time Tracking

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