Return-Path: X-Original-To: apmail-incubator-ambari-user-archive@minotaur.apache.org Delivered-To: apmail-incubator-ambari-user-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 78FAD10FD4 for ; Thu, 29 Aug 2013 17:49:09 +0000 (UTC) Received: (qmail 22951 invoked by uid 500); 29 Aug 2013 17:49:09 -0000 Delivered-To: apmail-incubator-ambari-user-archive@incubator.apache.org Received: (qmail 22839 invoked by uid 500); 29 Aug 2013 17:49:08 -0000 Mailing-List: contact ambari-user-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: ambari-user@incubator.apache.org Delivered-To: mailing list ambari-user@incubator.apache.org Received: (qmail 22831 invoked by uid 99); 29 Aug 2013 17:49:07 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 29 Aug 2013 17:49:07 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS,WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of aagarwal@ddn.com designates 64.47.133.206 as permitted sender) Received: from [64.47.133.206] (HELO legacy.ddn.com) (64.47.133.206) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 29 Aug 2013 17:49:03 +0000 Received: from LAX-EX-CAHT2.datadirect.datadirectnet.com (10.8.103.82) by dermtp01.datadirect.datadirectnet.com (10.8.16.38) with Microsoft SMTP Server (TLS) id 8.3.297.1; Thu, 29 Aug 2013 10:48:43 -0700 Received: from LAX-EX-MB3.datadirect.datadirectnet.com ([fe80::91b8:923f:ee33:f62]) by LAX-EX-CAHT2.datadirect.datadirectnet.com ([fe80::bdb1:9e12:703a:386a%12]) with mapi id 14.02.0328.009; Thu, 29 Aug 2013 10:48:42 -0700 From: Anisha Agarwal To: "ambari-user@incubator.apache.org" Subject: Re: Error during transition from INIT to INSTALLED Thread-Topic: Error during transition from INIT to INSTALLED Thread-Index: AQHOpFTKjjKm23scBkOqM20PUUeC2Jmr13kAgACf2wA= Date: Thu, 29 Aug 2013 17:48:42 +0000 Message-ID: <75373CAF9DCEDE42A26CEF70DAD4991AB879FBE0@LAX-EX-MB3.datadirect.datadirectnet.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: user-agent: Microsoft-MacOutlook/14.3.4.130416 x-originating-ip: [10.8.103.202] Content-Type: multipart/alternative; boundary="_000_75373CAF9DCEDE42A26CEF70DAD4991AB879FBE0LAXEXMB3datadir_" MIME-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org --_000_75373CAF9DCEDE42A26CEF70DAD4991AB879FBE0LAXEXMB3datadir_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Yes, I can ping the server from the agent and vice versa using both the hos= tname, and the IP address. Regards, Anisha From: Srimanth Gunturi > Reply-To: "ambari-user@incubator.apache.org" > Date: Wednesday, August 28, 2013 6:16 PM To: "ambari-user@incubator.apache.org" > Subject: Re: Error during transition from INIT to INSTALLED Hello, Are you able to ping Ambari server machine from the agent machine? Please use the exact host names mentioned in the error message. Regards, Srimanth On Wed, Aug 28, 2013 at 6:12 PM, Anisha Agarwal > wrote: Hi All, I am trying to install a cluster using: 1. Code pulled from the git repository. (I pulled on 08/26) 2. Using the APIs for the install. During the transition step from INIT to INSTALLED, I see some errors in the= log files (attached the log files) On the ambari-agent side, I see: INFO 2013-08-28 15:01:39,874 security.py:89 - SSL C= onnect being called.. connecting to the server INFO 2013-08-28 15:01:40,023 security.py:51 - SSL c= onnection established. Two-way SSL authentication is turned off on the serv= er. ERROR 2013-08-28 15:02:03,098 Controller.py:201 = - Unable to connect to: https://node01.local.com:8441/agent/v1/heartbeat/no= de02.local.com due to No JSON object could be decoded And, on the server side, I get: 14:53:07,344 WARN [qtp1371513603-69] ServletHandler:514 - /agent/v1/heartb= eat/node02.local.com com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expec= ted BEGIN_OBJECT but was STRING at line 1 column 183 at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.= read(ReflectiveTypeAdapterFactory.java:176) at com.google.gson.internal.bind.TypeAdapterRuntimeTypeWrapper.read(Ty= peAdapterRuntimeTypeWrapper.java:40) at com.google.gson.internal.bind.CollectionTypeAdapterFactory$Adapter.= read(CollectionTypeAdapterFactory.java:81) at com.google.gson.internal.bind.CollectionTypeAdapterFactory$Adapter.= read(CollectionTypeAdapterFactory.java:60) at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$1.read(R= eflectiveTypeAdapterFactory.java:93) at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.= read(ReflectiveTypeAdapterFactory.java:172) at com.google.gson.Gson.fromJson(Gson.java:795) at com.google.gson.Gson.fromJson(Gson.java:761) at org.apache.ambari.server.api.GsonJsonProvider.readFrom(GsonJsonProv= ider.java:60) at com.sun.jersey.spi.container.ContainerRequest.getEntity(ContainerRe= quest.java:474) at com.sun.jersey.server.impl.model.method.dispatch.EntityParamDispatc= hProvider$EntityInjectable.getValue(EntityParamDispatchProvider.java:123) at com.sun.jersey.server.impl.inject.InjectableValuesProvider.getInjec= tableValues(InjectableValuesProvider.java:46) at com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMe= thodDispatchProvider$EntityParamInInvoker.getParams(AbstractResourceMethodD= ispatchProvider.java:153) at com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMe= thodDispatchProvider$TypeOutInvoker._dispatch(AbstractResourceMethodDispatc= hProvider.java:183) at com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethod= Dispatcher.dispatch(ResourceJavaMethodDispatcher.java:75) at com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMeth= odRule.java:288) at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(Right= HandPathRule.java:147) at com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(Resou= rceClassRule.java:108) at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(Right= HandPathRule.java:147) at com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept= (RootResourceClassesRule.java:84) at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRe= quest(WebApplicationImpl.java:1469) at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRe= quest(WebApplicationImpl.java:1400) at com.sun.jersey.server.impl.application.WebApplicationImpl.handleReq= uest(WebApplicationImpl.java:1349) at com.sun.jersey.server.impl.application.WebApplicationImpl.handleReq= uest(WebApplicationImpl.java:1339) at com.sun.jersey.spi.container.servlet.WebComponent.service(WebCompon= ent.java:416) at com.sun.jersey.spi.container.servlet.ServletContainer.service(Servl= etContainer.java:537) at com.sun.jersey.spi.container.servlet.ServletContainer.service(Servl= etContainer.java:708) at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:6= 52) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(Servl= etHandler.java:1329) at org.apache.ambari.server.security.SecurityFilter.doFilter(SecurityF= ilter.java:67) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(Servl= etHandler.java:1300) at org.apache.ambari.server.api.AmbariPersistFilter.doFilter(AmbariPer= sistFilter.java:48) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(Servl= etHandler.java:1300) at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.ja= va:445) at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHan= dler.java:225) at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHan= dler.java:1038) at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.jav= a:374) at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHand= ler.java:189) at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHand= ler.java:972) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler= .java:135) at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapp= er.java:116) at org.eclipse.jetty.server.Server.handle(Server.java:363) at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(Abstr= actHttpConnection.java:483) at org.eclipse.jetty.server.AbstractHttpConnection.content(AbstractHtt= pConnection.java:931) at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.cont= ent(AbstractHttpConnection.java:992) at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:856) at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:23= 5) at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnec= tion.java:82) at org.eclipse.jetty.io.nio.SslConnection.handle(SslConnection.java:19= 6) at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannel= EndPoint.java:627) at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelE= ndPoint.java:51) at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadP= ool.java:608) at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPo= ol.java:543) at java.lang.Thread.run(Thread.java:662) Caused by: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was S= TRING at line 1 column 183 at com.google.gson.stream.JsonReader.expect(JsonReader.java:339) at com.google.gson.stream.JsonReader.beginObject(JsonReader.java:322) at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.= read(ReflectiveTypeAdapterFactory.java:165) ... 54 more The unit tests are all passing fine, and there was no problem running the b= uild. The Hadoop install fails when I get these errors. Any idea about what this could be? Thanks, Anisha 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, pr= ivileged and exempt from disclosure under applicable law. If the reader of = this message is not the intended recipient, you are hereby notified that an= y printing, copying, dissemination, distribution, disclosure or forwarding = of this communication is strictly prohibited. If you have received this com= munication in error, please contact the sender immediately and delete it fr= om your system. Thank You. --_000_75373CAF9DCEDE42A26CEF70DAD4991AB879FBE0LAXEXMB3datadir_ Content-Type: text/html; charset="us-ascii" Content-ID: <2B3887EF89D5634CB6FA48329E1A1FE9@ddn.com> Content-Transfer-Encoding: quoted-printable
Yes, I can ping the server from the agent and vice versa using both th= e hostname, and the IP address.

