ambari-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Anfernee Xu <anfernee...@gmail.com>
Subject Re: stuck in historyServer installation
Date Fri, 21 Mar 2014 03:32:37 GMT
Thanks for your response, I followed the steps, but encounter an error when
applying configuration



sh-4.1# /var/lib/ambari-server/resources/scripts/configs.sh  set slc05eqg
TIE_DC global ganglia_conf_dir /etc/ganglia/hdp
########## Performing 'set' ganglia_conf_dir:/etc/ganglia/hdp on
(Site:global, Tag:version1)
########## PUTting json into: doSet_version1395371752000.json
########## NEW Site:global, Tag:version1395371752000

sh-4.1# /var/lib/ambari-server/resources/scripts/configs.sh  set slc05eqg
TIE_DC global ganglia_runtime_dir /var/run/ganglia/hdp
########## Performing 'set' ganglia_runtime_dir:/var/run/ganglia/hdp on
(Site:global, Tag:version1395371752000)
########## Config found. Skipping origin value
########## PUTting json into: doSet_version1395371832000.json
########## NEW Site:global, Tag:version1395371832000


sh-4.1# /var/lib/ambari-server/resources/scripts/configs.sh  set slc05eqg
TIE_DC global gmetad_user xinx
########## Performing 'set' gmetad_user:xinx on (Site:global,
Tag:version1395371832000)
########## Config found. Skipping origin value
########## PUTting json into: doSet_version1395371852000.json
########## NEW Site:global, Tag:version1395371852000


sh-4.1# /var/lib/ambari-server/resources/scripts/configs.sh  set slc05eqg
TIE_DC global gmond_user xinx
########## Performing 'set' gmond_user:xinx on (Site:global,
Tag:version1395371852000)
########## Config found. Skipping origin value
########## PUTting json into: doSet_version1395371873000.json
########## NEW Site:global, Tag:version1395371873000


sh-4.1# /var/lib/ambari-server/resources/scripts/configs.sh  set slc05eqg
TIE_DC global rrdcached_base_dir /var/lib/ganglia/rrds
########## Performing 'set' rrdcached_base_dir:/var/lib/ganglia/rrds on
(Site:global, Tag:version1395371873000)
########## PUTting json into: doSet_version1395371922000.json
########## NEW Site:global, Tag:version1395371922000


### Apply configuration
sh-4.1# curl -u admin:admin -H "X-Requested-By:ambari" -i -X POST -d
'{"Clusters": {"desired_configs": { "type": "global", "tag"
:"version1395371922000" }}}' http://slc05eqg:8080/api/v1/clusters/TIE_DC
HTTP/1.1 400 Bad Request
Server: Jetty(7.6.7.v20120910)
Expires: Thu, 01 Jan 1970 00:00:00 GMT
Set-Cookie: AMBARISESSIONID=18ppjcrarhp3wrk9polzxpulh;Path=/
Content-Type: text/plain
Content-Length: 98
Proxy-Connection: Keep-Alive

{
  "status" : 400,
  "message" : "Stack information should be provided when creating a cluster"
}sh-4.1# curl -u admin:admin -H "X-Requested-By:ambari" -i -X POST -d
'{"Clusters": {"desired_configs": { "type": "global", "tag"
:"version1395371922000" }}}' http://slc05eqg:8080/api/v1/clusters/TIE_D
HTTP/1.1 400 Bad Request
Server: Jetty(7.6.7.v20120910)
Expires: Thu, 01 Jan 1970 00:00:00 GMT
Set-Cookie: AMBARISESSIONID=t8dkubedmm46e26n5v901w14;Path=/
Content-Type: text/plain
Content-Length: 98
Proxy-Connection: Keep-Alive

{
  "status" : 400,
  "message" : "Stack information should be provided when creating a cluster"
}



On Thu, Mar 20, 2014 at 6:01 PM, Sumit Mohanty <smohanty@hortonworks.com>wrote:

> 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 <anfernee.xu@gmail.com>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 <smohanty@hortonworks.com>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 <smohanty@hortonworks.com
>>> > 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 <anfernee.xu@gmail.com>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.
>



-- 
--Anfernee

Mime
View raw message