You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ambari.apache.org by "Yusaku Sako (JIRA)" <ji...@apache.org> on 2015/02/07 00:40:35 UTC

[jira] [Resolved] (AMBARI-9476) Use JDBC driver symbolic link instead of filename in ranger install

     [ https://issues.apache.org/jira/browse/AMBARI-9476?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Yusaku Sako resolved AMBARI-9476.
---------------------------------
    Resolution: Fixed

Committed to trunk.

> Use JDBC driver symbolic link instead of filename in ranger install
> -------------------------------------------------------------------
>
>                 Key: AMBARI-9476
>                 URL: https://issues.apache.org/jira/browse/AMBARI-9476
>             Project: Ambari
>          Issue Type: Bug
>            Reporter: Velmurugan Periasamy
>            Assignee: Velmurugan Periasamy
>             Fix For: 2.0.0
>
>
> One of the requirements for adding Ranger to an existing cluster is to run "ambari-server setup" to deploy the JDBC driver.
> Below command is run to meet this requirement.
> {code}
> ambari-server setup --jdbc-db=mysql --jdbc-driver=/usr/share/java/mysql-connector-java-5.1.17.jar
> {code}
> However, this caused Ranger install phase to fail, because it is trying to download the driver file from http://ambari-host:8080/resources/mysql-connector-java.jar, which does not exist.
> Note that if you had run the below it works.
> {code}
> ambari-server setup --jdbc-db=mysql --jdbc-driver=/usr/share/java/mysql-connector-java.jar
> {code}
> However, relying on the exact filename is error prone.
> The ambari-server setup command creates a symlink called "mysql-jdbc-driver.jar" that points to the actual jar file.  So the ranger setup script should use that name instead for MySQL.  Also check corresponding driver name for Oracle.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)