Regards,
Anisha

From: Srimanth Gunturi <srimanth@hortonworks.com>
Reply-To: "ambari-user@incubator.apache.org"= <ambari-user@incuba= tor.apache.org>
Date: Wednesday, August 28, 2013 6:= 16 PM
To: "ambari-user@incubator.apache.org" <<= a href=3D"mailto:ambari-user@incubator.apache.org">ambari-user@incubator.ap= ache.org>
Subject: Re: Error during transitio= n from INIT to INSTALLED

Hello,
Are you able to ping Ambari server machine from the agent machine?
Please use the exact host names mentioned in the error message.
Regards,
Srimanth



On Wed, Aug 28, 2013 at 6:12 PM, Anisha Agarwal = <aagarwal@ddn.com<= /a>> wrote:
Hi All,

I am trying to inst= all a cluster using:
1. Code pulled from the g= it repository. (I pulled on 08/26)
2. Using the APIs for the= install.

During the transition ste= p from INIT to INSTALLED, I see some errors in the log files (attached the = log files)

On the ambari-agent side,= I see:
INFO 2013-08-28 15:01:39= ,874 =
security.py:89 - SSL Connect being called.. connecting to the server
INFO 2013-08-28 15:01:40,= 023 security.py:5= 1 - SSL connection established. Two-way SSL authentication is turn= ed off on the server.
ERROR 2013-08-28 15:02:03= ,098 Controlle= r.py:201 - Unable to connect to: https:/= /node01.local.com:8441/agent/v1/heartbeat/node02.local.com due to No JSON object could be decoded

