How to develop ambari-server, add new features
how to run ambari-server main class
- 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:
- 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:
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:
4. How to Contribute to Apache Ambari
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.
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.