You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ranger.apache.org by "Qiang Zhang (JIRA)" <ji...@apache.org> on 2017/02/22 04:20:44 UTC

[jira] [Updated] (RANGER-1400) Enabling Ranger HDFS Plugins failed when hadoop program and Ranger HDFS Plugin are not in the same path.

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

Qiang Zhang updated RANGER-1400:
--------------------------------
    Attachment: 0001-RANGER-1400-Enabling-Ranger-HDFS-Plugins-failed-when.patch

> Enabling Ranger HDFS Plugins failed when hadoop program and Ranger HDFS Plugin are not in the same path.
> --------------------------------------------------------------------------------------------------------
>
>                 Key: RANGER-1400
>                 URL: https://issues.apache.org/jira/browse/RANGER-1400
>             Project: Ranger
>          Issue Type: Bug
>          Components: plugins
>            Reporter: Qiang Zhang
>            Assignee: Qiang Zhang
>              Labels: patch
>         Attachments: 0001-RANGER-1400-Enabling-Ranger-HDFS-Plugins-failed-when.patch
>
>
> Enabling Ranger HDFS Plugins failed when hadoop program and Ranger HDFS Plugin are not in the same path. 
> 1. Install hadoop-2.7.3 under /var/local/hadoop
> 2. Copy ranger-1.0.0-SNAPSHOT-hdfs-plugin.tar.gz to /usr/local
> 3. Run command: cd /usr/local
> 4. Run command: sudo tar -zxvf ranger-1.0.0-SNAPSHOT-hdfs-plugin.tar.gz
> 5. Modified install.properties according to installation guide.
> 6. Execute enable-hdfs-plugin.sh
> result:
> ERROR: Unable to find the lib directory of component [hadoop];  dir [/usr/local/hadoop/lib] not found.
> Reason:
> COMPONENT_INSTALL_DIR_NAME does not exist in install.properties. So the HCOMPONENT_INSTALL_DIR_NAME variable is empty when execute the following sentence.
>  HCOMPONENT_INSTALL_DIR_NAME=$(getInstallProperty 'COMPONENT_INSTALL_DIR_NAME')
> The result is that HCOMPONENT_LIB_DIR directory doesn't exist.
> We should add COMPONENT_INSTALL_DIR_NAME parameter to install.properties. The error can be avoided after setting COMPONENT_INSTALL_DIR_NAME.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)