HDP on Linux – Installation Forum

Installation Error

  • #45892
    Rohit Pujari
    Member

    Hello Folks:
    I’m using hortonworks ambari installer. I’m at install start and test phase of the wizard. Apparently the status gets stuck at 3%. When I check the log of ambari server, I get following error –
    com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at line 1 column 2116
    Caused by: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING

    I’m not able to get around this error. Can you please help.

    Thanks,
    Rohit

to create new topics or reply. | New User Registration

  • Author
    Replies
  • #45895
    Dave
    Moderator

    Hi Rohit,

    Do you have reverse DNS lookup configured correctly?
    As force of habit I always add the IP and hostname of all the nodes into the /etc/hosts of each machine.

    Thanks

    Dave

    #45898
    Jeff Sposetti
    Moderator

    Also, can you confirm which version of ambari you are using? Thank you.

    ambari-server –version

    #45917
    Rohit Pujari
    Member

    Hello Jeff and Dave:

    The ambari server version is 1.4.1.61
    I have verfied the forward and reverse dns lookups are working correctly. I can log in between nodes using FQDN and IP. Also, all hosts are mentioned in /etc/hosts file

    Here is the specific error I get from /var/log/ambari-server/ambari-server.log

    com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at line 1 column 3442
    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)
    —–
    Caused by: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at line 1 column 3442
    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

    #45920
    Rohit Pujari
    Member

    Hello Jeff and Dave:

    The ambari server version is 1.4.1.61
    I have verfied the forward and reverse dns lookups are working correctly. I can log in between nodes using FQDN and IP. Also, all hosts are mentioned in /etc/hosts file

    Here is the specific error I get from /var/log/ambari-server/ambari-server.log

    com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at line 1 column 3442
    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)
    —–
    Caused by: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at line 1 column 3442
    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

    #45990
    Jeff Sposetti
    Moderator

    Hi Rohit,

    You might have hit this bug, which is fixed in Ambari 1.4.2.

    https://issues.apache.org/jira/browse/AMBARI-3792

    Ambari 1.4.2 has been released and is available:

    http://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.0.8.0/bk_using_Ambari_book/content/ambari-chap1-1.html

    Can you retry with the newer Ambari release?

    Thanks,

    Jeff

You must be to reply to this topic. | Create Account

Support from the Experts

A HDP Support Subscription connects you experts with deep experience running Apache Hadoop in production, at-scale on the most demanding workloads.

Enterprise Support »

Become HDP Certified

Real world training designed by the core architects of Hadoop. Scenario-based training courses are available in-classroom or online from anywhere in the world

Training »

Hortonworks Data Platform
The Hortonworks Data Platform is a 100% open source distribution of Apache Hadoop that is truly enterprise grade having been built, tested and hardened with enterprise rigor.
Get started with Sandbox
Hortonworks Sandbox is a self-contained virtual machine with Apache Hadoop pre-configured alongside a set of hands-on, step-by-step Hadoop tutorials.
Modern Data Architecture
Tackle the challenges of big data. Hadoop integrates with existing EDW, RDBMS and MPP systems to deliver lower cost, higher capacity infrastructure.