@shi chengIf you are able to compile ambari. Then next step will be to make an RPM using the following command:
mvn -B clean install package rpm:rpm -DskipTests -Pcentos5 -Dpython.ver="python26" -Preplaceurl
- Once the RPMs are ready then you can install it as following:
yum install ambari-server/target/rpm/ambari-server/RPMS/noarch/ambari-server-*.noarch.rpm
Once ambari is installed using RPM then you can do the setup and start.
ambari-server setup
ambari-server start
.
For more informations please refer to: https://cwiki.apache.org/confluence/display/AMBARI/Ambari+Development