And, on the server side, = I get:
14:53:07,344  WARN = [qtp1371513603-69] ServletHandler:514 - /agent/v1/heartbeat/node02.<= span style=3D"font-family:Arial;font-size:medium">local.com
com.google.gson.JsonSynta= xException: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was = STRING at line 1 column 183
     = at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(= ReflectiveTypeAdapterFactory.java:176)
     = at com.google.gson.internal.bind.TypeAdapterRuntimeTypeWrapper.read(TypeAda= pterRuntimeTypeWrapper.java:40)
     = at com.google.gson.internal.bind.CollectionTypeAdapterFactory$Adapter.read(= CollectionTypeAdapterFactory.java:81)
     = at com.google.gson.internal.bind.CollectionTypeAdapterFactory$Adapter.read(= CollectionTypeAdapterFactory.java:60)
     = at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$1.read(Reflec= tiveTypeAdapterFactory.java:93)
     = at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(= ReflectiveTypeAdapterFactory.java:172)
     = at com.google.gson.Gson.fromJson(Gson.java:795)
     = at com.google.gson.Gson.fromJson(Gson.java:761)
     = at org.apache.ambari.server.api.GsonJsonProvider.readFrom(GsonJsonProvider.= java:60)
     = at com.sun.jersey.spi.container.ContainerRequest.getEntity(ContainerRequest= .java:474)
     = at com.sun.jersey.server.impl.model.method.dispatch.EntityParamDispatchProv= ider$EntityInjectable.getValue(EntityParamDispatchProvider.java:123)
     = at com.sun.jersey.server.impl.inject.InjectableValuesProvider.getInjectable= Values(InjectableValuesProvider.java:46)
     = at com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodD= ispatchProvider$EntityParamInInvoker.getParams(AbstractResourceMethodDispat= chProvider.java:153)
     = at com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodD= ispatchProvider$TypeOutInvoker._dispatch(AbstractResourceMethodDispatchProv= ider.java:183)
     = at com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispa= tcher.dispatch(ResourceJavaMethodDispatcher.java:75)
     = at com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRul= e.java:288)
     = at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandP= athRule.java:147)
     = at com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(ResourceCl= assRule.java:108)
     = at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandP= athRule.java:147)
     = at com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(Root= ResourceClassesRule.java:84)
     = at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest= (WebApplicationImpl.java:1469)
     = at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest= (WebApplicationImpl.java:1400)
     = at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(= WebApplicationImpl.java:1349)
     = at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(= WebApplicationImpl.java:1339)
     = at com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.j= ava:416)
     = at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletCon= tainer.java:537)
     = at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletCon= tainer.java:708)
     = at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
     = at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:652)
     = at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHan= dler.java:1329)
     = at org.apache.ambari.server.security.SecurityFilter.doFilter(SecurityFilter= .java:67)
     = at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHan= dler.java:1300)
     = at org.apache.ambari.server.api.AmbariPersistFilter.doFilter(AmbariPersistF= ilter.java:48)
     = at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHan= dler.java:1300)
     = at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:44= 5)
     = at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.= java:225)
     = at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.= java:1038)
     = at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:374= )
     = at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.j= ava:189)
     = at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.j= ava:972)
     = at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java= :135)
     = at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.ja= va:116)
     = at org.eclipse.jetty.server.Server.handle(Server.java:363)
     = at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHt= tpConnection.java:483)
     = at org.eclipse.jetty.server.AbstractHttpConnection.content(AbstractHttpConn= ection.java:931)
     = at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.content(A= bstractHttpConnection.java:992)
     = at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:856)
     = at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:235)
     = at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.= java:82)
     = at org.eclipse.jetty.io.nio.SslConnection.handle(SslConnection.java:196)
     = at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPo= int.java:627)
     = at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoi= nt.java:51)
     = at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.j= ava:608)
     = at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.ja= va:543)
     = at java.lang.Thread.run(Thread.java:662)
Caused by: java.lang.Ille= galStateException: Expected BEGIN_OBJECT but was STRING at line 1 column 18= 3
     = at com.google.gson.stream.JsonReader.expect(JsonReader.java:339)
     = at com.google.gson.stream.JsonReader.beginObject(JsonReader.java:322)
     = at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(= ReflectiveTypeAdapterFactory.java:165)
     ... 5= 4 more

The unit tests are all pa= ssing fine, and there was no problem running the build. The Hadoop install = fails when I get these errors.

Any idea about what this = could be?

Thanks,
Anisha


CONFIDENTIALITY NOTICE
NOTICE: This message is intended for the use of the indiv= idual or entity to which it is addressed and may contain information that i= s 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 communicati= on is strictly prohibited. If you have received this communication in error, please contact the sender immed= iately and delete it from your system. Thank You.
--_000_75373CAF9DCEDE42A26CEF70DAD4991AB879FBE0LAXEXMB3datadir_--