[英]Where is the hive-site.xml in Cloudera distribution?
我想知道 hive-site.xml 文件配置在 Cloudera 發行版中的位置。
主要是因為我想知道在哪里可以找到以下屬性:
hive.execution.engine=mr
hive.enforce.bucketing=false
hive.enforce.bucketmapjoin=false
hive.enforce.sorting=false
也許是因為我想覆蓋其中的一些。
我知道我可以在 Hive shell 中覆蓋它們,但這僅適用於當前的 session。
或者我可以創建一個 .hiverc 文件來初始化 Hive 覆蓋一些屬性。
但我想知道這些屬性在 Cloudera 發行版中的位置。
我正在嘗試這個:
$ 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
但在這些文件中我沒有看到這樣的屬性
也許 cloudera 正在使用其他屬性文件。
有人可以幫助我嗎?
提前致謝
問候。
所有屬性的默認值在 Hive 的源代碼中定義。 配置文件提供了覆蓋這些默認值的方法。
但如果服務是使用 Cloudera Manager 安裝的,則只能使用 cloudera Manager 用戶界面修改配置。 CM 將配置保存在其 CM 數據庫中,並且不會考慮對配置文件所做的任何更改。
如果組件是使用 Cloudera parcels 手動安裝的,並且要覆蓋任何配置屬性,請使用/etc/<component>/conf/
下的相應配置文件。
曾經有一個名為hive-default.xml.template
的文件(不確定該文件是否仍在包裝中),其中包含所有 hive 屬性及其默認值。 僅供參考,修改此文件中的值不會生效。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.