Which version of Ambari are you using? https://cwiki.apache.org/confluence/display/AMBARI/Adding+a+New+Service+to+an+Existing+Clusterhas the steps using API to add a service.
The detail you have to take care is to add the necessary configs for the service being added. Look at the properties that ganglia requires at - https://git-wip-us.apache.org/repos/asf/ambari/repo?p=ambari.git;a=blob;f=ambari-server/src/main/resources/stacks/HDP/2.0.6/services/GANGLIA/configuration/global.xml;h=49d38ae660fbfc6c9faad9ed7a6a5b99382948d6;hb=trunk. These configurations should be added to config type "global". Refer to https://cwiki.apache.org/confluence/display/AMBARI/Modify+configurationsfor details on how to add/modify config. In the next release you can add services through the Web front where the UI guides you regarding the configuration options. -Sumit On Thu, Mar 20, 2014 at 5:41 PM, Anfernee Xu <[email protected]> wrote: > Thanks, it works now. > > BTW, how can I add one more service to the existing cluster, for instance > I want to add Ganglia? > > Thanks > > > On Thu, Mar 20, 2014 at 5:32 PM, Sumit Mohanty > <[email protected]>wrote: > >> Try running "'/usr/bin/yum -y install hadoop-yarn" as the same user as >> ambari-agent ensure it succeeds. >> >> >> On Thu, Mar 20, 2014 at 5:14 PM, Sumit Mohanty >> <[email protected]>wrote: >> >>> These could be the reason: >>> useradd: Can't get unique system GID (no more available GIDs) >>> useradd: can't create group >>> >>> See if >>> http://superuser.com/questions/666505/creating-new-user-using-useradd-but-fails-since-its-unable-to-create-group-in-osolves >>> it? >>> >>> >>> On Thu, Mar 20, 2014 at 4:55 PM, Anfernee Xu <[email protected]>wrote: >>> >>>> Hi, >>>> >>>> I followed the instruction mentioned in >>>> http://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.0.9.1/bk_using_Ambari_book/content/ambari-chap1-1.html, >>>> my goal is evaluating the single host deployment before put it into >>>> production. >>>> >>>> I have got Ambari server/agent running and got some >>>> components(datanode/client) installed without problem, but keep failing at >>>> historyserver installation with below error. >>>> >>>> BTW, because my environment is kind of restricted by my IT, so I used >>>> my local account/group for all service user/group. >>>> >>>> Thanks for your help. >>>> >>>> >>>> stdout: >>>> >>>> notice: Finished catalog run in 0.14 seconds >>>> notice: /Stage[1]/Hdp::Snmp/Exec[snmpd_autostart]/returns: executed >>>> successfully >>>> notice: >>>> /Stage[1]/Hdp::Snappy::Package/Hdp::Snappy::Package::Ln[32]/Hdp::Exec[hdp::snappy::package::ln >>>> 32]/Exec[hdp::snappy::package::ln 32]/returns: executed successfully >>>> err: >>>> /Stage[2]/Hdp-yarn::Initialize/Hdp-yarn::Package[yarn-common]/Hdp::Package[yarn-common]/Hdp::Package::Process_pkg[yarn-common]/Package[hadoop-yarn]/ensure: >>>> change from absent to present failed: Execution of '/usr/bin/yum -d 0 -e 0 >>>> -y install hadoop-yarn' returned 1: Error in PREIN scriptlet in rpm package >>>> hadoop-yarn-2.2.0.2.0.6.0-102.el6.x86_64 >>>> useradd: Can't get unique system GID (no more available GIDs) >>>> useradd: can't create group >>>> error: %pre(hadoop-yarn-2.2.0.2.0.6.0-102.el6.x86_64) scriptlet failed, >>>> exit status 4 >>>> error: install: %pre scriptlet failed (2), skipping >>>> hadoop-yarn-2.2.0.2.0.6.0-102.el6 >>>> >>>> notice: >>>> /Stage[2]/Hdp-yarn::Initialize/Hdp-yarn::Package[yarn-common]/Hdp::Package[yarn-common]/Hdp::Package::Process_pkg[yarn-common]/Anchor[hdp::package::yarn-common::end]: >>>> Dependency Package[hadoop-yarn] has failures: true >>>> notice: >>>> /Stage[2]/Hdp-yarn::Initialize/Hdp-yarn::Package[yarn-common]/Anchor[hdp-yarn::package::yarn-common::end]: >>>> Dependency Package[hadoop-yarn] has failures: true >>>> notice: >>>> /Stage[2]/Hdp-yarn::Initialize/Hdp::Configfile[/etc/security/limits.d/yarn.conf]/File[/etc/security/limits.d/yarn.conf]: >>>> Dependency Package[hadoop-yarn] has failures: true >>>> notice: >>>> /Stage[2]/Hdp-yarn::Initialize/Hdp-yarn::Generate_common_configs[yarn-common-configs]/Hdp::Configfile[/etc/hadoop/conf/hadoop-env.sh]/File[/etc/hadoop/conf/hadoop-env.sh]: >>>> Dependency Package[hadoop-yarn] has failures: true >>>> notice: >>>> /Stage[2]/Hdp-yarn::Initialize/Hdp-yarn::Generate_common_configs[yarn-common-configs]/Hdp::Configfile[/etc/hadoop/conf/yarn-env.sh]/File[/etc/hadoop/conf/yarn-env.sh]: >>>> Dependency Package[hadoop-yarn] has failures: true >>>> notice: >>>> /Stage[2]/Hdp-yarn::Initialize/Hdp-yarn::Generate_common_configs[yarn-common-configs]/Configgenerator::Configfile[capacity-scheduler]/File[/etc/hadoop/conf/capacity-scheduler.xml]: >>>> Dependency Package[hadoop-yarn] has failures: true >>>> notice: >>>> /Stage[2]/Hdp-yarn::Initialize/Hdp-yarn::Generate_common_configs[yarn-common-configs]/Configgenerator::Configfile[core-site]/File[/etc/hadoop/conf/core-site.xml]: >>>> Dependency Package[hadoop-yarn] has failures: true >>>> notice: >>>> /Stage[2]/Hdp-yarn::Initialize/Hdp-yarn::Generate_common_configs[yarn-common-configs]/Configgenerator::Configfile[yarn-site]/File[/etc/hadoop/conf/yarn-site.xml]: >>>> Dependency Package[hadoop-yarn] has failures: true >>>> notice: >>>> /Stage[2]/Hdp-yarn::Initialize/Hdp-yarn::Generate_common_configs[yarn-common-configs]/Configgenerator::Configfile[mapred-site]/File[/etc/hadoop/conf/mapred-site.xml]: >>>> Dependency Package[hadoop-yarn] has failures: true >>>> notice: >>>> /Stage[2]/Hdp-yarn::Initialize/Anchor[hdp-yarn::initialize::end]: >>>> Dependency Package[hadoop-yarn] has failures: true >>>> notice: Finished catalog run in 24.29 seconds >>>> >>> >>> >> >> 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. >> > > > > -- > --Anfernee > -- 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.
