hive-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aihu...@apache.org
Subject hive git commit: HIVE-18202: Automatically migrate hbase.table.name to hbase.mapreduce.hfileoutputformat.table.name for hbase-based table (Aihua Xu, reviewed by Naveen Gangam)
Date Tue, 09 Jan 2018 23:46:57 GMT
Repository: hive
Updated Branches:
  refs/heads/master 146234906 -> d37b8026e


HIVE-18202: Automatically migrate hbase.table.name to hbase.mapreduce.hfileoutputformat.table.name
for hbase-based table (Aihua Xu, reviewed by Naveen Gangam)


Project: http://git-wip-us.apache.org/repos/asf/hive/repo
Commit: http://git-wip-us.apache.org/repos/asf/hive/commit/d37b8026
Tree: http://git-wip-us.apache.org/repos/asf/hive/tree/d37b8026
Diff: http://git-wip-us.apache.org/repos/asf/hive/diff/d37b8026

Branch: refs/heads/master
Commit: d37b8026ed25b4150fd3782331e6800459d40d7a
Parents: 1462349
Author: Aihua Xu <aihuaxu@apache.org>
Authored: Tue Jan 9 15:46:04 2018 -0800
Committer: Aihua Xu <aihuaxu@apache.org>
Committed: Tue Jan 9 15:46:04 2018 -0800

----------------------------------------------------------------------
 metastore/scripts/upgrade/derby/047-HIVE-18202.derby.sql       | 6 ++++++
 .../scripts/upgrade/derby/upgrade-2.3.0-to-3.0.0.derby.sql     | 1 +
 metastore/scripts/upgrade/mssql/032-HIVE-18202.mssql.sql       | 6 ++++++
 .../scripts/upgrade/mssql/upgrade-2.3.0-to-3.0.0.mssql.sql     | 1 +
 metastore/scripts/upgrade/mysql/047-HIVE-18202.mysql.sql       | 6 ++++++
 .../scripts/upgrade/mysql/upgrade-2.3.0-to-3.0.0.mysql.sql     | 1 +
 metastore/scripts/upgrade/oracle/047-HIVE-18202-oracle.sql     | 6 ++++++
 .../scripts/upgrade/oracle/upgrade-2.3.0-to-3.0.0.oracle.sql   | 1 +
 metastore/scripts/upgrade/postgres/046-HIVE-18202.postgres.sql | 6 ++++++
 .../upgrade/postgres/upgrade-2.3.0-to-3.0.0.postgres.sql       | 1 +
 10 files changed, 35 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hive/blob/d37b8026/metastore/scripts/upgrade/derby/047-HIVE-18202.derby.sql
----------------------------------------------------------------------
diff --git a/metastore/scripts/upgrade/derby/047-HIVE-18202.derby.sql b/metastore/scripts/upgrade/derby/047-HIVE-18202.derby.sql
new file mode 100644
index 0000000..0fdc615
--- /dev/null
+++ b/metastore/scripts/upgrade/derby/047-HIVE-18202.derby.sql
@@ -0,0 +1,6 @@
+UPDATE TABLE_PARAMS
+  SET PARAM_KEY = 'hbase.mapreduce.hfileoutputformat.table.name'
+WHERE
+      PARAM_KEY = 'hbase.table.name'
+;
+

http://git-wip-us.apache.org/repos/asf/hive/blob/d37b8026/metastore/scripts/upgrade/derby/upgrade-2.3.0-to-3.0.0.derby.sql
----------------------------------------------------------------------
diff --git a/metastore/scripts/upgrade/derby/upgrade-2.3.0-to-3.0.0.derby.sql b/metastore/scripts/upgrade/derby/upgrade-2.3.0-to-3.0.0.derby.sql
index 1f2647d..75b0e73 100644
--- a/metastore/scripts/upgrade/derby/upgrade-2.3.0-to-3.0.0.derby.sql
+++ b/metastore/scripts/upgrade/derby/upgrade-2.3.0-to-3.0.0.derby.sql
@@ -5,5 +5,6 @@ RUN '043-HIVE-16922.derby.sql';
 RUN '044-HIVE-16997.derby.sql';
 RUN '045-HIVE-16886.derby.sql';
 RUN '046-HIVE-17566.derby.sql';
+RUN '047-HIVE-18202.derby.sql';
 
 UPDATE "APP".VERSION SET SCHEMA_VERSION='3.0.0', VERSION_COMMENT='Hive release version 3.0.0'
