Return-Path: X-Original-To: apmail-ambari-user-archive@www.apache.org Delivered-To: apmail-ambari-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 12941105E3 for ; Thu, 6 Mar 2014 07:33:33 +0000 (UTC) Received: (qmail 62852 invoked by uid 500); 6 Mar 2014 07:33:32 -0000 Delivered-To: apmail-ambari-user-archive@ambari.apache.org Received: (qmail 62637 invoked by uid 500); 6 Mar 2014 07:33:31 -0000 Mailing-List: contact user-help@ambari.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@ambari.apache.org Delivered-To: mailing list user@ambari.apache.org Received: (qmail 62629 invoked by uid 99); 6 Mar 2014 07:33:31 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Mar 2014 07:33:31 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,NORMAL_HTTP_TO_IP,RCVD_IN_DNSWL_LOW,SPF_PASS,WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of sgunturi@hortonworks.com designates 209.85.216.42 as permitted sender) Received: from [209.85.216.42] (HELO mail-qa0-f42.google.com) (209.85.216.42) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Mar 2014 07:33:24 +0000 Received: by mail-qa0-f42.google.com with SMTP id k15so2138545qaq.15 for ; Wed, 05 Mar 2014 23:33:03 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:content-type; bh=qKAE1Lu5W4FS410TP5GE5tRoF6+9nzjCK4Iu+4ApDb8=; b=VAWT0hCb0Qxhn04aGnwQwjuCiRg9G+eVGt6Lq6aP5DAy/ylSwyu+NZJaIvyL9aR5Mh lrCtYIrDIzAcq88JkAp5pJEeU0fx06sXgub0ArAb56040P9A/vn0j3oDNiRa7FQecReo qj6MvgdWCXMUG73sR8GbA317TB1TVw/cxy+/8KvsgSDgQcV3CV53L+8BngHRun41UCNM +6kOPYVy57M7S6+TT+d56Hk/UlxUmalhR5bshHuXX7COV9re1p0sbGz1WTRuHurStUy2 6Ku8tmsDqiD1o3eG7QuQH0qJit5awlcKaUb9jc4+m7WZRQBucpMzl2tyz9Okbter7+K2 CvQA== X-Gm-Message-State: ALoCoQlBU87NJMWG2o4rhfS6QbOGyka8Q9v6dt9uGSTK7cI1pypR5TDqici2ZUTGDvVGeUPOEFIiWAZZw6uPpMZlQMjMOsygqsQ+KuB1Zoxfdv3q/BN/mZo= X-Received: by 10.140.34.99 with SMTP id k90mr11532478qgk.15.1394091182810; Wed, 05 Mar 2014 23:33:02 -0800 (PST) MIME-Version: 1.0 Received: by 10.140.82.243 with HTTP; Wed, 5 Mar 2014 23:32:42 -0800 (PST) In-Reply-To: <30F1F1FA0FF0E544BE263167B39E2A366AE6C318@G9W0710.americas.hpqcorp.net> References: <30F1F1FA0FF0E544BE263167B39E2A366AE6C318@G9W0710.americas.hpqcorp.net> From: Srimanth Gunturi Date: Wed, 5 Mar 2014 23:32:42 -0800 Message-ID: Subject: Re: Changing ambari-server web port To: user@ambari.apache.org Content-Type: multipart/alternative; boundary=001a11c0e088bc7d8504f3eb2519 X-Virus-Checked: Checked by ClamAV on apache.org --001a11c0e088bc7d8504f3eb2519 Content-Type: text/plain; charset=US-ASCII Hi Gunnar, If your node has multiple IP addresses, maybe the curl command is going against the wrong IP address? Can you please try "curl --user admin:admin http://127.0.0.1:8000/api/v1/clusters/" from that host. Also, you will need the following header added to your curl command (to prevent CSRFs): -H "X-Requested-By:ambari" Regards, Srimanth On Wed, Mar 5, 2014 at 9:21 PM, Tapper, Gunnar wrote: > 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 > SelectChannelConnector@0.0.0.0: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 > SslSelectChannelConnector@0.0.0.0: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 > SslSelectChannelConnector@0.0.0.0: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/ > > > > Network Error > > > > > > > >
> >
> >
> > > > > > > > > > > >
> > > > Network Error (tcp_error) > >
> >
> >
> >
> > > > A communication error occurred: "Operation timed out" > > > >
> > > > 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. > > > >
> > > >
> > For assistance, contact your network support team. > >
> >
> >
> > > > > > > > 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.* > > > -- CONFIDENTIALITY NOTICE NOTICE: This message is intended for the use of the individual or entity to which it is addressed and may contain information that is confidential, privileged and exempt from disclosure under applicable law. If the reader of this message is not the intended recipient, you are hereby notified that any printing, copying, dissemination, distribution, disclosure or forwarding of this communication is strictly prohibited. If you have received this communication in error, please contact the sender immediately and delete it from your system. Thank You. --001a11c0e088bc7d8504f3eb2519 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Hi Gunnar,
If your node has multiple IP addresses, may= be the curl command is going against the wrong IP address?
Can yo= u please try "curl=A0--user admin:admin=A0http://127.0.0.1:8000/api/v1/clusters/" from that host= .

Also, you will need the following header added to your = curl command (to prevent CSRFs): -H "X-Requested-B= y:ambari= "=A0
Regards,
Srimanth



