Uploaded image for project: 'Sqoop'
  1. Sqoop
  2. SQOOP-2372

Imports all tables as parquet will meet a NPE

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.4.6
    • Fix Version/s: 1.4.7
    • Component/s: None
    • Labels:
      None

      Description

      When importing all tables, the options.getTableName() is not set. CodeGenTool should use tableName instead of options.getTableName().

      Test command:

      sqoop import-all-tables -m 12 --connect jdbc:mysql://`hostname`:3306/retail_db --username=... --password=... --compression-codec=snappy --as-parquetfile --warehouse-dir=/user/hive/warehouse --hive-import
      

        Attachments

        1. SQOOP-2372.patch
          1 kB
          Qian Xu
        2. SQOOP-2372.3.patch
          4 kB
          Qian Xu
        3. SQOOP-2372.2.patch
          5 kB
          Qian Xu

          Issue Links

            Activity

              People

              • Assignee:
                stanleyxu2005 Qian Xu
                Reporter:
                stanleyxu2005 Qian Xu
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: