Hello Siddharth,
The API I made for step 4 is
curl -u admin:admin -i -X PUT -d '{"config": {"mdss": "version1363902629" }}' 
http://192.168.0.225:8080/api/v1/clusters/tank

I have used the api you provided and it output as following:

"ServiceInfo" : {"cluster_name":"tank", "state":"INIT", "service_name":"MDSS", 
"desired_configs": {}}

As far as I can see the newly added service is in the state INIT and the api 
calls in step 6 try to bring its state to INSTALLED and
STARTED, but failed. Am I right and what should I do next? Any tips are useful.

Thanks,
Ying Zhu

At 2013-07-05 23:40:46,"Siddharth Wagle" <[email protected]> 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 <[email protected]> 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" <[email protected]> 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 <[email protected]> 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 <[email protected]> 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














Reply via email to