The Hortonworks Community Connection is now live. A completely rebuilt Q&A forum, Knowledge Base, Code Hub and more, backed by the experts in the industry.

You will be redirected here in 10 seconds. If your are not redirected, click here to visit the new site.

The legacy Hortonworks Forum is now closed. You can view a read-only version of the former site by clicking here. The site will be taken offline on January 31,2016

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

  • 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

The forum ‘HDP on Linux – Installation’ is closed to new topics and replies.

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.