What is the hive command to see the value of hive.exec.dynamic.partition

▼魔方 西西 提交于 2019-12-21 12:41:42

问题


We know that set command is used to set some values for properties

 hive> SET hive.exec.dynamic.partition=true;
 hive> SET hive.exec.dynamic.partition.mode=non-strict;

But how do we read the current value of above property

I tried the below commands, its not working

 get hive.exec.dynamic.partition
 show hive.exec.dynamic.partition

Could someone help on getting the correct hive command to read the current value of those above properties .


回答1:


The same SET command but without value assignment will print current value:

hive> SET hive.exec.dynamic.partition;  

Output:

hive.exec.dynamic.partition=true

SET command without variable prints a list of configuration variables that are overridden.

See the documentation on Hive CLI and Beeline




回答2:


To check property: hive.exec.dynamic.partition

Run below command SET hive.exec.dynamic.partition; SET hive.exec.dynamic.partition.mode;

and you can also visit below link https://cwiki.apache.org/confluence/display/Hive/Configuration+Properties#ConfigurationProperties-HiveConfigurationProperties



来源:https://stackoverflow.com/questions/38713625/what-is-the-hive-command-to-see-the-value-of-hive-exec-dynamic-partition

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!