ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "wkhapy (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (AMBARI-7742) start componet JsonSyntaxException
Date Sat, 11 Oct 2014 09:43:34 GMT

     [ https://issues.apache.org/jira/browse/AMBARI-7742?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

wkhapy updated AMBARI-7742:
---------------------------
    Description: 
when i add new host and start start any component 。
soon in ambari-server log,it output  
 WARN [qtp1684655846-130] ServletHandler:514 - /agent/v1/heartbeat/h2datanode6
com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected BEGIN_OBJECT
but was STRING at line 1 column 178
 at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:176)
        at com.google.gson.internal.bind.TypeAdapterRuntimeTypeWrapper.read(TypeAdapterRuntimeTypeWrapper.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(ReflectiveTypeAdapterFactory.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)

and ambari-agent lost heart-beat ,anyone has idea ,help

DEBUG 2014-10-11 17:07:12,595 Controller.py:147 - Sending request: {"nodeStatus": {"status":
"HEALTHY", "cause": "NONE"}, "timestamp": 1413018432590, "hostname": "h2datanode6", "componentStatus":
[], "responseId": 27, "reports": ["stackVersion", "status", "clusterName", "componentName",
"configurationTags", "serviceName", "msg", {"status": "IN_PROGRESS", "roleCommand": "START",
"serviceName": "YARN", "role": "NODEMANAGER", "actionId": "305-1", "taskId": 4452, "stdout":
"...", "clusterName": "hdpcluster", "stderr": "...", "exitCode": 777}]}
ERROR 2014-10-11 17:07:26,654 Controller.py:204 - Unable to connect to: https://h2namenode1:8441/agent/v1/heartbeat/h2datanode6
due to No JSON object could be decoded
DEBUG 2014-10-11 17:07:26,654 Controller.py:205 - Details: No JSON object could be decoded
Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/ambari_agent/Controller.py", line 152, in heartbeatWithServer
    response = json.loads(response)
  File "/usr/lib64/python2.6/json/__init__.py", line 307, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python2.6/json/decoder.py", line 319, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python2.6/json/decoder.py", line 338, in raw_decode
    raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded
it is ambari-agent debug log

  was:
when i add new host and start start any component 。
soon in ambari-server log,it output  
 WARN [qtp1684655846-130] ServletHandler:514 - /agent/v1/heartbeat/h2datanode6
com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected BEGIN_OBJECT
but was STRING at line 1 column 178
 at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:176)
        at com.google.gson.internal.bind.TypeAdapterRuntimeTypeWrapper.read(TypeAdapterRuntimeTypeWrapper.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(ReflectiveTypeAdapterFactory.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)

and ambari-agent lost heart-beat ,anyone has idea ,help


> start componet JsonSyntaxException
> ----------------------------------
>
>                 Key: AMBARI-7742
>                 URL: https://issues.apache.org/jira/browse/AMBARI-7742
>             Project: Ambari
>          Issue Type: Bug
>          Components: ambari-server
>    Affects Versions: 1.4.1
>            Reporter: wkhapy
>   Original Estimate: 504h
>  Remaining Estimate: 504h
>
> when i add new host and start start any component 。
> soon in ambari-server log,it output  
>  WARN [qtp1684655846-130] ServletHandler:514 - /agent/v1/heartbeat/h2datanode6
> com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected BEGIN_OBJECT
but was STRING at line 1 column 178
>  at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:176)
>         at com.google.gson.internal.bind.TypeAdapterRuntimeTypeWrapper.read(TypeAdapterRuntimeTypeWrapper.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(ReflectiveTypeAdapterFactory.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)
> and ambari-agent lost heart-beat ,anyone has idea ,help
> DEBUG 2014-10-11 17:07:12,595 Controller.py:147 - Sending request: {"nodeStatus": {"status":
"HEALTHY", "cause": "NONE"}, "timestamp": 1413018432590, "hostname": "h2datanode6", "componentStatus":
[], "responseId": 27, "reports": ["stackVersion", "status", "clusterName", "componentName",
"configurationTags", "serviceName", "msg", {"status": "IN_PROGRESS", "roleCommand": "START",
"serviceName": "YARN", "role": "NODEMANAGER", "actionId": "305-1", "taskId": 4452, "stdout":
"...", "clusterName": "hdpcluster", "stderr": "...", "exitCode": 777}]}
> ERROR 2014-10-11 17:07:26,654 Controller.py:204 - Unable to connect to: https://h2namenode1:8441/agent/v1/heartbeat/h2datanode6
due to No JSON object could be decoded
> DEBUG 2014-10-11 17:07:26,654 Controller.py:205 - Details: No JSON object could be decoded
> Traceback (most recent call last):
>   File "/usr/lib/python2.6/site-packages/ambari_agent/Controller.py", line 152, in heartbeatWithServer
>     response = json.loads(response)
>   File "/usr/lib64/python2.6/json/__init__.py", line 307, in loads
>     return _default_decoder.decode(s)
>   File "/usr/lib64/python2.6/json/decoder.py", line 319, in decode
>     obj, end = self.raw_decode(s, idx=_w(s, 0).end())
>   File "/usr/lib64/python2.6/json/decoder.py", line 338, in raw_decode
>     raise ValueError("No JSON object could be decoded")
> ValueError: No JSON object could be decoded
> it is ambari-agent debug log



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message