where VER_ID=1;

http://git-wip-us.apache.org/repos/asf/hive/blob/d37b8026/metastore/scripts/upgrade/mssql/032-HIVE-18202.mssql.sql
----------------------------------------------------------------------
diff --git a/metastore/scripts/upgrade/mssql/032-HIVE-18202.mssql.sql b/metastore/scripts/upgrade/mssql/032-HIVE-18202.mssql.sql
new file mode 100644
index 0000000..0fdc615
--- /dev/null
+++ b/metastore/scripts/upgrade/mssql/032-HIVE-18202.mssql.sql
@@ -0,0 +1,6 @@
+UPDATE TABLE_PARAMS
+  SET PARAM_KEY = 'hbase.mapreduce.hfileoutputformat.table.name'
+WHERE
+      PARAM_KEY = 'hbase.table.name'
+;
+

http://git-wip-us.apache.org/repos/asf/hive/blob/d37b8026/metastore/scripts/upgrade/mssql/upgrade-2.3.0-to-3.0.0.mssql.sql
----------------------------------------------------------------------
diff --git a/metastore/scripts/upgrade/mssql/upgrade-2.3.0-to-3.0.0.mssql.sql b/metastore/scripts/upgrade/mssql/upgrade-2.3.0-to-3.0.0.mssql.sql
index 864a5e5..79189bb 100644
--- a/metastore/scripts/upgrade/mssql/upgrade-2.3.0-to-3.0.0.mssql.sql
+++ b/metastore/scripts/upgrade/mssql/upgrade-2.3.0-to-3.0.0.mssql.sql
@@ -6,6 +6,7 @@ SELECT 'Upgrading MetaStore schema from 2.3.0 to 3.0.0' AS MESSAGE;
 :r 029-HIVE-16997.mssql.sql
 :r 030-HIVE-16886.mssql.sql
 :r 031-HIVE-17566.mssql.sql
+:r 032-HIVE-18202.mssql.sql
 
 UPDATE VERSION SET SCHEMA_VERSION='3.0.0', VERSION_COMMENT='Hive release version 3.0.0' where
VER_ID=1;
 SELECT 'Finished upgrading MetaStore schema from 2.3.0 to 3.0.0' AS MESSAGE;

http://git-wip-us.apache.org/repos/asf/hive/blob/d37b8026/metastore/scripts/upgrade/mysql/047-HIVE-18202.mysql.sql
----------------------------------------------------------------------
diff --git a/metastore/scripts/upgrade/mysql/047-HIVE-18202.mysql.sql b/metastore/scripts/upgrade/mysql/047-HIVE-18202.mysql.sql
new file mode 100644
index 0000000..0fdc615
--- /dev/null
+++ b/metastore/scripts/upgrade/mysql/047-HIVE-18202.mysql.sql
@@ -0,0 +1,6 @@
+UPDATE TABLE_PARAMS
+  SET PARAM_KEY = 'hbase.mapreduce.hfileoutputformat.table.name'
+WHERE
+      PARAM_KEY = 'hbase.table.name'
+;
+

http://git-wip-us.apache.org/repos/asf/hive/blob/d37b8026/metastore/scripts/upgrade/mysql/upgrade-2.3.0-to-3.0.0.mysql.sql
----------------------------------------------------------------------
diff --git a/metastore/scripts/upgrade/mysql/upgrade-2.3.0-to-3.0.0.mysql.sql b/metastore/scripts/upgrade/mysql/upgrade-2.3.0-to-3.0.0.mysql.sql
index caa059d..f38098b 100644
--- a/metastore/scripts/upgrade/mysql/upgrade-2.3.0-to-3.0.0.mysql.sql
+++ b/metastore/scripts/upgrade/mysql/upgrade-2.3.0-to-3.0.0.mysql.sql
@@ -6,6 +6,7 @@ SOURCE 043-HIVE-16922.mysql.sql;
 SOURCE 044-HIVE-16997.mysql.sql;
 SOURCE 045-HIVE-16886.mysql.sql;
 SOURCE 046-HIVE-17566.mysql.sql;
+SOURCE 047-HIVE-18202.mysql.sql;
 
 UPDATE VERSION SET SCHEMA_VERSION='3.0.0', VERSION_COMMENT='Hive release version 3.0.0' where
VER_ID=1;
 SELECT 'Finished upgrading MetaStore schema from 2.3.0 to 3.0.0' AS ' ';

