-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/14170/
-----------------------------------------------------------
Review request for hive, Ashutosh Chauhan, Brock Noland, and Thejas Nair.
Bugs: HIVE-5301
https://issues.apache.org/jira/browse/HIVE-5301
Repository: hive-git
Description
-------
Schema tool to initialize and migrate hive metastore schema
- Extract the metastore connection details from hive configuration
- the target version is extracted from binary and metastore if possible,
optionally can be specified as argument
- determine the scripts needs to be executed for the initialization or upgrade
- handle DB nested scripts
- execute the required scripts using beeline
Diffs
-----
beeline/src/java/org/apache/hive/beeline/BeeLine.java 4c6eb9b
beeline/src/java/org/apache/hive/beeline/HiveSchemaHelper.java PRE-CREATION
beeline/src/java/org/apache/hive/beeline/HiveSchemaTool.java PRE-CREATION
beeline/src/test/org/apache/hive/beeline/src/test/TestSchemaTool.java
PRE-CREATION
bin/ext/schemaTool.sh PRE-CREATION
bin/schematool PRE-CREATION
build-common.xml ad5ac23
build.xml 3e87163
Diff: https://reviews.apache.org/r/14170/diff/
Testing
-------
Added unit tests. Manually tested various options using derby and MySQL.
Thanks,
Prasad Mujumdar