getting hive configuration from the command line
I wish to retrieve hive configurations from the command line.
Is there any utility like hadoop getconf -confKey for Hive?
i.e.: I wish to retrieve the warehouse dir from hive.xml, get the value and then exit.
Solution 1:
Use the set
command, which will print out the current configuration if not provided a value for the key
hive -e 'set hive.metastore.warehouse.dir;'