Author: rhbutani
Date: Tue Apr 8 15:44:11 2014
New Revision: 1585764
URL: http://svn.apache.org/r1585764
Log:
HIVE-6757 Remove deprecated parquet classes from outside of org.apache package
(Owen O'Malley via Xufeu Zhang)
Added:
hive/branches/branch-0.13/metastore/scripts/upgrade/derby/018-HIVE-6757.derby.sql
hive/branches/branch-0.13/metastore/scripts/upgrade/mysql/018-HIVE-6757.mysql.sql
hive/branches/branch-0.13/metastore/scripts/upgrade/oracle/018-HIVE-6757.oracle.sql
hive/branches/branch-0.13/metastore/scripts/upgrade/postgres/018-HIVE-6757.postgres.sql
Removed:
hive/branches/branch-0.13/ql/src/java/parquet/
Modified:
hive/branches/branch-0.13/metastore/scripts/upgrade/derby/upgrade-0.12.0-to-0.13.0.derby.sql
hive/branches/branch-0.13/metastore/scripts/upgrade/mysql/upgrade-0.12.0-to-0.13.0.mysql.sql
hive/branches/branch-0.13/metastore/scripts/upgrade/oracle/upgrade-0.12.0-to-0.13.0.oracle.sql
hive/branches/branch-0.13/metastore/scripts/upgrade/postgres/upgrade-0.12.0-to-0.13.0.postgres.sql
Added:
hive/branches/branch-0.13/metastore/scripts/upgrade/derby/018-HIVE-6757.derby.sql
URL:
http://svn.apache.org/viewvc/hive/branches/branch-0.13/metastore/scripts/upgrade/derby/018-HIVE-6757.derby.sql?rev=1585764&view=auto
==============================================================================
---
hive/branches/branch-0.13/metastore/scripts/upgrade/derby/018-HIVE-6757.derby.sql
(added)
+++
hive/branches/branch-0.13/metastore/scripts/upgrade/derby/018-HIVE-6757.derby.sql
Tue Apr 8 15:44:11 2014
@@ -0,0 +1,19 @@
+UPDATE SDS
+ SET INPUT_FORMAT =
'org.apache.hadoop.hive.ql.io.parquet.MapredParquetInputFormat'
+WHERE
+ INPUT_FORMAT= 'parquet.hive.DeprecatedParquetInputFormat' or
+ INPUT_FORMAT = 'parquet.hive.MapredParquetInputFormat'
+;
+
+UPDATE SDS
+ SET OUTPUT_FORMAT =
'org.apache.hadoop.hive.ql.io.parquet.MapredParquetOutputFormat'
+WHERE
+ OUTPUT_FORMAT = 'parquet.hive.DeprecatedParquetOutputFormat' or
+ OUTPUT_FORMAT = 'parquet.hive.MapredParquetOutputFormat'
+;
+
+UPDATE SERDES
+ SET SLIB='org.apache.hadoop.hive.ql.io.parquet.serde.ParquetHiveSerDe'
+WHERE
+ SLIB = 'parquet.hive.serde.ParquetHiveSerDe'
+;
\ No newline at end of file
Modified:
hive/branches/branch-0.13/metastore/scripts/upgrade/derby/upgrade-0.12.0-to-0.13.0.derby.sql
URL:
http://svn.apache.org/viewvc/hive/branches/branch-0.13/metastore/scripts/upgrade/derby/upgrade-0.12.0-to-0.13.0.derby.sql?rev=1585764&r1=1585763&r2=1585764&view=diff
==============================================================================
---
hive/branches/branch-0.13/metastore/scripts/upgrade/derby/upgrade-0.12.0-to-0.13.0.derby.sql
(original)
+++
hive/branches/branch-0.13/metastore/scripts/upgrade/derby/upgrade-0.12.0-to-0.13.0.derby.sql
Tue Apr 8 15:44:11 2014
@@ -2,5 +2,6 @@
RUN 'hive-txn-schema-0.13.0.derby.sql';
RUN '016-HIVE-6386.derby.sql';
RUN '017-HIVE-6458.derby.sql';
+RUN '018-HIVE-6757.derby.sql';
UPDATE "APP".VERSION SET SCHEMA_VERSION='0.13.0', VERSION_COMMENT='Hive
release version 0.13.0' where VER_ID=1;
Added:
hive/branches/branch-0.13/metastore/scripts/upgrade/mysql/018-HIVE-6757.mysql.sql
URL:
http://svn.apache.org/viewvc/hive/branches/branch-0.13/metastore/scripts/upgrade/mysql/018-HIVE-6757.mysql.sql?rev=1585764&view=auto
==============================================================================
---
hive/branches/branch-0.13/metastore/scripts/upgrade/mysql/018-HIVE-6757.mysql.sql
(added)
+++
hive/branches/branch-0.13/metastore/scripts/upgrade/mysql/018-HIVE-6757.mysql.sql
Tue Apr 8 15:44:11 2014
@@ -0,0 +1,21 @@
+SELECT '<HIVE-6757 Remove deprecated parquet classes from outside of
org.apache package>' AS ' ';
+
+UPDATE SDS
+ SET INPUT_FORMAT =
'org.apache.hadoop.hive.ql.io.parquet.MapredParquetInputFormat'
+WHERE
+ INPUT_FORMAT= 'parquet.hive.DeprecatedParquetInputFormat' or
+ INPUT_FORMAT = 'parquet.hive.MapredParquetInputFormat'
+;
+
+UPDATE SDS
+ SET OUTPUT_FORMAT =
'org.apache.hadoop.hive.ql.io.parquet.MapredParquetOutputFormat'
+WHERE
+ OUTPUT_FORMAT = 'parquet.hive.DeprecatedParquetOutputFormat' or
+ OUTPUT_FORMAT = 'parquet.hive.MapredParquetOutputFormat'
+;
+
+UPDATE SERDES
+ SET SLIB='org.apache.hadoop.hive.ql.io.parquet.serde.ParquetHiveSerDe'
+WHERE
+ SLIB = 'parquet.hive.serde.ParquetHiveSerDe'
+;
\ No newline at end of file
Modified:
hive/branches/branch-0.13/metastore/scripts/upgrade/mysql/upgrade-0.12.0-to-0.13.0.mysql.sql
URL:
http://svn.apache.org/viewvc/hive/branches/branch-0.13/metastore/scripts/upgrade/mysql/upgrade-0.12.0-to-0.13.0.mysql.sql?rev=1585764&r1=1585763&r2=1585764&view=diff
==============================================================================
---
hive/branches/branch-0.13/metastore/scripts/upgrade/mysql/upgrade-0.12.0-to-0.13.0.mysql.sql
(original)
+++
hive/branches/branch-0.13/metastore/scripts/upgrade/mysql/upgrade-0.12.0-to-0.13.0.mysql.sql
Tue Apr 8 15:44:11 2014
@@ -3,6 +3,7 @@ SELECT 'Upgrading MetaStore schema from
SOURCE 015-HIVE-5700.mysql.sql;
SOURCE 016-HIVE-6386.mysql.sql;
SOURCE 017-HIVE-6458.mysql.sql;
+SOURCE 018-HIVE-6757.mysql.sql;
SOURCE hive-txn-schema-0.13.0.mysql.sql;
UPDATE VERSION SET SCHEMA_VERSION='0.13.0', VERSION_COMMENT='Hive release
version 0.13.0' where VER_ID=1;
Added:
hive/branches/branch-0.13/metastore/scripts/upgrade/oracle/018-HIVE-6757.oracle.sql
URL:
http://svn.apache.org/viewvc/hive/branches/branch-0.13/metastore/scripts/upgrade/oracle/018-HIVE-6757.oracle.sql?rev=1585764&view=auto
==============================================================================
---
hive/branches/branch-0.13/metastore/scripts/upgrade/oracle/018-HIVE-6757.oracle.sql
(added)
+++
hive/branches/branch-0.13/metastore/scripts/upgrade/oracle/018-HIVE-6757.oracle.sql
Tue Apr 8 15:44:11 2014
@@ -0,0 +1,19 @@
+UPDATE SDS
+ SET INPUT_FORMAT =
'org.apache.hadoop.hive.ql.io.parquet.MapredParquetInputFormat'
+WHERE
+ INPUT_FORMAT= 'parquet.hive.DeprecatedParquetInputFormat' or
+ INPUT_FORMAT = 'parquet.hive.MapredParquetInputFormat'
+;
+
+UPDATE SDS
+ SET OUTPUT_FORMAT =
'org.apache.hadoop.hive.ql.io.parquet.MapredParquetOutputFormat'
+WHERE
+ OUTPUT_FORMAT = 'parquet.hive.DeprecatedParquetOutputFormat' or
+ OUTPUT_FORMAT = 'parquet.hive.MapredParquetOutputFormat'
+;
+
+UPDATE SERDES
+ SET SLIB='org.apache.hadoop.hive.ql.io.parquet.serde.ParquetHiveSerDe'
+WHERE
+ SLIB = 'parquet.hive.serde.ParquetHiveSerDe'
+;
\ No newline at end of file
Modified:
hive/branches/branch-0.13/metastore/scripts/upgrade/oracle/upgrade-0.12.0-to-0.13.0.oracle.sql
URL:
http://svn.apache.org/viewvc/hive/branches/branch-0.13/metastore/scripts/upgrade/oracle/upgrade-0.12.0-to-0.13.0.oracle.sql?rev=1585764&r1=1585763&r2=1585764&view=diff
==============================================================================
---
hive/branches/branch-0.13/metastore/scripts/upgrade/oracle/upgrade-0.12.0-to-0.13.0.oracle.sql
(original)
+++
hive/branches/branch-0.13/metastore/scripts/upgrade/oracle/upgrade-0.12.0-to-0.13.0.oracle.sql
Tue Apr 8 15:44:11 2014
@@ -3,6 +3,7 @@ SELECT 'Upgrading MetaStore schema from
@015-HIVE-5700.oracle.sql;
@016-HIVE-6386.oracle.sql;
@017-HIVE-6458.oracle.sql;
[email protected];
@hive-txn-schema-0.13.0.oracle.sql;
UPDATE VERSION SET SCHEMA_VERSION='0.13.0', VERSION_COMMENT='Hive release
version 0.13.0' where VER_ID=1;
Added:
hive/branches/branch-0.13/metastore/scripts/upgrade/postgres/018-HIVE-6757.postgres.sql
URL:
http://svn.apache.org/viewvc/hive/branches/branch-0.13/metastore/scripts/upgrade/postgres/018-HIVE-6757.postgres.sql?rev=1585764&view=auto
==============================================================================
---
hive/branches/branch-0.13/metastore/scripts/upgrade/postgres/018-HIVE-6757.postgres.sql
(added)
+++
hive/branches/branch-0.13/metastore/scripts/upgrade/postgres/018-HIVE-6757.postgres.sql
Tue Apr 8 15:44:11 2014
@@ -0,0 +1,21 @@
+SELECT '< HIVE-6757 Remove deprecated parquet classes from outside of
org.apache package >';
+
+UPDATE SDS
+ SET INPUT_FORMAT =
'org.apache.hadoop.hive.ql.io.parquet.MapredParquetInputFormat'
+WHERE
+ INPUT_FORMAT= 'parquet.hive.DeprecatedParquetInputFormat' or
+ INPUT_FORMAT = 'parquet.hive.MapredParquetInputFormat'
+;
+
+UPDATE SDS
+ SET OUTPUT_FORMAT =
'org.apache.hadoop.hive.ql.io.parquet.MapredParquetOutputFormat'
+WHERE
+ OUTPUT_FORMAT = 'parquet.hive.DeprecatedParquetOutputFormat' or
+ OUTPUT_FORMAT = 'parquet.hive.MapredParquetOutputFormat'
+;
+
+UPDATE SERDES
+ SET SLIB='org.apache.hadoop.hive.ql.io.parquet.serde.ParquetHiveSerDe'
+WHERE
+ SLIB = 'parquet.hive.serde.ParquetHiveSerDe'
+;
\ No newline at end of file
Modified:
hive/branches/branch-0.13/metastore/scripts/upgrade/postgres/upgrade-0.12.0-to-0.13.0.postgres.sql
URL:
http://svn.apache.org/viewvc/hive/branches/branch-0.13/metastore/scripts/upgrade/postgres/upgrade-0.12.0-to-0.13.0.postgres.sql?rev=1585764&r1=1585763&r2=1585764&view=diff
==============================================================================
---
hive/branches/branch-0.13/metastore/scripts/upgrade/postgres/upgrade-0.12.0-to-0.13.0.postgres.sql
(original)
+++
hive/branches/branch-0.13/metastore/scripts/upgrade/postgres/upgrade-0.12.0-to-0.13.0.postgres.sql
Tue Apr 8 15:44:11 2014
@@ -3,6 +3,7 @@ SELECT 'Upgrading MetaStore schema from
\i 015-HIVE-5700.postgres.sql;
\i 016-HIVE-6386.postgres.sql;
\i 017-HIVE-6458.postgres.sql;
+\i 018-HIVE-6757.postgres.sql;
\i hive-txn-schema-0.13.0.postgres.sql;
UPDATE "VERSION" SET "SCHEMA_VERSION"='0.13.0', "VERSION_COMMENT"='Hive
release version 0.13.0' where "VER_ID"=1;