Hi,

I am trying to install ambari server 1.4.3. Port 8080 is already in use so I am 
trying to change it. I *think* that the change is done by adding the following 
line /etc/ambari-server/conf/ ambari.properties:

client.api.port=8000

ambari-server restart yields the following log messages:

05:06:25,372  INFO [main] Configuration:521 - Web App DIR test 
/usr/lib/ambari-server/web
05:06:25,375  INFO [main] CertificateManager:68 - Initialization of root 
certificate
05:06:25,376  INFO [main] CertificateManager:70 - Certificate exists:true
05:06:25,410  INFO [main] AmbariServer:340 - ********* Initializing Clusters 
**********
05:06:25,410  INFO [main] AmbariServer:344 - ********* Current Clusters State 
*********
05:06:25,410  INFO [main] AmbariServer:345 - Clusters=[  ]
05:06:25,410  INFO [main] AmbariServer:347 - ********* Initializing 
ActionManager **********
05:06:25,410  INFO [main] AmbariServer:349 - ********* Initializing Controller 
**********
05:06:25,418  INFO [main] AmbariManagementControllerImpl:161 - Initializing the 
AmbariManagementControllerImpl
05:06:25,424  INFO [main] Server:266 - jetty-7.6.7.v20120910
05:06:25,453  INFO [main] ContextHandler:744 - started 
o.e.j.s.ServletContextHandler{/,file:/usr/lib/ambari-server/web/}
05:06:26,987  INFO [main] AbstractConnector:338 - Started 
[email protected]:8000
05:06:26,987  INFO [main] Server:266 - jetty-7.6.7.v20120910
05:06:26,988  INFO [main] ContextHandler:744 - started 
o.e.j.s.ServletContextHandler{/,null}
05:06:27,709  INFO [main] SslContextFactory:300 - Enabled Protocols 
[SSLv2Hello, SSLv3, TLSv1] of [SSLv2Hello, SSLv3, TLSv1]
05:06:27,710  INFO [main] AbstractConnector:338 - Started 
[email protected]:8440
05:06:27,748  INFO [main] SslContextFactory:300 - Enabled Protocols 
[SSLv2Hello, SSLv3, TLSv1] of [SSLv2Hello, SSLv3, TLSv1]
05:06:27,750  INFO [main] AbstractConnector:338 - Started 
[email protected]:8441
05:06:27,750  INFO [main] AmbariServer:364 - ********* Started Server **********
05:06:27,750  INFO [main] ActionManager:69 - Starting scheduler thread
05:06:27,750  INFO [main] AmbariServer:367 - ********* Started ActionManager 
**********

netstat -tupln | grep 8000 shows no listener before starting ambari server and 
a listener once it has been started:

[root@node10 ambari-server]# netstat -tupln | grep 8000
[root@node10 ambari-server]# ambari-server start
Using python  /usr/bin/python2.6
Starting ambari-server
Ambari Server running with 'root' privileges.
Server PID at: /var/run/ambari-server/ambari-server.pid
Server out at: /var/log/ambari-server/ambari-server.out
Server log at: /var/log/ambari-server/ambari-server.log
Ambari Server 'start' completed successfully.
[root@node10 ambari-server]# netstat -tupln | grep 8000
tcp        0      0 :::8000                     :::*                        
LISTEN      5820/java

A basic REST request times out:

[root@node10 ambari-server]# curl --user admin:admin 
http://node10.usa.hp.com:8000/api/v1/clusters/
<HTML><HEAD>
<TITLE>Network Error</TITLE>
</HEAD>
<BODY>
<FONT face="Helvetica">
<big><strong></strong></big><BR>
</FONT>
<blockquote>
<TABLE border=0 cellPadding=1 width="80%">
<TR><TD>
<FONT face="Helvetica">
<big>Network Error (tcp_error)</big>
<BR>
<BR>
</FONT>
</TD></TR>
<TR><TD>
<FONT face="Helvetica">
A communication error occurred: "Operation timed out"
</FONT>
</TD></TR>
<TR><TD>
<FONT face="Helvetica">
The Web Server may be down, too busy, or experiencing other problems preventing 
it from responding to requests. You may wish to try again at a later time.
</FONT>
</TD></TR>
<TR><TD>
<FONT face="Helvetica" SIZE=2>
<BR>
For assistance, contact your network support team.
</FONT>
</TD></TR>
</TABLE>
</blockquote>
</FONT>
</BODY></HTML>

What am I missing? And where is the ambari.properties file documented?

Thanks,

Gunnar

The person that says it cannot be done should not interrupt the person doing it.

Reply via email to