ambari-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Qing Chi 79624 <c...@vmware.com>
Subject Re: How to add configurations to specific host to create cluster using blueprint ?
Date Fri, 06 Jun 2014 01:52:18 GMT
Hi Jeff,
Thanks a lot for your help.
I think the host_group is the group which includes the same attributes hosts. Maybe there
is a host or more than one in a host_group. So if I want to set configurations for each host.
How to do?
I think it isn't convenient to set configurations to each host when a host_group has many
hosts.For example,
{
  "blueprint" : "multi-node-hdfs-yarn",
  "host_groups" :[
    {
      "name" : "master",
      "hosts" : [
        {
          "fqdn" : "c6401.ambari.apache.org"
        }
      ]
    },
    {
      "name" : "slaves",
      "hosts" : [
        {
          "fqdn" : "c6402.ambari.apache.org"
        },
        {
          "fqdn" : "c6403.ambari.apache.org"
        }
      ]
    }
  ]
}

The host_groups slaves has two hosts. In this case how to set configurations for each host?

From: Jeff Sposetti <jeff@hortonworks.com<mailto:jeff@hortonworks.com>>
Reply-To: <user@ambari.apache.org<mailto:user@ambari.apache.org>>
Date: Thu, 5 Jun 2014 06:25:07 -0700
To: <user@ambari.apache.org<mailto:user@ambari.apache.org>>
Cc: Emma Lin <line@vmware.com<mailto:line@vmware.com>>, Xiaoding Bian <xiaodingbian@vmware.com<mailto:xiaodingbian@vmware.com>>,
John Speidel <jspeidel@hortonworks.com<mailto:jspeidel@hortonworks.com>>
Subject: Re: How to add configurations to specific host to create cluster using blueprint
?

You can set configurations at the blueprint level (to apply to all host_groups) and you can
also set configurations in the host_groups element to set configurations for that host_group.

Will that help? Or will it just mean you will have to have a host_group that you have to apply
per host?

https://cwiki.apache.org/confluence/display/AMBARI/Blueprints#Blueprints-Configurations<https://urldefense.proofpoint.com/v1/url?u=https://cwiki.apache.org/confluence/display/AMBARI/Blueprints%23Blueprints-Configurations&k=oIvRg1%2BdGAgOoM1BIlLLqw%3D%3D%0A&r=XFPetyuh5lGv3twiMNs7nw%3D%3D%0A&m=EfpGl9vWkh%2FuFYOC%2FWIgKw9XBLClivVRI1LFsC2njqs%3D%0A&s=3b6c5134ae1180ec8287000ba557ef4b0030e02634e6e5fccc15feed9f094d67>


On Thu, Jun 5, 2014 at 12:58 AM, Qing Chi 79624 <chiq@vmware.com<mailto:chiq@vmware.com>>
wrote:
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<https://urldefense.proofpoint.com/v1/url?u=http://hadoop.apache.org/common/docs/stable/hdfs-default.html&k=oIvRg1%2BdGAgOoM1BIlLLqw%3D%3D%0A&r=XFPetyuh5lGv3twiMNs7nw%3D%3D%0A&m=EfpGl9vWkh%2FuFYOC%2FWIgKw9XBLClivVRI1LFsC2njqs%3D%0A&s=b8f8fb2e9d43adf43de08a22b58d97c0a0e5ee3eb1bccb6d669e17df5e59f3df>
-->
<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<https://urldefense.proofpoint.com/v1/url?u=http://hadoop.apache.org/common/docs/stable/hdfs-default.html&k=oIvRg1%2BdGAgOoM1BIlLLqw%3D%3D%0A&r=XFPetyuh5lGv3twiMNs7nw%3D%3D%0A&m=EfpGl9vWkh%2FuFYOC%2FWIgKw9XBLClivVRI1LFsC2njqs%3D%0A&s=b8f8fb2e9d43adf43de08a22b58d97c0a0e5ee3eb1bccb6d669e17df5e59f3df>
-->
<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



CONFIDENTIALITY NOTICE
NOTICE: This message is intended for the use of the individual or entity to which it is addressed
and may contain information that is confidential, privileged and exempt from disclosure under
applicable law. If the reader of this message is not the intended recipient, you are hereby
notified that any printing, copying, dissemination, distribution, disclosure or forwarding
of this communication is strictly prohibited. If you have received this communication in error,
please contact the sender immediately and delete it from your system. Thank You.

Mime
View raw message