Sqoop
  1. Sqoop
  2. SQOOP-1179

Incorrect warning saying --hive-import was not specified when it was specified

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.4.4
    • Fix Version/s: 1.4.5
    • Component/s: None
    • Labels:
      None
    • Environment:

      Sqoop 1.4.4

      Description

      The conditionals to check for hive options without hive import need to be grouped so that the warning message for lack of --hive-import is right

      For example, the command line

      sqoop import  <other options > --table <table> --warehouse-dir <warehouse-dir> --hive-import --hive-overwrite
      

      Throws the following error

      013-08-21 20:13:00,804|beaver.machine|INFO|13/08/21 20:13:00 WARN tool.BaseSqoopTool: It seems that you've specified at least one of following:
      2013-08-21 20:13:00,805|beaver.machine|INFO|13/08/21 20:13:00 WARN tool.BaseSqoopTool: --hive-home
      2013-08-21 20:13:00,805|beaver.machine|INFO|13/08/21 20:13:00 WARN tool.BaseSqoopTool: --hive-overwrite
      2013-08-21 20:13:00,805|beaver.machine|INFO|13/08/21 20:13:00 WARN tool.BaseSqoopTool: --create-hive-table
      2013-08-21 20:13:00,806|beaver.machine|INFO|13/08/21 20:13:00 WARN tool.BaseSqoopTool: --hive-table
      2013-08-21 20:13:00,806|beaver.machine|INFO|13/08/21 20:13:00 WARN tool.BaseSqoopTool: --hive-partition-key
      2013-08-21 20:13:00,806|beaver.machine|INFO|13/08/21 20:13:00 WARN tool.BaseSqoopTool: --hive-partition-value
      2013-08-21 20:13:00,806|beaver.machine|INFO|13/08/21 20:13:00 WARN tool.BaseSqoopTool: --map-column-hive
      2013-08-21 20:13:00,807|beaver.machine|INFO|13/08/21 20:13:00 WARN tool.BaseSqoopTool: Without specifying parameter --hive-import. Please note that
      2013-08-21 20:13:00,807|beaver.machine|INFO|13/08/21 20:13:00 WARN tool.BaseSqoopTool: those arguments will not be used in this session. Either
      2013-08-21 20:13:00,807|beaver.machine|INFO|13/08/21 20:13:00 WARN tool.BaseSqoopTool: specify --hive-import to apply them correctly or remove them
      2013-08-21 20:13:00,807|beaver.machine|INFO|13/08/21 20:13:00 WARN tool.BaseSqoopTool: from command line to remove this warning.
      
      1. SQOOP-1179.patch
        2 kB
        Venkat Ranganathan

        Issue Links

          Activity

          Hide
          ASF subversion and git services added a comment -

          Commit fa40fcabea1dc8bc83bf273cbe49c43da26c83e2 in branch refs/heads/trunk from Jarek Jarcec Cecho
          [ https://git-wip-us.apache.org/repos/asf?p=sqoop.git;h=fa40fca ]

          SQOOP-1179: Incorrect warning saying --hive-import was not specified when it was specified

          (Venkat Ranganathan via Jarek Jarek Cecho)

          Show
          ASF subversion and git services added a comment - Commit fa40fcabea1dc8bc83bf273cbe49c43da26c83e2 in branch refs/heads/trunk from Jarek Jarcec Cecho [ https://git-wip-us.apache.org/repos/asf?p=sqoop.git;h=fa40fca ] SQOOP-1179 : Incorrect warning saying --hive-import was not specified when it was specified (Venkat Ranganathan via Jarek Jarek Cecho)
          Hide
          Jarek Jarcec Cecho added a comment -

          Good finding Venkat, thank you for fixing this!

          Show
          Jarek Jarcec Cecho added a comment - Good finding Venkat, thank you for fixing this!
          Hide
          Hudson added a comment -

          SUCCESS: Integrated in Sqoop-ant-jdk-1.6-hadoop200 #846 (See https://builds.apache.org/job/Sqoop-ant-jdk-1.6-hadoop200/846/)
          SQOOP-1179: Incorrect warning saying --hive-import was not specified when it was specified (jarcec: https://git-wip-us.apache.org/repos/asf?p=sqoop.git&a=commit&h=fa40fcabea1dc8bc83bf273cbe49c43da26c83e2)

          • src/java/org/apache/sqoop/tool/BaseSqoopTool.java
          Show
          Hudson added a comment - SUCCESS: Integrated in Sqoop-ant-jdk-1.6-hadoop200 #846 (See https://builds.apache.org/job/Sqoop-ant-jdk-1.6-hadoop200/846/ ) SQOOP-1179 : Incorrect warning saying --hive-import was not specified when it was specified (jarcec: https://git-wip-us.apache.org/repos/asf?p=sqoop.git&a=commit&h=fa40fcabea1dc8bc83bf273cbe49c43da26c83e2 ) src/java/org/apache/sqoop/tool/BaseSqoopTool.java
          Hide
          Hudson added a comment -

          SUCCESS: Integrated in Sqoop-ant-jdk-1.6-hadoop20 #843 (See https://builds.apache.org/job/Sqoop-ant-jdk-1.6-hadoop20/843/)
          SQOOP-1179: Incorrect warning saying --hive-import was not specified when it was specified (jarcec: https://git-wip-us.apache.org/repos/asf?p=sqoop.git&a=commit&h=fa40fcabea1dc8bc83bf273cbe49c43da26c83e2)

          • src/java/org/apache/sqoop/tool/BaseSqoopTool.java
          Show
          Hudson added a comment - SUCCESS: Integrated in Sqoop-ant-jdk-1.6-hadoop20 #843 (See https://builds.apache.org/job/Sqoop-ant-jdk-1.6-hadoop20/843/ ) SQOOP-1179 : Incorrect warning saying --hive-import was not specified when it was specified (jarcec: https://git-wip-us.apache.org/repos/asf?p=sqoop.git&a=commit&h=fa40fcabea1dc8bc83bf273cbe49c43da26c83e2 ) src/java/org/apache/sqoop/tool/BaseSqoopTool.java
          Hide
          Hudson added a comment -

          SUCCESS: Integrated in Sqoop-ant-jdk-1.6-hadoop23 #1041 (See https://builds.apache.org/job/Sqoop-ant-jdk-1.6-hadoop23/1041/)
          SQOOP-1179: Incorrect warning saying --hive-import was not specified when it was specified (jarcec: https://git-wip-us.apache.org/repos/asf?p=sqoop.git&a=commit&h=fa40fcabea1dc8bc83bf273cbe49c43da26c83e2)

          • src/java/org/apache/sqoop/tool/BaseSqoopTool.java
          Show
          Hudson added a comment - SUCCESS: Integrated in Sqoop-ant-jdk-1.6-hadoop23 #1041 (See https://builds.apache.org/job/Sqoop-ant-jdk-1.6-hadoop23/1041/ ) SQOOP-1179 : Incorrect warning saying --hive-import was not specified when it was specified (jarcec: https://git-wip-us.apache.org/repos/asf?p=sqoop.git&a=commit&h=fa40fcabea1dc8bc83bf273cbe49c43da26c83e2 ) src/java/org/apache/sqoop/tool/BaseSqoopTool.java
          Hide
          Hudson added a comment -

          SUCCESS: Integrated in Sqoop-ant-jdk-1.6-hadoop100 #802 (See https://builds.apache.org/job/Sqoop-ant-jdk-1.6-hadoop100/802/)
          SQOOP-1179: Incorrect warning saying --hive-import was not specified when it was specified (jarcec: https://git-wip-us.apache.org/repos/asf?p=sqoop.git&a=commit&h=fa40fcabea1dc8bc83bf273cbe49c43da26c83e2)

          • src/java/org/apache/sqoop/tool/BaseSqoopTool.java
          Show
          Hudson added a comment - SUCCESS: Integrated in Sqoop-ant-jdk-1.6-hadoop100 #802 (See https://builds.apache.org/job/Sqoop-ant-jdk-1.6-hadoop100/802/ ) SQOOP-1179 : Incorrect warning saying --hive-import was not specified when it was specified (jarcec: https://git-wip-us.apache.org/repos/asf?p=sqoop.git&a=commit&h=fa40fcabea1dc8bc83bf273cbe49c43da26c83e2 ) src/java/org/apache/sqoop/tool/BaseSqoopTool.java

            People

            • Assignee:
              Venkat Ranganathan
              Reporter:
              Venkat Ranganathan
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development