歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
您现在的位置: Linux教程網 >> UnixLinux >  >> Linux基礎 >> 關於Linux

RHCS做hadoop的nn和jt的HA時的資源書寫格式

<?xml version="1.0"?>
<cluster config_version="10" name="HDP_NN_Cluster">
    <clusternodes>
        <clusternode name="lab5.mos.com" nodeid="1">
            <fence>
                <method name="1">
                    <device name="Manual" />
                </method>
            </fence>
        </clusternode>
        <clusternode name="lab6.mos.com" nodeid="2">
            <fence>
                <method name="1">
                    <device name="Manual" />
                </method>
            </fence>
        </clusternode>
    </clusternodes>
    <cman expected_votes="1" two_node="1" />
    <fencedevices>
        <fencedevice agent="fence_manual" name="Manual" />
    </fencedevices>
    <rm log_level="7">
        <failoverdomains>
            <failoverdomain name="HANameNode" ordered="1" restricted="1">
                <failoverdomainnode name="lab5.mos.com" priority="1" />
                <failoverdomainnode name="lab6.mos.com" priority="1" />
            </failoverdomain>
        </failoverdomains>
        <service domain="HANameNode" name="NameNodeService" recovery="restart">
            <ip address="10.1.6.4" sleeptime="10">
                <netfs export="/nfs_dir" force_unmount="1" fstype="nfs" host="10.1.6.2" mountpoint="/storage/nfs" name="HDFS data" options="vers=3,rw,soft,nolock">
                    <script __failure_expire_time="100" __independent_subtree="1" __max_failures="2" __max_restarts="2" __restart_expire_time="600" file="/etc/init.d/snmpd" name="Snmpd">
                        <script __failure_expire_time="100" __independent_subtree="1" __max_failures="2" __max_restarts="2" __restart_expire_time="600" file="/etc/init.d/gmond" name="Ganglia">
                            <script __failure_expire_time="100" __independent_subtree="1" __max_failures="2" __max_restarts="2" __restart_expire_time="600" file="/etc/init.d/ambari-agent" name="Ambari-agent">
                                <script __failure_expire_time="100" __independent_subtree="1" __max_failures="2" __max_restarts="2" __restart_expire_time="600" file="/etc/init.d/hdp-gmond" name="HDP-Gmond">
                                    <hadoop __independent_subtree="1" __max_restarts="10" __restart_expire_time="600" boottime="10000" daemon="namenode" name="NameNode Process" path="/" pid="/var/run/hadoop/hdfs/hadoop-hdfs-namenode.pid" probetime="10000" stoptime="10000" url="http://10.1.6.4:50070/dfshealth.jsp">
                                        <hadoop __independent_subtree="1" __max_restarts="20" __restart_expire_time="600" boottime="60000" daemon="jobtracker" name="JobTracker Process" probetime="20000" stoptime="30000" url="http://10.1.6.4:50030/" waitfs="true">
                                            <hadoop __independent_subtree="1" __max_restarts="20" __restart_expire_time="600" boottime="60000" daemon="historyserver" name="HistoryServer Process" probetime="20000" stoptime="30000" url="http://10.1.6.4:51111/" waitfs="true" />
                                        </hadoop>
                                    </hadoop>
                                </script>
                            </script>
                        </script>
                    </script>
                </netfs>
            </ip>
        </service>
    </rm>
</cluster>

參考至:http://docs.hortonworks.com/HDPDocuments/HDP1/HDP-1.3.2/bk_hdp1-system-admin-guide/content/ch_hdp1-high-availability-for-hadoop.html

 

Copyright © Linux教程網 All Rights Reserved