<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: Install and configure new Ambari server for existing HDF cluster in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Install-and-configure-new-Ambari-server-for-existing-HDF/m-p/234545#M196365</link>
    <description>&lt;P&gt;Could you please attach ambari-server.log for more detail about error ?&lt;/P&gt;</description>
    <pubDate>Wed, 21 Nov 2018 03:08:57 GMT</pubDate>
    <dc:creator>jagadeesan</dc:creator>
    <dc:date>2018-11-21T03:08:57Z</dc:date>
    <item>
      <title>Install and configure new Ambari server for existing HDF cluster</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Install-and-configure-new-Ambari-server-for-existing-HDF/m-p/234544#M196364</link>
      <description>&lt;P&gt;Hi, all!&lt;/P&gt;&lt;P&gt;Can anyone give any suggestion in&lt;STRONG&gt; configuring new Ambari server with an existing HDF cluster&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Previos version of ambari fails in ambari-server start after downgrade&lt;/P&gt;&lt;PRE&gt;[root@bi-nifi1 dmp]# ambari-server start
Using python  /usr/bin/python
Starting ambari-server
Ambari Server running with administrator privileges.
Organizing resource files at /var/lib/ambari-server/resources...
Ambari database consistency check started...
Server PID at: /var/run/ambari-server/ambari-server.pid
Server out at: /var/log/ambari-server/ambari-server.out
Server log at: /var/log/ambari-server/ambari-server.log
Waiting for server start.............ERROR: Exiting with exit code -1. 
REASON: Ambari Server java process has stopped. Please check the logs for more information.
[root@bi-nifi1 dmp]# cat /var/log/ambari-server/ambari-server.out
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=128m; support was removed in 8.0
An unexpected error occured during starting Ambari Server.
org.apache.ambari.server.AmbariException: An error occured during updating current repository versions with stack repositories.
        at org.apache.ambari.server.stack.UpdateActiveRepoVersionOnStartup.process(UpdateActiveRepoVersionOnStartup.java:99)
        at org.apache.ambari.server.orm.AmbariJpaLocalTxnInterceptor.invoke(AmbariJpaLocalTxnInterceptor.java:128)
        at org.apache.ambari.server.controller.AmbariServer.main(AmbariServer.java:1061)
Caused by: java.lang.NullPointerException
        at org.apache.ambari.server.stack.UpdateActiveRepoVersionOnStartup.updateRepoVersion(UpdateActiveRepoVersionOnStartup.java:106)
        at org.apache.ambari.server.stack.UpdateActiveRepoVersionOnStartup.process(UpdateActiveRepoVersionOnStartup.java:92)
        ... 2 more
Exception in thread "main" org.apache.ambari.server.AmbariException: Error stopping the server
        at org.apache.ambari.server.controller.AmbariServer.stop(AmbariServer.java:880)
        at org.apache.ambari.server.controller.AmbariServer.main(AmbariServer.java:1075)
[root@bi-nifi1 dmp]# 
&lt;/PRE&gt;</description>
      <pubDate>Tue, 20 Nov 2018 21:29:24 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Install-and-configure-new-Ambari-server-for-existing-HDF/m-p/234544#M196364</guid>
      <dc:creator>a_gulshani</dc:creator>
      <dc:date>2018-11-20T21:29:24Z</dc:date>
    </item>
    <item>
      <title>Re: Install and configure new Ambari server for existing HDF cluster</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Install-and-configure-new-Ambari-server-for-existing-HDF/m-p/234545#M196365</link>
      <description>&lt;P&gt;Could you please attach ambari-server.log for more detail about error ?&lt;/P&gt;</description>
      <pubDate>Wed, 21 Nov 2018 03:08:57 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Install-and-configure-new-Ambari-server-for-existing-HDF/m-p/234545#M196365</guid>
      <dc:creator>jagadeesan</dc:creator>
      <dc:date>2018-11-21T03:08:57Z</dc:date>
    </item>
    <item>
      <title>Re: Install and configure new Ambari server for existing HDF cluster</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Install-and-configure-new-Ambari-server-for-existing-HDF/m-p/234546#M196366</link>
      <description>&lt;P&gt;@&lt;A href="https://community.hortonworks.com/users/31160/agulshani.html"&gt;Gulshan Agivetova&lt;/A&gt;&lt;/P&gt;&lt;P&gt;This seems to be related to some uncleaned installation. Mostly the "/usr/lib/ambari-server/lib/ambari_commons" and "/usr/lib/python2.6/site-packages/ambari_commons" might have some older version of libraries installation. So please clean up those old python libraries. Added to that setup again ambari-server using ambari-server.py script appropriate to your cluster configuration.  &lt;/P&gt;&lt;PRE&gt;/usr/sbin/ambari-server.py setup --databasehost=localhost --databasename=ambari --databaseusername=ambari --postgresschema=ambari --databasepassword=ambari --databaseport=5432 --database=postgres -s&lt;/PRE&gt;</description>
      <pubDate>Wed, 21 Nov 2018 07:23:49 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Install-and-configure-new-Ambari-server-for-existing-HDF/m-p/234546#M196366</guid>
      <dc:creator>jagadeesan</dc:creator>
      <dc:date>2018-11-21T07:23:49Z</dc:date>
    </item>
    <item>
      <title>Re: Install and configure new Ambari server for existing HDF cluster</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Install-and-configure-new-Ambari-server-for-existing-HDF/m-p/234547#M196367</link>
      <description>&lt;P&gt;Hi @&lt;A href="https://community.hortonworks.com/users/97811/jagadeesanas.html"&gt;Jagadeesan A S&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Thank you for your concern!&lt;/P&gt;&lt;P&gt;How can I identify which libraries are from older versions, there is no version on the file name?&lt;/P&gt;&lt;PRE&gt;[dmp@bi-nifi1 ~]$ cd /usr/lib/ambari-server/lib/ambari_commons
[dmp@bi-nifi1 ambari_commons]$ ls
aggregate_functions.py     ambari_service.pyc           credential_store_helper.pyo  inet_utils.py     logging_utils.pyc  os_check.pyo        os_utils.py             parallel_processing.pyc  str_utils.pyc        xml_utils.pyo
aggregate_functions.pyc    ambari_service.pyo           exceptions.py                inet_utils.pyc    logging_utils.pyo  os_family_impl.py   os_utils.pyc            parallel_processing.pyo  str_utils.pyo        yaml_utils.py
aggregate_functions.pyo    constants.py                 exceptions.pyc               inet_utils.pyo    network.py         os_family_impl.pyc  os_utils.pyo            resources                urllib_handlers.py   yaml_utils.pyc
ambari_metrics_helper.py   constants.pyc                exceptions.pyo               __init__.py       network.pyc        os_family_impl.pyo  os_windows.py           shell.py                 urllib_handlers.pyc  yaml_utils.pyo
ambari_metrics_helper.pyc  constants.pyo                firewall.py                  __init__.pyc      network.pyo        os_linux.py         os_windows.pyc          shell.pyc                urllib_handlers.pyo
ambari_metrics_helper.pyo  credential_store_helper.py   firewall.pyc                 __init__.pyo      os_check.py        os_linux.pyc        os_windows.pyo          shell.pyo                xml_utils.py
ambari_service.py          credential_store_helper.pyc  firewall.pyo                 logging_utils.py  os_check.pyc       os_linux.pyo        parallel_processing.py  str_utils.py             xml_utils.pyc


&lt;BR /&gt;&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Nov 2018 10:54:12 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Install-and-configure-new-Ambari-server-for-existing-HDF/m-p/234547#M196367</guid>
      <dc:creator>a_gulshani</dc:creator>
      <dc:date>2018-11-21T10:54:12Z</dc:date>
    </item>
    <item>
      <title>Re: Install and configure new Ambari server for existing HDF cluster</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Install-and-configure-new-Ambari-server-for-existing-HDF/m-p/234548#M196368</link>
      <description>&lt;P&gt;&lt;A href="https://community.cloudera.com/legacyfs/online/attachments/93668-ambari-server.zip"&gt;ambari-server.zip&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Nov 2018 10:56:27 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Install-and-configure-new-Ambari-server-for-existing-HDF/m-p/234548#M196368</guid>
      <dc:creator>a_gulshani</dc:creator>
      <dc:date>2018-11-21T10:56:27Z</dc:date>
    </item>
    <item>
      <title>Re: Install and configure new Ambari server for existing HDF cluster</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Install-and-configure-new-Ambari-server-for-existing-HDF/m-p/234549#M196369</link>
      <description>&lt;P&gt;@&lt;A href="https://community.hortonworks.com/users/31160/agulshani.html"&gt;Gulshan Agivetova &lt;/A&gt;&lt;/P&gt;&lt;P&gt;From the ambari-server log, I can see Ambari could not load version definition for HDP-2.6. I would recommended you to have clean all python libraries, yum cleanup and freshly reinstall. Could you please try below steps. appropriate to your host machine.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt; Clean Ambari old installation which include c&lt;EM&gt;leaning up the old Python libraries installation&lt;/EM&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;PRE&gt;yum remove ambari-server ambari-agent -y&lt;BR /&gt;rm -f /usr/sbin/ambari*&lt;BR /&gt;rm -f /usr/lib/python2.6/site-packages/ambari_commons&lt;BR /&gt;rm -rf /usr/lib/python2.6/site-packages/resource_management&lt;BR /&gt;rm -rf /usr/lib/python2.6/site-packages/ambari_jinja2&lt;BR /&gt;rm -rf /usr/lib/ambari-server&lt;BR /&gt;rm -rf /usr/lib/ambari-agent&lt;/PRE&gt;&lt;UL&gt;&lt;LI&gt; Get the new repo according to your host machine&lt;/LI&gt;&lt;/UL&gt;&lt;PRE&gt;wget -nv &lt;A href="http://public-repo-1.hortonworks.com/ambari/centos7/2.x/updates/2.6.5.0/ambari.repo" target="_blank"&gt;http://public-repo-1.hortonworks.com/ambari/centos7/2.x/updates/2.6.5.0/ambari.repo&lt;/A&gt; -O /etc/yum.repos.d/ambari.repo&lt;/PRE&gt;&lt;UL&gt;&lt;LI&gt;Perform a yum cleanup&lt;/LI&gt;&lt;/UL&gt;&lt;PRE&gt;yum clean all&lt;/PRE&gt;&lt;UL&gt;&lt;LI&gt; Now do a fresh install of ambari binaries.&lt;/LI&gt;&lt;/UL&gt;&lt;PRE&gt;yum install ambari-server -y&lt;BR /&gt;yum install ambari-agent -y&lt;/PRE&gt;&lt;UL&gt;&lt;LI&gt;Now perform the ambari-server setup again.&lt;/LI&gt;&lt;/UL&gt;&lt;PRE&gt;/usr/sbin/ambari-server.py setup --databasehost=localhost --databasename=ambari --databaseusername=ambari --postgresschema=ambari --databasepassword=ambari --databaseport=5432 --database=postgres -s&lt;/PRE&gt;&lt;P&gt;I guess these above steps may resolve your issue.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Nov 2018 14:14:08 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Install-and-configure-new-Ambari-server-for-existing-HDF/m-p/234549#M196369</guid>
      <dc:creator>jagadeesan</dc:creator>
      <dc:date>2018-11-21T14:14:08Z</dc:date>
    </item>
    <item>
      <title>Re: Install and configure new Ambari server for existing HDF cluster</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Install-and-configure-new-Ambari-server-for-existing-HDF/m-p/234550#M196370</link>
      <description>&lt;P&gt;Hi @&lt;A href="https://community.hortonworks.com/users/97811/jagadeesanas.html"&gt;Jagadeesan A S&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Thank you for your response!&lt;/P&gt;&lt;P&gt;I have followed all the steps you have stated. After ambari-server setup I dropped the new ambari database, and recovered the database from backup. &lt;/P&gt;&lt;P&gt;And when trying to start ambari-server it gives following error:&lt;/P&gt;&lt;PRE&gt;ServiceNotFoundException: Service not found, clusterName=hdf_kg, serviceName=AMBARI_INFRA&lt;/PRE&gt;&lt;PRE&gt;# ambari-server start
Using python  /usr/bin/python
Starting ambari-server
Ambari Server running with administrator privileges.
Organizing resource files at /var/lib/ambari-server/resources...
Ambari database consistency check started...
Server PID at: /var/run/ambari-server/ambari-server.pid
Server out at: /var/log/ambari-server/ambari-server.out
Server log at: /var/log/ambari-server/ambari-server.log
Waiting for server start................
DB configs consistency check found warnings. See /var/log/ambari-server/ambari-server-check-database.log for more details.
ERROR: Exiting with exit code -1. 
REASON: Ambari Server java process has stopped. Please check the logs for more information.
[root@bi-nifi1 backup]# cat /var/log/ambari-server/ambari-server.out
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=128m; support was removed in 8.0
Database consistency check result: DB_CHECK_WARNING
An unexpected error occured during starting Ambari Server.
org.apache.ambari.server.ServiceNotFoundException: Service not found, clusterName=hdf_kg, serviceName=AMBARI_INFRA
        at org.apache.ambari.server.state.cluster.ClusterImpl.getService(ClusterImpl.java:864)
        at org.apache.ambari.server.api.services.AmbariMetaInfo.reconcileAlertDefinitions(AmbariMetaInfo.java:1240)
        at org.apache.ambari.server.controller.AmbariServer.run(AmbariServer.java:532)
        at org.apache.ambari.server.controller.AmbariServer.main(AmbariServer.java:1067)
[root@bi-nifi1 backup]# 
&lt;BR /&gt;&lt;/PRE&gt;&lt;P&gt;Is it possible to manually start AMBARI_INFRA service?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thanks in advance!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Nov 2018 19:25:27 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Install-and-configure-new-Ambari-server-for-existing-HDF/m-p/234550#M196370</guid>
      <dc:creator>a_gulshani</dc:creator>
      <dc:date>2018-11-30T19:25:27Z</dc:date>
    </item>
    <item>
      <title>Re: Install and configure new Ambari server for existing HDF cluster</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Install-and-configure-new-Ambari-server-for-existing-HDF/m-p/234551#M196371</link>
      <description>&lt;P&gt;@&lt;A href="https://community.hortonworks.com/users/31160/agulshani.html"&gt;Gulshan Agivetova&lt;/A&gt;&lt;/P&gt;&lt;P&gt;You can force Ambari Server to start by skipping this check with the following option:&lt;/P&gt;&lt;PRE&gt;ambari-server start --skip-database-check&lt;/PRE&gt;</description>
      <pubDate>Sat, 01 Dec 2018 18:48:49 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Install-and-configure-new-Ambari-server-for-existing-HDF/m-p/234551#M196371</guid>
      <dc:creator>jagadeesan</dc:creator>
      <dc:date>2018-12-01T18:48:49Z</dc:date>
    </item>
  </channel>
</rss>