On Wed, Mar 5, 2014 at = 9:21 PM, Tapper, Gunnar <gunnar.tapper@hp.com> wrote:

Hi,

=A0

I am trying to install ambari server 1.4.3. Port 808= 0 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:

=A0

client.api.port=3D8000

=A0

ambari-server restart yields the following log messa= ges:

=A0

05:06:25,372=A0 INFO [main] Configuration:521 - Web = App DIR test /usr/lib/ambari-server/web

05:06:25,375=A0 INFO [main] CertificateManager:68 - = Initialization of root certificate

05:06:25,376=A0 INFO [main] CertificateManager:70 - = Certificate exists:true

05:06:25,410=A0 INFO [main] AmbariServer:340 - *****= **** Initializing Clusters **********

05:06:25,410=A0 INFO [main] AmbariServer:344 - *****= **** Current Clusters State *********

05:06:25,410=A0 INFO [main] AmbariServer:345 - Clust= ers=3D[=A0 ]

05:06:25,410=A0 INFO [main] AmbariServer:347 - *****= **** Initializing ActionManager **********

05:06:25,410=A0 INFO [main] AmbariServer:349 - *****= **** Initializing Controller **********

05:06:25,418=A0 INFO [main] AmbariManagementControll= erImpl:161 - Initializing the AmbariManagementControllerImpl<= /p>

05:06:25,424=A0 INFO [main] Server:266 - jetty-7.6.7= .v20120910

05:06:25,453=A0 INFO [main] ContextHandler:744 - sta= rted o.e.j.s.ServletContextHandler{/,file:/usr/lib/ambari-server/web/}

05:06:26,987=A0 INFO [main] AbstractConnector:338 - = Started SelectChannelConnector@0.0.0.0:8000

05:06:26,987=A0 INFO [main] Server:266 - jetty-7.6.7= .v20120910

05:06:26,988=A0 INFO [main] ContextHandler:744 - sta= rted o.e.j.s.ServletContextHandler{/,null}

05:06:27,709=A0 INFO [main] SslContextFactory:300 - = Enabled Protocols [SSLv2Hello, SSLv3, TLSv1] of [SSLv2Hello, SSLv3, TLSv1]<= u>

05:06:27,710=A0 INFO [main] AbstractConnector:338 - = Started SslSelectChannelConnector@0.0.0.0:8440

05:06:27,748=A0 INFO [main] SslContextFactory:300 - = Enabled Protocols [SSLv2Hello, SSLv3, TLSv1] of [SSLv2Hello, SSLv3, TLSv1]<= u>

05:06:27,750=A0 INFO [main] AbstractConnector:338 - = Started SslSelectChannelConnector@0.0.0.0:8441

05:06:27,750=A0 INFO [main] AmbariServer:364 - *****= **** Started Server **********

05:06:27,750=A0 INFO [main] ActionManager:69 - Start= ing scheduler thread

05:06:27,750=A0 INFO [main] AmbariServer:367 - *****= **** Started ActionManager **********

=A0

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

=A0

[root@node10 ambari-server]# netst= at -tupln | grep 8000

[root@node10 ambari-server]# ambar= i-server start

Using python=A0 /usr/bin/python2.6

Starting ambari-server

Ambari Server running with 'ro= ot' privileges.

Server PID at: /var/run/ambari-ser= ver/ambari-server.pid

Server out at: /var/log/ambari-ser= ver/ambari-server.out

Server log at: /var/log/ambari-ser= ver/ambari-server.log

Ambari Server 'start' completed successfully= .

[root@node10 ambari-server]# netst= at -tupln | grep 8000

tcp=A0=A0=A0=A0=A0=A0=A0 0=A0=A0=A0=A0=A0 0 :::8000= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 :::*=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 LISTEN=A0=A0= =A0=A0=A0 5820/java

=A0

A basic REST request times out:

=A0

[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=3D"Helvetica"><= /u>

<big><strong></strong></big>= <BR>

</FONT>

<blockquote>

<TABLE border=3D0 cellPadding=3D1 width=3D"8= 0%">

<TR><TD>

<FONT face=3D"Helvetica"><= /u>

<big>Network Error (tcp_error)</big><= /u>

<BR>

<BR>

</FONT>=

</TD></TR>

<TR><TD>

<FONT face=3D"Helvetica"><= /u>

A communication error occurred: "Operation time= d out"

</FONT>=

</TD></TR>

<TR><TD>=

<FONT face=3D"Helvetica"><= /u>

The Web Server may be down, too busy, or experiencin= g 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=3D"Helvetica" SIZE=3D2>

<BR>

For assistance, contact your network support team.

</FONT>

</TD></TR>

</TABLE>

</blockquote>

</FONT>

</BODY></HTML>

=A0

What am I missing? And where is the ambari.propertie= s file documented?

=A0

Thanks,

=A0

Gunnar

=A0

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

=A0



CONFIDENTIALITY NOTICE
NOTICE: This message is = intended for the use of the individual or entity to which it is addressed a= nd may contain information that is confidential, privileged and exempt from= disclosure under applicable law. If the reader of this message is not the = intended recipient, you are hereby notified that any printing, copying, dis= semination, distribution, disclosure or forwarding of this communication is= strictly prohibited. If you have received this communication in error, ple= ase contact the sender immediately and delete it from your system. Thank Yo= u. --001a11c0e088bc7d8504f3eb2519--