Home Forums Ambari Build ambari using Maven

This topic contains 6 replies, has 2 voices, and was last updated by  Vinay Ch s k 4 months, 2 weeks ago.

  • Creator
    Topic
  • #49571

    Vinay Ch s k
    Participant

    Hi

    I am new to Apache Ambari. I am trying to build ambari using maven.
    I am following this link

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

    I am able to install ambari-server and agent as well.
    They are running too.
    But if try to open the WebUI it doesn’t work.
    I have server and agent both running but i can’t build a cluster.
    It doesn’t throw any error and i am stuck here with no help.

    Pleased if you can allow some time to troubleshoot it.

Viewing 6 replies - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.

  • Author
    Replies
  • #50045

    Vinay Ch s k
    Participant

    Hi Yusaku sako
    Even though it shows that the build of ambari web is success but it is not proper.
    If we build the ambari-web individually it throws an error.
    The error is that it is searching for gcc-c++ package and it is not installed.
    and other thing was in the following path /ambari/ambari-web/ it is searching for ambari-project where it is not finding it.
    So i have created a symbolic link and tried to build it now it is working fine.

    Thanks and Regards,
    Vinay

    Collapse
    #49786

    Vinay Ch s k
    Participant

    Hi Yusaku sako,
    Actually it is not generating files in /usr/lib/ambari-server/web/——
    I have manually copied the files from other server. then it works fine.
    but is this has to be done everytime?
    is there a way that i can tell maven to generate and copy them in particular location.

    Thanks and Regards,
    Vinay

    Collapse
    #49782

    Vinay Ch s k
    Participant

    Hi Yusaku Sako,

    Is there something to do with jetty server.
    Do i have to install it manually?
    But i see maven installing jetty.

    Thanks and Regards,
    Vinay

    Collapse
    #49741

    Vinay Ch s k
    Participant

    Hi Yusaku Sako

    I am doing it on Virtual Machine Linux CentOS6.5
    Is it a problem because of the VM.
    ’cause when i install CentOS in VM it install 908 packages where actual packages installed should be 1086 (On physical Machine).

    Collapse
    #49737

    Vinay Ch s k
    Participant

    Hi Yusaku saku,
    I admire your help.

    1.When i run the http://<myhost&gt;:8080/api/v1/clusters
    i get the following error

    {
    “status”: 403,
    “message”: “Full authentication is required to access this resource”
    }

    2.And normally if i run http://<myhost&gt;:8080 i see
    <b>Directory: /</b>
    on the screen.

    a.iptabels are disabled.
    b.firewall is disabled

    –>AS YOU SAID IT JUST GETS HANGED SHOWING ME Directory:/

    Thanks and Regards,
    Vinay

    Collapse
    #49682

    Yusaku Sako
    Participant

    Hello Vinay,

    Sorry to hear that you are having trouble.
    Things to check:
    1. Are you seeing any errors when you hit the URL for the Web UI or does it just hang?
    2. Is firewall turned off (iptables, etc) on the host? To turn off iptables, you can run “service iptables stop”.
    3. Is Ambari server listening on port 8080? netstat -anp | grep 8080
    4. Does this work from the host itself? curl -uadmin:admin http://localhost:8080/api/v1/clusters
    5. Do you see any errors in /var/log/ambari-server/ambari-server.log?

    Collapse
Viewing 6 replies - 1 through 6 (of 6 total)