简体   繁体   English

Cloudera 发行版中的 hive-site.xml 在哪里?

[英]Where is the hive-site.xml in Cloudera distribution?

I would like to know where the hive-site.xml file configuration is in a Cloudera distribution.我想知道 hive-site.xml 文件配置在 Cloudera 发行版中的位置。

Mainly because I would like to know where I can find out properties like:主要是因为我想知道在哪里可以找到以下属性:

hive.execution.engine=mr
hive.enforce.bucketing=false
hive.enforce.bucketmapjoin=false
hive.enforce.sorting=false

Maybe because I could want to overwrite some of them.也许是因为我想覆盖其中的一些。

I know I can overwrite them in the Hive shell, but that is only for the current session.我知道我可以在 Hive shell 中覆盖它们,但这仅适用于当前的 session。

Or I could create a.hiverc file to initialize Hive overwriting some properties.或者我可以创建一个 .hiverc 文件来初始化 Hive 覆盖一些属性。

But I would like to know where the properties are in Cloudera distribution.但我想知道这些属性在 Cloudera 发行版中的位置。

I was trying this:我正在尝试这个:

$ cd /
$ sudo find -name hive-site.xml

./etc/impala/conf.dist/hive-site.xml
./etc/spark/conf.dist/hive-site.xml
./etc/hive/conf.dist/hive-site.xml

$ view /etc/impala/conf.dist/hive-site.xml
$ view /etc/spark/conf.dist/hive-site.xml
$ view /etc/hive/conf.dist/hive-site.xml

but in these files I don't see such properties但在这些文件中我没有看到这样的属性

Maybe cloudera is using other properties file.也许 cloudera 正在使用其他属性文件。

May someone help me?有人可以帮助我吗?

Thanks in advance提前致谢

Regards.问候。

The default values for all properties are defined in the source code of Hive.所有属性的默认值在 Hive 的源代码中定义。 The configuration files provide means to override these default values.配置文件提供了覆盖这些默认值的方法。

But if the services are installed using Cloudera Manager, then modify the configurations using the cloudera manager user interface only.但如果服务是使用 Cloudera Manager 安装的,则只能使用 cloudera Manager 用户界面修改配置。 CM persists the configurations in its CM database and any changes made to the configuration files will not be considered. CM 将配置保存在其 CM 数据库中,并且不会考虑对配置文件所做的任何更改。

If the components are manually installed using Cloudera parcels and if you want to override any configuration property, use the corresponding configuration file under /etc/<component>/conf/ .如果组件是使用 Cloudera parcels 手动安装的,并且要覆盖任何配置属性,请使用/etc/<component>/conf/下的相应配置文件。

There used to be a file called hive-default.xml.template (not sure if that file is still being shipped in the package) which had all the hive properties along with their default values.曾经有一个名为hive-default.xml.template的文件(不确定该文件是否仍在包装中),其中包含所有 hive 属性及其默认值。 It was meant only for reference, modifying the values in this file does not take effect.仅供参考,修改此文件中的值不会生效。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM