incubator-ambari-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From YingZhu <guyanli...@126.com>
Subject Re:Re: Re: How to monitor added service in Ambari stack?
Date Mon, 08 Jul 2013 05:21:10 GMT
Hello Siddharth,
I have changed "config" to "desired_configs" but get the same error:
status: 400 message: UnsupportedException: The properties [desired_configs/mdss] specified
in the request or predicate are not supported for the resource type Cluster.

Thanks,
Ying Zhu

At 2013-07-05 23:40:46,"Siddharth Wagle" <swagle@hortonworks.com> wrote:

Hello Ying,


Could you please provide the API call made for Step 4?
You might have to change "config" to "desired_configs"

Example:
curl -u admin:admin -i -X PUT -d '{"desired_configs": {"core-site": "version1363902625" }}'
http://<cluster-name>:8080/api/v1/clusters/c1


Feel free to leave comments or update the wiki page.


On Step 6, the exception suggests that the API call is trying to Create a service that is
already installed. You can call this API to get the current state of the service,

http://<ambari-server-host>:8080/api/v1/clusters/<cluster-name>/services/<service-name>



Best Regards,

Sid




On Fri, Jul 5, 2013 at 3:35 AM, YingZhu <guyanlizhu@126.com> wrote:


Hello Satish,
      Actually I broke down the work of adding service to ambari into two pieces, the client
side(writing the essential puppet ant python scripts) was handled to another guy in the team
and I'm trying to implement the server side, the previous mail was posted for him. However
after I finished the following steps I still can not add service to the server side, the ambari
version I'm using is 1.2.3.7-1, os is CentOS 6.3.
1. Add a new Role to Role.java, e.g. MDSS, and recompile the server side's jar package. 
2. Create the new service's metainfo.xml and configuration files in /var/lib/ambari-server/resources/stacks.

3. Restart ambari server using the jar package in step 1, and follow exactly the instructions
in this page:
https://cwiki.apache.org/confluence/display/AMBARI/Adding+a+New+Service+to+an+Existing+Cluster
Here was the problem:
I successfully passed step 1,2,3 but failed on step 4, the error message was:
status: 400 message: UnsupportedException: The properties [config/mdss] specified in the request
or predicate are not supported for the resource type Cluster.
Then I chose to skip step 4 but on step 6 I failed again, the error message was:
status: 400 message: Invalid desired state only INIT state allowed during creation, providedDesiredState
= INSTALLED.
I'm wondering if anyone on this list has successfully add service to ambari, if so please
show me some tips on it?


Thanks,
          Ying Zhu


At 2013-07-04 02:24:40,"Satish Abburi" <satish.abburi@gmail.com> wrote:

Hi Ying, are you able to successfully add a custom service to Ambari stack and install/configure
this? We also have the similar requirement and seeing some null pointers…any tips are appreciated.


Thanks,
Satish



On Tue, Jul 2, 2013 at 11:08 PM, Mahadev Konar <mahadev@hortonworks.com> wrote:
Hi Ying,
 Thanks for looking into Ambari. On the monitoring side the doc is a little incomplete. You
can take a look at how hadoop works and you can replicate it with the service you are adding
for now unless Sid/Tom have sometime to update the doc.


thanks
mahadev


On Tue, Jul 2, 2013 at 5:38 AM, YingZhu <guyanlizhu@126.com> wrote:

Hello list,
      I'm working on adding new services to Ambari stack according to this guide 
https://cwiki.apache.org/confluence/display/AMBARI/Adding+a+New+Service+as+part+of+the+Stack+Definition
But unfortunately it lacks the steps about how to enable monitoring capabilities for the newly
added services using 
ganglia. Is there any clue on how can I do this? Thanks in advance.


Ying Zhu














Mime
View raw message