Sqoop
  1. Sqoop
  2. SQOOP-804

Warn if hive special arguments will be used without --hive-import

    Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 1.4.2
    • Fix Version/s: 1.4.3
    • Component/s: hive-integration
    • Labels:
      None

      Description

      If hive special arguments (-hive-create-table) are used without (-hive-import) they are silently ignored which might lead to user confusion. I would suggest to print out warning in such case to help user understand correct usage (throwing exception would be even better, but that would break backward compatibility).

      1. bugSQOOP-804.patch
        4 kB
        Jarek Jarcec Cecho

        Issue Links

          Activity

          Transition Time In Source Status Execution Times Last Executer Last Execution Date
          Open Open Patch Available Patch Available
          4m 54s 1 Jarek Jarcec Cecho 29/Dec/12 12:26
          Patch Available Patch Available Resolved Resolved
          5d 22h 1m 1 Cheolsoo Park 04/Jan/13 10:28
          Hide
          Hudson added a comment -

          Integrated in Sqoop-ant-jdk-1.6-hadoop100 #464 (See https://builds.apache.org/job/Sqoop-ant-jdk-1.6-hadoop100/464/)
          SQOOP-804: Warn if hive special arguments will be used without --hive-import (Revision 8029ed0cfc98c1cc7abac9922100b33305d184e8)

          Result = SUCCESS
          cheolsoo : https://git-wip-us.apache.org/repos/asf?p=sqoop.git&a=commit&h=8029ed0cfc98c1cc7abac9922100b33305d184e8
          Files :

          • src/java/org/apache/sqoop/tool/BaseSqoopTool.java
          • src/java/org/apache/sqoop/SqoopOptions.java
          • src/java/com/cloudera/sqoop/SqoopOptions.java
          Show
          Hudson added a comment - Integrated in Sqoop-ant-jdk-1.6-hadoop100 #464 (See https://builds.apache.org/job/Sqoop-ant-jdk-1.6-hadoop100/464/ ) SQOOP-804 : Warn if hive special arguments will be used without --hive-import (Revision 8029ed0cfc98c1cc7abac9922100b33305d184e8) Result = SUCCESS cheolsoo : https://git-wip-us.apache.org/repos/asf?p=sqoop.git&a=commit&h=8029ed0cfc98c1cc7abac9922100b33305d184e8 Files : src/java/org/apache/sqoop/tool/BaseSqoopTool.java src/java/org/apache/sqoop/SqoopOptions.java src/java/com/cloudera/sqoop/SqoopOptions.java
          Hide
          Hudson added a comment -

          Integrated in Sqoop-ant-jdk-1.6-hadoop200 #458 (See https://builds.apache.org/job/Sqoop-ant-jdk-1.6-hadoop200/458/)
          SQOOP-804: Warn if hive special arguments will be used without --hive-import (Revision 8029ed0cfc98c1cc7abac9922100b33305d184e8)

          Result = SUCCESS
          cheolsoo : https://git-wip-us.apache.org/repos/asf?p=sqoop.git&a=commit&h=8029ed0cfc98c1cc7abac9922100b33305d184e8
          Files :

          • src/java/org/apache/sqoop/tool/BaseSqoopTool.java
          • src/java/com/cloudera/sqoop/SqoopOptions.java
          • src/java/org/apache/sqoop/SqoopOptions.java
          Show
          Hudson added a comment - Integrated in Sqoop-ant-jdk-1.6-hadoop200 #458 (See https://builds.apache.org/job/Sqoop-ant-jdk-1.6-hadoop200/458/ ) SQOOP-804 : Warn if hive special arguments will be used without --hive-import (Revision 8029ed0cfc98c1cc7abac9922100b33305d184e8) Result = SUCCESS cheolsoo : https://git-wip-us.apache.org/repos/asf?p=sqoop.git&a=commit&h=8029ed0cfc98c1cc7abac9922100b33305d184e8 Files : src/java/org/apache/sqoop/tool/BaseSqoopTool.java src/java/com/cloudera/sqoop/SqoopOptions.java src/java/org/apache/sqoop/SqoopOptions.java
          Hide
          Hudson added a comment -

          Integrated in Sqoop-ant-jdk-1.6-hadoop23 #668 (See https://builds.apache.org/job/Sqoop-ant-jdk-1.6-hadoop23/668/)
          SQOOP-804: Warn if hive special arguments will be used without --hive-import (Revision 8029ed0cfc98c1cc7abac9922100b33305d184e8)

          Result = SUCCESS
          cheolsoo : https://git-wip-us.apache.org/repos/asf?p=sqoop.git&a=commit&h=8029ed0cfc98c1cc7abac9922100b33305d184e8
          Files :

          • src/java/org/apache/sqoop/tool/BaseSqoopTool.java
          • src/java/org/apache/sqoop/SqoopOptions.java
          • src/java/com/cloudera/sqoop/SqoopOptions.java
          Show
          Hudson added a comment - Integrated in Sqoop-ant-jdk-1.6-hadoop23 #668 (See https://builds.apache.org/job/Sqoop-ant-jdk-1.6-hadoop23/668/ ) SQOOP-804 : Warn if hive special arguments will be used without --hive-import (Revision 8029ed0cfc98c1cc7abac9922100b33305d184e8) Result = SUCCESS cheolsoo : https://git-wip-us.apache.org/repos/asf?p=sqoop.git&a=commit&h=8029ed0cfc98c1cc7abac9922100b33305d184e8 Files : src/java/org/apache/sqoop/tool/BaseSqoopTool.java src/java/org/apache/sqoop/SqoopOptions.java src/java/com/cloudera/sqoop/SqoopOptions.java
          Hide
          Hudson added a comment -

          Integrated in Sqoop-ant-jdk-1.6-hadoop20 #477 (See https://builds.apache.org/job/Sqoop-ant-jdk-1.6-hadoop20/477/)
          SQOOP-804: Warn if hive special arguments will be used without --hive-import (Revision 8029ed0cfc98c1cc7abac9922100b33305d184e8)

          Result = SUCCESS
          cheolsoo : https://git-wip-us.apache.org/repos/asf?p=sqoop.git&a=commit&h=8029ed0cfc98c1cc7abac9922100b33305d184e8
          Files :

          • src/java/org/apache/sqoop/SqoopOptions.java
          • src/java/org/apache/sqoop/tool/BaseSqoopTool.java
          • src/java/com/cloudera/sqoop/SqoopOptions.java
          Show
          Hudson added a comment - Integrated in Sqoop-ant-jdk-1.6-hadoop20 #477 (See https://builds.apache.org/job/Sqoop-ant-jdk-1.6-hadoop20/477/ ) SQOOP-804 : Warn if hive special arguments will be used without --hive-import (Revision 8029ed0cfc98c1cc7abac9922100b33305d184e8) Result = SUCCESS cheolsoo : https://git-wip-us.apache.org/repos/asf?p=sqoop.git&a=commit&h=8029ed0cfc98c1cc7abac9922100b33305d184e8 Files : src/java/org/apache/sqoop/SqoopOptions.java src/java/org/apache/sqoop/tool/BaseSqoopTool.java src/java/com/cloudera/sqoop/SqoopOptions.java
          Cheolsoo Park made changes -
          Status Patch Available [ 10002 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          Hide
          Cheolsoo Park added a comment -

          Committed to trunk. Thanks Jarcec!

          Show
          Cheolsoo Park added a comment - Committed to trunk. Thanks Jarcec!
          Hide
          Cheolsoo Park added a comment -

          +1. I will commit it after running unit tests.

          Show
          Cheolsoo Park added a comment - +1. I will commit it after running unit tests.
          Jarek Jarcec Cecho made changes -
          Status Open [ 1 ] Patch Available [ 10002 ]
          Fix Version/s 1.4.3 [ 12322644 ]
          Jarek Jarcec Cecho made changes -
          Attachment bugSQOOP-804.patch [ 12562671 ]
          Jarek Jarcec Cecho made changes -
          Field Original Value New Value
          Remote Link This issue links to "Review board (Web Link)" [ 11938 ]
          Jarek Jarcec Cecho created issue -

            People

            • Assignee:
              Jarek Jarcec Cecho
              Reporter:
              Jarek Jarcec Cecho
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development