<?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: Ranger  - Unable to re-install in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-Unable-to-re-install/m-p/156788#M49056</link>
    <description>&lt;P&gt;I resolved the problem by dropping the  ranger  folder under /usr/hdf/2.4.0/ranger-*&lt;/P&gt;</description>
    <pubDate>Sun, 18 Dec 2016 02:13:46 GMT</pubDate>
    <dc:creator>anand_ranganath</dc:creator>
    <dc:date>2016-12-18T02:13:46Z</dc:date>
    <item>
      <title>Ranger  - Unable to re-install</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-Unable-to-re-install/m-p/156786#M49054</link>
      <description>&lt;P&gt;Ranger Version: 0.5.0.2.4&lt;/P&gt;&lt;P&gt;Ambari version :2.2.2.1&lt;/P&gt;&lt;P&gt;HDP Version: 2.4.0&lt;/P&gt;&lt;P&gt;
	I Installed successfully for the first time and I am trying to re-install in Ranger on the same cluster.  Before re-installing I ran these commands to clean up. &lt;/P&gt;&lt;PRE&gt;

    // get the service
curl -u admin:admin -X GET  &lt;A href="http://localhost:8080/api/v1/clusters/dx/services/RANGER" target="_blank"&gt;http://localhost:8080/api/v1/clusters/dx/services/RANGER&lt;/A&gt;

// stop the service
curl -u admin:admin -H 'X-Requested-By: ambari' -X PUT -d '{"RequestInfo":{"context":"Stop Service"},"Body":{"ServiceInfo":{"state":"INSTALLED"}}}' &lt;A href="http://localhost:8080/api/v1/clusters/dx/services/RANGER" target="_blank"&gt;http://localhost:8080/api/v1/clusters/dx/services/RANGER&lt;/A&gt;

// delete the service
curl -u admin:admin -H 'X-Requested-By: ambari' -X DELETE &lt;A href="http://localhost:8080/api/v1/clusters/dx/services/RANGER" target="_blank"&gt;http://localhost:8080/api/v1/clusters/dx/services/RANGER&lt;/A&gt;
&lt;/PRE&gt;&lt;P&gt;
	While re-installing it says unable to connect to the database.  MySQL is located on the same host where Ranger is being installed.  Do I have to clean up some of the properties or folder structure before re-installing ? &lt;/P&gt;&lt;PRE&gt;[root@usw2dxdpmn01 ~]# /usr/java/default/bin/java -cp /usr/share/java/mysql-connector-java.jar:/usr/hdp/current/ranger-admin/jisql/lib/* org.apache.util.sql.Jisql -driver mysqlconj -cstring jdbc:mysql://ranger/mysql -u rangeradmin -p xxxxxxx
SQLException : SQL state: 08S01 com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure


The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. ErrorCode: 0
&lt;/PRE&gt;&lt;P&gt;I tried with mysql and I am able to connect.&lt;/P&gt;&lt;PRE&gt;[root@usw2dxdpmn01 ~]# mysql -urangeradmin -pxxxxxxx
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 47
Server version: 5.1.73 Source distribution


Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.


Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
&lt;/PRE&gt;&lt;P&gt;Any help ,pointers is highly appreciated.&lt;/P&gt;</description>
      <pubDate>Fri, 16 Dec 2016 08:35:02 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-Unable-to-re-install/m-p/156786#M49054</guid>
      <dc:creator>anand_ranganath</dc:creator>
      <dc:date>2016-12-16T08:35:02Z</dc:date>
    </item>
    <item>
      <title>Re: Ranger  - Unable to re-install</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-Unable-to-re-install/m-p/156787#M49055</link>
      <description>&lt;P&gt;Not sure about the Ranger re-installation, but it looks like the MySQL SQLException is occurring because you have left out the server name in the -cstring option.&lt;/P&gt;</description>
      <pubDate>Sat, 17 Dec 2016 03:58:38 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-Unable-to-re-install/m-p/156787#M49055</guid>
      <dc:creator>bhagan</dc:creator>
      <dc:date>2016-12-17T03:58:38Z</dc:date>
    </item>
    <item>
      <title>Re: Ranger  - Unable to re-install</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-Unable-to-re-install/m-p/156788#M49056</link>
      <description>&lt;P&gt;I resolved the problem by dropping the  ranger  folder under /usr/hdf/2.4.0/ranger-*&lt;/P&gt;</description>
      <pubDate>Sun, 18 Dec 2016 02:13:46 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-Unable-to-re-install/m-p/156788#M49056</guid>
      <dc:creator>anand_ranganath</dc:creator>
      <dc:date>2016-12-18T02:13:46Z</dc:date>
    </item>
  </channel>
</rss>

