Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

How to develop ambari-server, add new features

Highlighted

How to develop ambari-server, add new features

Explorer

How to develop ambari-server, add new features

how to run ambari-server main class

8 REPLIES 8
Highlighted

Re: How to develop ambari-server, add new features

Super Mentor

@shi cheng

- You can refer to the Ambari Development Guidelines:https://cwiki.apache.org/confluence/display/AMBARI/Ambari+Development

- If you want to develop your own custom services/stack then you can also refer to:

https://cwiki.apache.org/confluence/display/AMBARI/Defining+a+Custom+Stack+and+Services

.

- Also regarding the ambari main class "org.apache.ambari.server.controller.AmbariServer". However it will be good to follow the below scripts to know how it starts the main class:

https://github.com/apache/ambari/blob/trunk/ambari-server/src/main/python/ambari-server.py#L133-L143

.

Highlighted

Re: How to develop ambari-server, add new features

Explorer

are you have develop document?

or develop setp

Highlighted

Re: How to develop ambari-server, add new features

Super Mentor

@shi cheng

I did not understand your last comment properly. However looks like you want to know the detailed steps / document for ambari development.

I guess the following links gives lots of such details:

1. https://cwiki.apache.org/confluence/display/AMBARI/Coding+Guidelines+for+Ambari

2. https://cwiki.apache.org/confluence/display/AMBARI/Development+Process+for+New+Major+Features

3. https://cwiki.apache.org/confluence/display/AMBARI/Ambari+Development

4. How to Contribute to Apache Ambari

.

Highlighted

Re: How to develop ambari-server, add new features

Explorer

i'm import eclipse is error:

11102-aaaas.png

11103-aaaas.png

11104-aaaas.png

Highlighted

Re: How to develop ambari-server, add new features

Super Mentor

@shi cheng

https://cwiki.apache.org/confluence/display/AMBARI/Ambari+Development

Above document talks about the prerequisites:

Tools needed to build Ambari

xCode (if using Mac, get it from the apple store)
JDK 7 (Ambari 2.0 and below can be compiled with JDK 6)
Apache Maven 3.0.5 <- Maven 3.1.0 results in errors when building ambari-agent
Python 2.6 / 2.7
rpmbuild (rpm-build package)
g++ (gcc-c++ package)
NodeJS (node and npm)

. Setting up Ambari in Eclipse

$ mvn clean eclipse:eclipse

After doing the above you should be able to import the project via Eclipse "Import > Maven > Existing Maven Project". Choose the root directory where you cloned the git repository.

.

Highlighted

Re: How to develop ambari-server, add new features

Explorer

I am also according to the steps.

but have error:

11102-aaaas.png

11103-aaaas.png

11104-aaaas.png

Re: How to develop ambari-server, add new features

Super Collaborator

I don't think you want to import everything into Eclipse. Different IDEs work better for different parts of Ambari. For ambari-server, Eclipse is great. For ambari-agent (and any ambari-server python files), PyCharm is best. I'm sure there's another IDE that's best for the web client.

The point is that you should decide which areas of Ambari you'd like to develop and setup just those in your IDE of choice.

With that said, I believe that the above error is because you're trying to import the entire project into Eclipse and it doesn't like executions. I had to ignore a few as well, namely build-helper:regex-property. Start with just ambari-server and get that working first.

Highlighted

Re: How to develop ambari-server, add new features

Explorer

i think you should import maven dependencies

Don't have an account?
Coming from Hortonworks? Activate your account here