Uploaded image for project: 'Sqoop (READ-ONLY)'
  1. Sqoop (READ-ONLY)
  2. SQOOP-131

Cannot create a hive table when using a free form query

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.1.0
    • Fix Version/s: 1.2.0
    • Component/s: hive
    • Labels:
      None
    • Environment:
      CDH3b3

      Description

      I am trying to do a sqoop import into a Hive table using a free form query. Here is the command I am executing:

      sqoop import --connect jdbc:mysql://[HOST]/reporting_2 --username [USER_NAME] --password [PASSWORD] --verbose --hive-import --hive-overwrite --hive-table urls --query 'select id, domain_id, url, created, modified, cast(url_hash as char) as url_hash from urls where $CONDITIONS' --split-by id --target-dir /user/hdfs/urls2 --class-name urls

      I have attached the output from sqoop. I have also examined the hive.log and there is nothing in it related to this.

        Attachments

          Activity

            People

            • Assignee:
              ahmed Ahmed Radwan
              Reporter:
              awilson@conductor.com Andrew Wilson
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: