<?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: Ambari 2.1.2 ranger installation failed, api delete and reinstallation failing @ step 6 with &amp;quot;server error&amp;quot; message. in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-2-1-2-ranger-installation-failed-api-delete-and/m-p/96553#M10067</link>
    <description>&lt;P&gt;You have to check the listener settings for oracle. Please see &lt;A target="_blank" href="http://www.dba-oracle.com/t_network_adapter_could_not_establish_connection.htm"&gt;this&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Make sure that you are providing the correct service name or sid&lt;/P&gt;&lt;P&gt; IO Error: The Network Adapter could not establish the connection ErrorCode: 17002 2015-11-04 11:46:20,196 [E] Can't establish connection,Change configuration or Contact Administrator!!&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Ranger cleanup from db&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;curl --user admin:admin -i  -H "X-Requested-By: ambari" -X DELETE &lt;A href="http://`hostname" target="_blank"&gt;http://`hostname&lt;/A&gt; -f`:8080/api/v1/clusters/&amp;lt;cluster name&amp;gt;/services/RANGER&lt;/P&gt;&lt;P&gt;
&lt;A href="http://community.hortonworks.com/users/423/skonduru.html"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;[root@nsfed01 ~]# psql dbname username&lt;/P&gt;&lt;P&gt;Password for user ambari: password given when you did ambari-server setup&lt;/P&gt;&lt;P&gt;psql (8.4.20)&lt;/P&gt;&lt;P&gt;Type "help" for help.&lt;/P&gt;&lt;P&gt;ambari=&amp;gt; &lt;/P&gt;&lt;P&gt;ambari=# &lt;/P&gt;&lt;P&gt;ambari=&amp;gt; delete from hostcomponentstate where component_name like '%RANGER%';&lt;/P&gt;&lt;P&gt;DELETE 1&lt;/P&gt;&lt;P&gt;ambari=&amp;gt; delete from hostcomponentdesiredstate where component_namelike '%RANGER%';&lt;/P&gt;&lt;P&gt;DELETE 1&lt;/P&gt;&lt;P&gt;ambari=&amp;gt; delete from servicecomponentdesiredstate where component_namelike '%RANGER%';&lt;/P&gt;&lt;P&gt;DELETE 1&lt;/P&gt;&lt;P&gt;ambari=&amp;gt; commit;&lt;/P&gt;&lt;P&gt;WARNING:  there is no transaction in progress&lt;/P&gt;&lt;P&gt;COMMIT&lt;/P&gt;&lt;P&gt;ambari=&amp;gt; \q&lt;/P&gt;&lt;P&gt;@&lt;A href="http://community.hortonworks.com/users/423/skonduru.html"&gt;skonduru@hortonworks.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Refresh browser and restart ambari.&lt;/P&gt;</description>
    <pubDate>Thu, 05 Nov 2015 12:14:42 GMT</pubDate>
    <dc:creator>nsabharwal</dc:creator>
    <dc:date>2015-11-05T12:14:42Z</dc:date>
    <item>
      <title>Ambari 2.1.2 ranger installation failed, api delete and reinstallation failing @ step 6 with "server error" message.</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-2-1-2-ranger-installation-failed-api-delete-and/m-p/96552#M10066</link>
      <description>&lt;P&gt;Initial attempt to Add Ranger service to running HDP 2.3.2 cluster managed with Ambari 2.1.2 on Redhat 7.1, Oracle JDK 8 and Oracle 12C backend database for Ranger.&lt;/P&gt;&lt;P&gt;
ambari ranger DB test connection successful but failed to connect database @step 6 with following error.&lt;/P&gt;&lt;PRE&gt;File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line 291, in _call
raise Fail(err_msg)
resource_management.core.exceptions.Fail: Execution of 'python /usr/hdp/current/ranger-admin/dba_script.py -q' returned 1. 2015-11-04 11:46:19,927 [I] Running DBA setup script. QuiteMode:True
2015-11-04 11:46:19,927 [I] Using Java:/usr/java/default/bin/java
2015-11-04 11:46:19,927 [I] DB FLAVOR:ORACLE
2015-11-04 11:46:19,927 [I] DB Host:roadrunner.example.com
2015-11-04 11:46:19,927 [I] ---------- Creat
ing Ranger Admin db user ---------- 
2015-11-04 11:46:19,927  [I] Checking connection
SQLException : SQL state: 08006 java.sql.SQLRecoverableException: IO Error: The Network Adapter could not establish the connection ErrorCode: 17002
2015-11-04 11:46:20,196  [E] Can't establish connection,Change configuration or Contact Administrator!!Following procedure and followed to re-add ranger service.1) curl -i -uadmin:admin -H "X-Requested-By: ambari" -d '{"HostRoles": { "state": "UNKNOWN"}}' -X DELETE "http://hdpqa001.example.com:8080/api/v1/clusters/hdpclu/services/RANGER";
HTTP/1.1 200 OK
User: admin
Set-Cookie: AMBARISESSIONID=1aul0secz52361k6uhu9akhjbd;Path=/;HttpOnly
Expires: Thu, 01 Jan 1970 00:00:00 GMT
Content-Type: text/plain
Content-Length: 0
Server: Jetty(8.1.17.v20150415)2) Ambari add Ranger service wizard.------  Multiple attempts failed at stage 6 with a error popup "server error"What is best approach to cleanup and add Ranger service.
Or Any debug options to collect Add service process logs to understand error.&lt;/PRE&gt;</description>
      <pubDate>Thu, 05 Nov 2015 12:11:43 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-2-1-2-ranger-installation-failed-api-delete-and/m-p/96552#M10066</guid>
      <dc:creator>skonduru</dc:creator>
      <dc:date>2015-11-05T12:11:43Z</dc:date>
    </item>
    <item>
      <title>Re: Ambari 2.1.2 ranger installation failed, api delete and reinstallation failing @ step 6 with "server error" message.</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-2-1-2-ranger-installation-failed-api-delete-and/m-p/96553#M10067</link>
      <description>&lt;P&gt;You have to check the listener settings for oracle. Please see &lt;A target="_blank" href="http://www.dba-oracle.com/t_network_adapter_could_not_establish_connection.htm"&gt;this&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Make sure that you are providing the correct service name or sid&lt;/P&gt;&lt;P&gt; IO Error: The Network Adapter could not establish the connection ErrorCode: 17002 2015-11-04 11:46:20,196 [E] Can't establish connection,Change configuration or Contact Administrator!!&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Ranger cleanup from db&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;curl --user admin:admin -i  -H "X-Requested-By: ambari" -X DELETE &lt;A href="http://`hostname" target="_blank"&gt;http://`hostname&lt;/A&gt; -f`:8080/api/v1/clusters/&amp;lt;cluster name&amp;gt;/services/RANGER&lt;/P&gt;&lt;P&gt;
&lt;A href="http://community.hortonworks.com/users/423/skonduru.html"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;[root@nsfed01 ~]# psql dbname username&lt;/P&gt;&lt;P&gt;Password for user ambari: password given when you did ambari-server setup&lt;/P&gt;&lt;P&gt;psql (8.4.20)&lt;/P&gt;&lt;P&gt;Type "help" for help.&lt;/P&gt;&lt;P&gt;ambari=&amp;gt; &lt;/P&gt;&lt;P&gt;ambari=# &lt;/P&gt;&lt;P&gt;ambari=&amp;gt; delete from hostcomponentstate where component_name like '%RANGER%';&lt;/P&gt;&lt;P&gt;DELETE 1&lt;/P&gt;&lt;P&gt;ambari=&amp;gt; delete from hostcomponentdesiredstate where component_namelike '%RANGER%';&lt;/P&gt;&lt;P&gt;DELETE 1&lt;/P&gt;&lt;P&gt;ambari=&amp;gt; delete from servicecomponentdesiredstate where component_namelike '%RANGER%';&lt;/P&gt;&lt;P&gt;DELETE 1&lt;/P&gt;&lt;P&gt;ambari=&amp;gt; commit;&lt;/P&gt;&lt;P&gt;WARNING:  there is no transaction in progress&lt;/P&gt;&lt;P&gt;COMMIT&lt;/P&gt;&lt;P&gt;ambari=&amp;gt; \q&lt;/P&gt;&lt;P&gt;@&lt;A href="http://community.hortonworks.com/users/423/skonduru.html"&gt;skonduru@hortonworks.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Refresh browser and restart ambari.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Nov 2015 12:14:42 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-2-1-2-ranger-installation-failed-api-delete-and/m-p/96553#M10067</guid>
      <dc:creator>nsabharwal</dc:creator>
      <dc:date>2015-11-05T12:14:42Z</dc:date>
    </item>
    <item>
      <title>Re: Ambari 2.1.2 ranger installation failed, api delete and reinstallation failing @ step 6 with "server error" message.</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-2-1-2-ranger-installation-failed-api-delete-and/m-p/96554#M10068</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/140/nsabharwal.html" nodeid="140"&gt;@Neeraj&lt;/A&gt; after this incident we corrected SID and ambari add service wizard failing to finish with error at stage 6 "Server Error".  Opened support case for Ambari SME support to cleanup and redo add service.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Nov 2015 21:40:48 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-2-1-2-ranger-installation-failed-api-delete-and/m-p/96554#M10068</guid>
      <dc:creator>skonduru</dc:creator>
      <dc:date>2015-11-05T21:40:48Z</dc:date>
    </item>
    <item>
      <title>Re: Ambari 2.1.2 ranger installation failed, api delete and reinstallation failing @ step 6 with "server error" message.</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-2-1-2-ranger-installation-failed-api-delete-and/m-p/96555#M10069</link>
      <description>&lt;P&gt;Thanks for taking time to update the thread&lt;/P&gt;</description>
      <pubDate>Thu, 05 Nov 2015 23:15:51 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-2-1-2-ranger-installation-failed-api-delete-and/m-p/96555#M10069</guid>
      <dc:creator>nsabharwal</dc:creator>
      <dc:date>2015-11-05T23:15:51Z</dc:date>
    </item>
  </channel>
</rss>

