I want to run a hive query in hive command and I want to make it faster, so I ran:
hive:messages> set mapred.job.priority = VERY_HIGH; hive:messages> set
hi = 1;
but I found actually I can set any string to be anything in hive so I wonder is there a way to check all the settings I have made?
Let's connect to hive from the command line. Login into CloudxLab Linux console. Type Hive and wait for Hive command-line interface - CLI to appear. By default, the database with the name "default" is the current database in the hive shell.
Hive comes with various “One Shot” commands that a user can use through Hive CLI(Command Line Interface) without entering the Hive shell to execute one or more than one query separated by a semicolon.
To list all the settings available in the current Hive session,
hive> SET;
This will list all the
set
, define
, hivevar
.It is not possible to filter only a specific set of variables. But to get the value of a particular configuration/variable, use the configuration name as the argument to SET
hive> SET zzzz=123;
hive> SET zzzz;
zzzz=123;
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With