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

Sqoop User Guide's troubleshooting section should explain how to override the column mapping when importing a table from MySQL into Hive

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.4.1-incubating
    • 1.4.2
    • docs
    • None

    Description

      When importing a table from MySQL into Hive where one of the columns is of datatype TINYINT(1), Sqoop will automatically map this to the Hive datatype boolean. This is because the MySQL JDBC connector maps the TINYINT(1) datatype to java.sql.Types.BIT, which Sqoop by default maps to the Hive type Boolean. Consequently, if you have values such as 1 or 0 in this column, they will fail to parse correctly in Hive, instead appearing as all NULL values.

      Attachments

        1. SQOOP-463.patch
          1 kB
          Kathleen Ting
        2. SQOOP-463-1.patch
          1 kB
          Kathleen Ting
        3. SQOOP-463-2.patch
          1 kB
          Kathleen Ting

        Activity

          People

            kathleen Kathleen Ting
            kathleen Kathleen Ting
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: