Qiang Zhang created RANGER-1400:
-----------------------------------

             Summary: 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


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)

Reply via email to