ambari-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Qing Chi 79624 <c...@vmware.com>
Subject How to add configurations to specific host to create cluster using blueprint ?
Date Thu, 05 Jun 2014 07:58:25 GMT
Hi guys,
I want to use specific data dir on each host. For example:

Host 1, following is content of hdfs-site.xml on a host.

<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="configuration.xsl"?>
<!-- check for all settings at http://hadoop.apache.org/common/docs/stable/hdfs-default.html
-->
<configuration>
...
<property>
  <name>dfs.data.dir</name>
  <value>/mnt/scsi-36000c297241e2328f0c26ccf28525ada-part1/hadoop/hdfs/data,/mnt/scsi-36000c296928f65c7749de0620b422dde-part1/hadoop/hdfs/data,/mnt/scsi-36000c2970047fad07f4662de91001b8e-part1/hadoop/hdfs/data</value>
  <final>true</final>
</property>
....
</configuration>

Host 2,  following is content of hdfs-site.xml on another host.

<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="configuration.xsl"?>
<!-- check for all settings at http://hadoop.apache.org/common/docs/stable/hdfs-default.html
-->
<configuration>
...
<property>
  <name>dfs.data.dir</name>
  <value>/mnt/scsi-36000c2966300dabe41c0193161330a2c-part1/hadoop/hdfs/data,/mnt/scsi-36000c29ce17ee6c47e1a329791cbbe61-part1/hadoop/hdfs/data,/mnt/scsi-36000c29694c370eb163114067ffed1bb-part1/hadoop/hdfs/data</value>
  <final>true</final>
</property>
....
</configuration>

Values of data dir on all hosts are different. So on this situation how to add configurations
to specific host to create cluster using blueprint? Can somebody give me some help?

Thanks,

-qing


Mime
View raw message