http://git-wip-us.apache.org/repos/asf/hive/blob/d37b8026/metastore/scripts/upgrade/oracle/047-HIVE-18202-oracle.sql
----------------------------------------------------------------------
diff --git a/metastore/scripts/upgrade/oracle/047-HIVE-18202-oracle.sql b/metastore/scripts/upgrade/oracle/047-HIVE-18202-oracle.sql
new file mode 100644
index 0000000..0fdc615
--- /dev/null
+++ b/metastore/scripts/upgrade/oracle/047-HIVE-18202-oracle.sql
@@ -0,0 +1,6 @@
+UPDATE TABLE_PARAMS
+  SET PARAM_KEY = 'hbase.mapreduce.hfileoutputformat.table.name'
+WHERE
+      PARAM_KEY = 'hbase.table.name'
+;
+

http://git-wip-us.apache.org/repos/asf/hive/blob/d37b8026/metastore/scripts/upgrade/oracle/upgrade-2.3.0-to-3.0.0.oracle.sql
----------------------------------------------------------------------
diff --git a/metastore/scripts/upgrade/oracle/upgrade-2.3.0-to-3.0.0.oracle.sql b/metastore/scripts/upgrade/oracle/upgrade-2.3.0-to-3.0.0.oracle.sql
index 33174c8..8a8f294 100644
--- a/metastore/scripts/upgrade/oracle/upgrade-2.3.0-to-3.0.0.oracle.sql
+++ b/metastore/scripts/upgrade/oracle/upgrade-2.3.0-to-3.0.0.oracle.sql
@@ -6,6 +6,7 @@ SELECT 'Upgrading MetaStore schema from 2.3.0 to 3.0.0' AS Status from dual;
 @044-HIVE-16997.oracle.sql;
 @045-HIVE-16886.oracle.sql;
 @046-HIVE-17566.oracle.sql;
+@047-HIVE-18202-oracle.sql;
 
 UPDATE VERSION SET SCHEMA_VERSION='3.0.0', VERSION_COMMENT='Hive release version 3.0.0' where
VER_ID=1;
 SELECT 'Finished upgrading MetaStore schema from 2.3.0 to 3.0.0' AS Status from dual;

http://git-wip-us.apache.org/repos/asf/hive/blob/d37b8026/metastore/scripts/upgrade/postgres/046-HIVE-18202.postgres.sql
----------------------------------------------------------------------
diff --git a/metastore/scripts/upgrade/postgres/046-HIVE-18202.postgres.sql b/metastore/scripts/upgrade/postgres/046-HIVE-18202.postgres.sql
new file mode 100644
index 0000000..0fdc615
--- /dev/null
+++ b/metastore/scripts/upgrade/postgres/046-HIVE-18202.postgres.sql
@@ -0,0 +1,6 @@
+UPDATE TABLE_PARAMS
+  SET PARAM_KEY = 'hbase.mapreduce.hfileoutputformat.table.name'
+WHERE
+      PARAM_KEY = 'hbase.table.name'
+;
+

http://git-wip-us.apache.org/repos/asf/hive/blob/d37b8026/metastore/scripts/upgrade/postgres/upgrade-2.3.0-to-3.0.0.postgres.sql
----------------------------------------------------------------------
diff --git a/metastore/scripts/upgrade/postgres/upgrade-2.3.0-to-3.0.0.postgres.sql b/metastore/scripts/upgrade/postgres/upgrade-2.3.0-to-3.0.0.postgres.sql
index 01d359e..91de88f 100644
--- a/metastore/scripts/upgrade/postgres/upgrade-2.3.0-to-3.0.0.postgres.sql
+++ b/metastore/scripts/upgrade/postgres/upgrade-2.3.0-to-3.0.0.postgres.sql
@@ -6,6 +6,7 @@ SELECT 'Upgrading MetaStore schema from 2.3.0 to 3.0.0';
 \i 043-HIVE-16997.postgres.sql;
 \i 044-HIVE-16886.postgres.sql;
 \i 045-HIVE-17566.postgres.sql;
+\i 046-HIVE-18202.postgres.sql;
 
 UPDATE "VERSION" SET "SCHEMA_VERSION"='3.0.0', "VERSION_COMMENT"='Hive release version 3.0.0'
where "VER_ID"=1;
 SELECT 'Finished upgrading MetaStore schema from 2.3.0 to 3.0.0';


Mime
View raw message