Hive Pre-Upgrade Tool Command Help
The pre-upgrade tool command supports a few options that you can consider using while running it. Take a look at the output of the help command to see all the options.
-d <database regex>
Regular expressions to define databases. Limits the scope of the tool.
Do not use this option unless you want to run the pre-upgrade tool command in Ambari instead of on the Beeline command line. Using Beeline instead of this option is strongly recommended. This option automatically executes the equivalent of the generated commands.
Use this option to specify the location to write the scripts generated by the pre-upgrade tool.
-t <table regex>
Regular expressions to define tables. Limits the scope of the tool.
Number of the thread pool.
If there is a large number of tables that need to be compacted, run the tool in a parallel mode with the -tn option. This controls the number of threads used to scan tables.
You can append
--help to the command to see all command options. For
java -Djavax.security.auth.useSubjectCredsOnly=false -cp /usr/hdp/184.108.40.206-292/hive2/lib//*:/usr/hdp/current/hive2/lib/:/usr/hdp/current/hadoop-client/*:/usr/hdp/current/hadoop/lib/:/usr/hdp/current/hadoop-mapreduce/:/usr/hdp/current/hadoop-mapreduce/lib/:/usr/hdp/current/hadoop-hdfs/:/usr/hdp/current/hadoop-hdfs/lib/*:/usr/hdp/current/hadoop/etc/hadoop/:/tmp/hive-pre-upgrade-220.127.116.11.1.0.258-3.jar:/usr/hdp/current/hive/conf/conf.server org.apache.hadoop.hive.upgrade.acid.PreUpgradeTool -\-help