public class UpgradeTool
extends Object
A new type of transactional tables was added in 3.0 - insert-only tables. These
tables support ACID semantics and work with any Input/OutputFormat. Any Managed tables may
be made insert-only transactional table. These tables don't support Update/Delete/Merge commands.
In postUpgrade mode, Hive 3.0 jars/hive-site.xml should be on the classpath. This utility will
find all the tables that may be made transactional (with ful CRUD support) and generate
Alter Table commands to do so. It will also find all tables that may do not support full CRUD
but can be made insert-only transactional tables and generate corresponding Alter Table commands.
Note that to convert a table to full CRUD table requires that all files follow a naming
convention, namely 0000N_0 or 0000N_0_copy_M, N >= 0, M > 0. This utility can perform this
rename with "execute" option. It will also produce a script (with and w/o "execute" to
perform the renames).
"execute" option may be supplied in both modes to have the utility automatically execute the
equivalent of the generated commands
"location" option may be supplied followed by a path to set the location for the generated
scripts.
See also org.apache.hadoop.hive.upgrade.acid.PreUpgradeTool for steps which may be necessary to
perform before upgrading to Hive 3.