Sqoop
  1. Sqoop
  2. SQOOP-912

Add ability to specify --hive-database parameter

    Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 1.4.2
    • Fix Version/s: 1.4.4
    • Component/s: None
    • Labels:

      Description

      Sqoop currently supports imports into Hive. User can specify specific database inside parameter --hive-table in format <db>.<table>. Unfortunately there is no way how to specify specific database during import-all-tables command and thus I would propose to add new parameter --hive-database that would allow that.

      1. bugSQOOP-912.patch
        5 kB
        Jarek Jarcec Cecho

        Issue Links

          Activity

          Jarek Jarcec Cecho created issue -
          Jarek Jarcec Cecho made changes -
          Field Original Value New Value
          Assignee Jarek Jarcec Cecho [ jarcec ]
          Jarek Jarcec Cecho made changes -
          Description Sqoop currently supports imports into Hive. User can specify specific database inside parameter {{--hive-table}} in format {{<db>.<table>}}. Unfortunately there is no way how to specify specific database during {{import-all-tables}} command and thus I would propose to add new parameter {{--hive-database}} that would allow that. Sqoop currently supports imports into Hive. User can specify specific database inside parameter {{\--hive-table}} in format {{<db>.<table>}}. Unfortunately there is no way how to specify specific database during {{import-all-tables}} command and thus I would propose to add new parameter {{\--hive-database}} that would allow that.
          Jarek Jarcec Cecho made changes -
          Remote Link This issue links to "Review board (Web Link)" [ 12113 ]
          Jarek Jarcec Cecho made changes -
          Attachment bugSQOOP-912.patch [ 12575455 ]
          Jarek Jarcec Cecho made changes -
          Status Open [ 1 ] Patch Available [ 10002 ]
          Fix Version/s 1.4.4 [ 12324082 ]
          Hide
          Kathleen Ting added a comment -
          Show
          Kathleen Ting added a comment - Thanks Jarcec for your contribution. The patch is in: https://git-wip-us.apache.org/repos/asf?p=sqoop.git;a=commit;h=8b3742ad69ad8dfea30c692cf9e8f78192f91890
          Kathleen Ting made changes -
          Status Patch Available [ 10002 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          Hide
          Hudson added a comment -

          Integrated in Sqoop-ant-jdk-1.6-hadoop20 #620 (See https://builds.apache.org/job/Sqoop-ant-jdk-1.6-hadoop20/620/)
          SQOOP-912: Add ability to specify --hive-database parameter (Revision 8b3742ad69ad8dfea30c692cf9e8f78192f91890)

          Result = SUCCESS
          kathleen : https://git-wip-us.apache.org/repos/asf?p=sqoop.git&a=commit&h=8b3742ad69ad8dfea30c692cf9e8f78192f91890
          Files :

          • src/java/org/apache/sqoop/tool/BaseSqoopTool.java
          • src/java/org/apache/sqoop/SqoopOptions.java
          • src/test/com/cloudera/sqoop/hive/TestTableDefWriter.java
          • src/java/org/apache/sqoop/hive/TableDefWriter.java
          Show
          Hudson added a comment - Integrated in Sqoop-ant-jdk-1.6-hadoop20 #620 (See https://builds.apache.org/job/Sqoop-ant-jdk-1.6-hadoop20/620/ ) SQOOP-912 : Add ability to specify --hive-database parameter (Revision 8b3742ad69ad8dfea30c692cf9e8f78192f91890) Result = SUCCESS kathleen : https://git-wip-us.apache.org/repos/asf?p=sqoop.git&a=commit&h=8b3742ad69ad8dfea30c692cf9e8f78192f91890 Files : src/java/org/apache/sqoop/tool/BaseSqoopTool.java src/java/org/apache/sqoop/SqoopOptions.java src/test/com/cloudera/sqoop/hive/TestTableDefWriter.java src/java/org/apache/sqoop/hive/TableDefWriter.java
          Hide
          Hudson added a comment -

          Integrated in Sqoop-ant-jdk-1.6-hadoop23 #828 (See https://builds.apache.org/job/Sqoop-ant-jdk-1.6-hadoop23/828/)
          SQOOP-912: Add ability to specify --hive-database parameter (Revision 8b3742ad69ad8dfea30c692cf9e8f78192f91890)

          Result = SUCCESS
          kathleen : https://git-wip-us.apache.org/repos/asf?p=sqoop.git&a=commit&h=8b3742ad69ad8dfea30c692cf9e8f78192f91890
          Files :

          • src/java/org/apache/sqoop/hive/TableDefWriter.java
          • src/java/org/apache/sqoop/SqoopOptions.java
          • src/java/org/apache/sqoop/tool/BaseSqoopTool.java
          • src/test/com/cloudera/sqoop/hive/TestTableDefWriter.java
          Show
          Hudson added a comment - Integrated in Sqoop-ant-jdk-1.6-hadoop23 #828 (See https://builds.apache.org/job/Sqoop-ant-jdk-1.6-hadoop23/828/ ) SQOOP-912 : Add ability to specify --hive-database parameter (Revision 8b3742ad69ad8dfea30c692cf9e8f78192f91890) Result = SUCCESS kathleen : https://git-wip-us.apache.org/repos/asf?p=sqoop.git&a=commit&h=8b3742ad69ad8dfea30c692cf9e8f78192f91890 Files : src/java/org/apache/sqoop/hive/TableDefWriter.java src/java/org/apache/sqoop/SqoopOptions.java src/java/org/apache/sqoop/tool/BaseSqoopTool.java src/test/com/cloudera/sqoop/hive/TestTableDefWriter.java
          Hide
          Hudson added a comment -

          Integrated in Sqoop-ant-jdk-1.6-hadoop200 #620 (See https://builds.apache.org/job/Sqoop-ant-jdk-1.6-hadoop200/620/)
          SQOOP-912: Add ability to specify --hive-database parameter (Revision 8b3742ad69ad8dfea30c692cf9e8f78192f91890)

          Result = SUCCESS
          kathleen : https://git-wip-us.apache.org/repos/asf?p=sqoop.git&a=commit&h=8b3742ad69ad8dfea30c692cf9e8f78192f91890
          Files :

          • src/java/org/apache/sqoop/SqoopOptions.java
          • src/java/org/apache/sqoop/tool/BaseSqoopTool.java
          • src/java/org/apache/sqoop/hive/TableDefWriter.java
          • src/test/com/cloudera/sqoop/hive/TestTableDefWriter.java
          Show
          Hudson added a comment - Integrated in Sqoop-ant-jdk-1.6-hadoop200 #620 (See https://builds.apache.org/job/Sqoop-ant-jdk-1.6-hadoop200/620/ ) SQOOP-912 : Add ability to specify --hive-database parameter (Revision 8b3742ad69ad8dfea30c692cf9e8f78192f91890) Result = SUCCESS kathleen : https://git-wip-us.apache.org/repos/asf?p=sqoop.git&a=commit&h=8b3742ad69ad8dfea30c692cf9e8f78192f91890 Files : src/java/org/apache/sqoop/SqoopOptions.java src/java/org/apache/sqoop/tool/BaseSqoopTool.java src/java/org/apache/sqoop/hive/TableDefWriter.java src/test/com/cloudera/sqoop/hive/TestTableDefWriter.java
          Hide
          Hudson added a comment -

          Integrated in Sqoop-ant-jdk-1.6-hadoop100 #628 (See https://builds.apache.org/job/Sqoop-ant-jdk-1.6-hadoop100/628/)
          SQOOP-912: Add ability to specify --hive-database parameter (Revision 8b3742ad69ad8dfea30c692cf9e8f78192f91890)

          Result = SUCCESS
          kathleen : https://git-wip-us.apache.org/repos/asf?p=sqoop.git&a=commit&h=8b3742ad69ad8dfea30c692cf9e8f78192f91890
          Files :

          • src/java/org/apache/sqoop/SqoopOptions.java
          • src/test/com/cloudera/sqoop/hive/TestTableDefWriter.java
          • src/java/org/apache/sqoop/tool/BaseSqoopTool.java
          • src/java/org/apache/sqoop/hive/TableDefWriter.java
          Show
          Hudson added a comment - Integrated in Sqoop-ant-jdk-1.6-hadoop100 #628 (See https://builds.apache.org/job/Sqoop-ant-jdk-1.6-hadoop100/628/ ) SQOOP-912 : Add ability to specify --hive-database parameter (Revision 8b3742ad69ad8dfea30c692cf9e8f78192f91890) Result = SUCCESS kathleen : https://git-wip-us.apache.org/repos/asf?p=sqoop.git&a=commit&h=8b3742ad69ad8dfea30c692cf9e8f78192f91890 Files : src/java/org/apache/sqoop/SqoopOptions.java src/test/com/cloudera/sqoop/hive/TestTableDefWriter.java src/java/org/apache/sqoop/tool/BaseSqoopTool.java src/java/org/apache/sqoop/hive/TableDefWriter.java
          Jarek Jarcec Cecho made changes -
          Link This issue is related to SQOOP-322 [ SQOOP-322 ]
          Transition Time In Source Status Execution Times Last Executer Last Execution Date
          Open Open Patch Available Patch Available
          27d 10h 25m 1 Jarek Jarcec Cecho 26/Mar/13 02:47
          Patch Available Patch Available Resolved Resolved
          20d 13h 59m 1 Kathleen Ting 15/Apr/13 17:47

            People

            • Assignee:
              Jarek Jarcec Cecho
              Reporter:
              Jarek Jarcec Cecho
            • Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development