Member since
12-23-2016
9
Posts
1
Kudos Received
0
Solutions
02-07-2017
01:02 PM
Thank you all for participation! I mentioned that if I have /var/lib/ambari-server/resources/common-services/CATALOGER/<version>/metainfo.xml
before adding service via REST I couldn't install my CATALOGER service 😞 The way, how I install my service is here: https://cwiki.apache.org/confluence/display/AMBARI/Adding+a+New+Service+to+an+Existing+Cluster But before this I copied necessary xml and python script to /var/lib/ambari-server/resources/stacks/HDP/2.5/services/CATALOGER/ So maybe problem is in the way how I install my service?
... View more
02-07-2017
08:31 AM
Thanks a lot to
Jay SenSharma - you was wright - there were some special symbols in my curl 😞
Now I got in log next error:
07 Feb 2017 08:19:01,401 WARN [ambari-client-thread-28] AbstractResourceProvider:506 - Can not determine request operation level. Operation level property should be specified for this request.
07 Feb 2017 08:19:01,401 INFO [ambari-client-thread-28] AbstractResourceProvider:516 - Received a updateComponent request: [clusterName=Sandbox, serviceName=CATALOGER, componentName=Sandbox, desiredState=null, recoveryEnabled=null, componentCategory=null]
My JSON to sent is:
'{"ServiceComponent{Info" : {"recovery_enabled" : "true"}}'
Could you please advice how to fix this error Thanks! ____________________________________________________________________________________ For information - configuration of my service before PUT : { "href" : "http://..:8080/api/v1/clusters/Sandbox/services/CATALOGER/components/CATALOG_HIVE",
"ServiceComponentInfo" : {
"category" : "SLAVE",
"cluster_name" : "Sandbox",
"component_name" : "CATALOG_HIVE",
"display_name" : "Catalog Hive",
"init_count" : 0,
"install_failed_count" : 0,
"installed_count" : 1,
"recovery_enabled" : "false",
"service_name" : "CATALOGER",
"started_count" : 0,
"state" : "STARTED",
"total_count" : 1,
"unknown_count" : 0
},
"host_components" : [
{
"href" : "http://..:8080/api/v1/clusters/Sandbox/hosts/sandbox.hortonworks.com/host_components/CATALOG_HIVE",
"HostRoles" : {
"cluster_name" : "Sandbox",
"component_name" : "CATALOG_HIVE",
"host_name" : "sandbox.hortonworks.com"
}
}
]
}
... View more
02-06-2017
03:39 PM
Hi all
I am new in Hodooping and work now with Sandbox version 2.5.
I implement new service for Ambari and use docker-compose to start Hortonworks Sandbox with newly installation of my service.
I mentioned, that after restart my service doesn't start.
I tried all suggestions from
https://community.hortonworks.com/articles/71748/how-do-i-enable-automatic-restart-recovery-of-serv.html except 'Blueprint'
The API
curl -u admin: -H "X-Requested-By: ambari"-X PUT 'http://localhost:8080/api/v1/clusters/ /components?ServiceComponentInfo/component_name.in(HBASE_REGIONSERVER)'-d '{"ServiceComponentInfo" : {"recovery_enabled":"true"}}'
returns
{ "status": 500,
"message": "Server Error"}
I tried to update Ambari configuration using update servicecomponentdesiredstate set recovery_enabled = 1 where component_name in ('my_comp_name'); but this didn't help also. Could someone share knowledge how I can fix this issue with Blueprint (or other ideas) ? Thanks in advance!
... View more
Labels:
- Labels:
-
Apache Ambari
01-31-2017
03:17 PM
I got { "status": 500,
"message": "Server Error"
} at 2.5 HDP when try this solution
... View more
01-31-2017
09:25 AM
curl -u admin: -H "X-Requested-By: ambari"-X PUT 'http://localhost:8080/api/v1/clusters/ /components?ServiceComponentInfo/component_name.in(HBASE_REGIONSERVER)'-d '{"ServiceComponentInfo" : {"recovery_enabled":"true"}}' { "status": 500,
"message": "Server Error"
}
... View more
01-31-2017
08:22 AM
Thank you for answer, but it don't work. I am getting after PUT: {
"status": 500,
"message": "Server Error"
}
... View more
01-30-2017
03:42 PM
I found that it is possible to use some script to start all Ambari services after node's reboot (see https://community.hortonworks.com/articles/34747/ambari-admin-utility.html). Also I found that from version 2.4 "recovery mode" from UI, so : curl -u admin:admin -H "X-Requested-By: ambari" -X PUT http://c6401.ambari.apache.org:8080/api/v1/clusters/testcluster/components -d '{"RequestInfo": {"query": "ServiceComponentInfo/component_name.in(ZOOKEEPER_CLIENT,ZOOKEEPER_SERVER)"} , "ServiceComponentInfo" : {"recovery_enabled":"true"}}' doesn't work. It is possible to use Blueprint to make needed changes in configuration on existed cluster? Could someone provide examples, please, if possible ? Thanks in advance!
... View more
Labels:
- Labels:
-
Apache Ambari
01-27-2017
04:19 PM
Could you please provide examples according to : < 2. You can use ambari blueprint to start and stop the services.> Thanks
... View more
12-23-2016
09:28 AM
1 Kudo
Hi all! I am new in all this stuff. I am using the latest Sandbox. I need to start Spark2 service by default. I stopped Spark 1.6 in Ambari (via web interface) and started Spark2 instead. After that I commit changes to Docker container. But after restarting - I have Spark 1.6 started again 😞 The same things with my CPU and memory settings. Could you please guide me to point where I can find settings for Ambari in some configuration file (or something like that). Thanks a lot in advance!
... View more
Labels:
- Labels:
-
Apache Ambari