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

          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.
          Hide
          Cheolsoo Park added a comment -

          Committed to trunk. Thanks Jarcec!

          Show
          Cheolsoo Park added a comment - Committed to trunk. Thanks Jarcec!
          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
          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-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-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

            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