分享

Cloudera hadoop配置文件地址和修改配置属性方法

desehawk 发表于 2015-1-6 13:07:27 [显示全部楼层] 只看大图 回帖奖励 阅读模式 关闭右栏 5 213405
本帖最后由 desehawk 于 2015-1-6 13:07 编辑
问题导读
1.cloudera 的配置文件路径默认在什么位置?
2.如何通过cloudera manager web UI修改配置文件?







配置文件地址:
Hadoop: /etc/hadoop/conf
hbase: /etc/hadoop/conf
hive: /etc/hive/conf

使用cloudera manager web UI 修改hadoop .xml文件属性方法:

For Cloudera the best way to push this configuration to the nodes is to use the Cloudera manager GUI.


1.png
From the Cloudera web page, click on the HDFS service under Status to open the HDFS service.
2.png
Click Configuration, and choose View and Edit
3.png
On the left panel expand Service-Wide and click advance
4.png
Click on Cluster-wide Configuration Safety Valve for core-site.xml
Enter the setting from Table above

5.png
Settings entered into core-site safety valve
6.png
At the top right of the page, Click Save Changes
7.png
Go back to the Cloudera Manager Home screen. Using the drop down stop the HDFS service.
8.png
Using the drop down next to the Status, deploy the client configuration
g
9.png
Using the drop down, restart the Mapreduce service.


10.png


Check that the nodes have received the correct configuration. From the CLI on a node do a grep on the core-site.xml and search for HSK
cat /etc/hadoop/conf.cloudera.hdfs1/core-site.xml |grep HSK


Next Upload the Java ViPR client JAR file to a client using WinSCP and copy it to the Hadoop Classpath on all Hadoop nodes.


11.png

On the first node where you have uploaded the ViPr client copy it to the Cloudera Classpath
cp hadoop-2.0.x-alpha-viprfs-1.0.1.jar /opt/cloudera/parcels/CDH-4.5.0-1.cdh4.5.0.p0.30/lib/hadoop/lib


12.png

Copy it to all the other nodes in your cluster using the scp command. Do this for all hosts.


13.png


Validate that the connection is working with a hadoop list command. First using the ViPR URL then just a normal Hadoop list:



修改Hive配置文件路径的方法: hive1->configuration->view and edit->default->HiveServer2->Advanced

如果想对hive-site.xml的修改存储在Cloudera Manager,则可通过上面的方法选择Hive Service Configuration Safety Valve for hive-site.xml来添加属性。
如果想要将所添加的属性,出现在服务器的/etc/hive/conf/hive-site.xml文件中,则可以hive1->configuration->view and edit->default->Gateway->Advanced->Hive Client Configuration Safety Valve for hive-site.xml
.
Be sure to restart Hive, restart any dependent services (Hue and Impala), and deploy client configs after making a configuration change.




已有(5)人评论

跳转到指定楼层
roywang1024 发表于 2015-4-15 20:52:33
请问怎么修改hue.ini的配置文件呢?
例如librdbms中的databases可以配置多个,nick_name,engine都一个名字的,这个在CM中的safety_value是怎么配置呢?
回复

使用道具 举报

yongjian3311 发表于 2015-4-16 09:37:06
记得之前我找了很久,不过我还是自己动手找到了。
回复

使用道具 举报

caicai 发表于 2015-10-30 15:08:15
都是大牛,给点资料呗
回复

使用道具 举报

wangzkui 发表于 2017-1-17 11:03:00
CDH5好像没得你这些选项了呀
回复

使用道具 举报

77925978 发表于 2017-7-20 11:09:15
新人报道,楼主,真正的好人呐!!!!
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关闭

推荐上一条 /2 下一条