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

          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
          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-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-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
          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

            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