Home Forums Ambari Ambari Upgrade to 1.4.2 from 1.4.1 failed

This topic contains 8 replies, has 2 voices, and was last updated by  Dave 10 months, 3 weeks ago.

  • Creator
    Topic
  • #47448

    Umesh
    Participant

    Hello All,

    I am using HDP 2.0.6 and trying to upgrade ambari from 1.4.1 to 1.4.2 , referred hortonworks docs but it seems that during upgrade ambari database has been wiped out and and i am not able to create /restore it again.

    i have tried following solutions but no luck

    1) re run the ambari-server upgrade steps
    2) run ambari-server setup
    2) tried to run sql scripts from /var/lib/ambari-server/resources

    What should i do now

Viewing 8 replies - 1 through 8 (of 8 total)

You must be logged in to reply to this topic.

  • Author
    Replies
  • #47820

    Dave
    Moderator

    Hi Umesh,

    I thought this was the system which I looked at earlier today?

    Thanks

    Dave

    Collapse
    #47803

    Umesh
    Participant

    Hi Dave,

    Any update on below problem.?

    Collapse
    #47633

    Umesh
    Participant

    HI Dave,

    I tried steps you suggested but i am getting

    ambari=# select * from metainfo;
    ERROR: relation “metainfo” does not exist
    LINE 1: select * from metainfo;
    ^

    Collapse
    #47545

    Dave
    Moderator

    Hi Umesh,

    Can you log into postgres and connect to ambari (psql -U ambari ambari) password is bigdata
    Then run:

    select * from metainfo;

    This will probably return 1.4.1.25

    If it does, then you will need to run:

    update metainfo set metainfo_value=’1.4.2.104′ where metainfo_key=’version';

    Now you should be able to start the ambari-server successfully.

    Let me know how you get on,

    Dave

    Collapse
    #47539

    Umesh
    Participant

    Hi Dave,

    Glad to know that you have done it countless times without any issues, i have solved the problem by running ambari-server setup.

    I am working on upgrade of other cluster now and encounterd another new issue,

    06:02:34,156 INFO [main] AmbariServer:124 – ********* Meta Info initialized **********
    06:02:34,168 INFO [main] ClustersImpl:103 – Initializing the ClustersImpl
    06:02:34,358 INFO [main] AmbariServer:407 – Checking DB store version
    06:02:34,366 WARN [main] AmbariServer:415 – Current database store version is not compatible with current server version, serverVersion=1.4.2.104, schemaVersion=1.4.1.25
    06:02:34,367 ERROR [main] AmbariServer:463 – Failed to run the Ambari Server
    org.apache.ambari.server.AmbariException: Current database store version is not compatible with current server version, serverVersion=1.4.2.104, schemaVersion=1.4.1.25
    at org.apache.ambari.server.controller.AmbariServer.checkDBVersion(AmbariServer.java:416)
    at org.apache.ambari.server.controller.AmbariServer.run(AmbariServer.java:131)
    at org.apache.ambari.server.controller.AmbariServer.main(AmbariServer.java:460)

    I followed same link mentioned above, can you please help me on this issue.

    Collapse
    #47456

    Dave
    Moderator

    Hi Umesh,

    What was the error given for the ambari-server failing to start?
    Do you have the postgres logs?
    If it has been removed and you do not have a backup then there is not much you can do to get it back.
    There would be nothing in the documentation which would cause this and I have done this countless times without issues.

    Thanks

    Dave

    Collapse
    #47454

    Umesh
    Participant

    HI Dave,

    I followed this link,

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

    but ambari-server refused to start after upgrade, when checked i found ambari-server postgres database has been wiped out.

    I did not run ambari-server reset at point of time during upgrade or after upgrade.

    Collapse
    #47450

    Dave
    Moderator

    Hi Umesh,

    Can you provide the steps which you took?
    At any point did you run ambari-server reset?

    Thanks

    Dave

    Collapse
Viewing 8 replies - 1 through 8 (of 8 total)