peng.jianhua created RANGER-1749:
------------------------------------
Summary: The path to the configuration file is inconsistent
between install plugin installer and upgrade plugin installer. upgrade plugin
failure.
Key: RANGER-1749
URL: https://issues.apache.org/jira/browse/RANGER-1749
Project: Ranger
Issue Type: Bug
Components: plugins
Affects Versions: 0.7.1, 1.0.0
Reporter: peng.jianhua
Assignee: peng.jianhua
The logic which the configuration file path generated is as follows in install
plugin's installer:
HCOMPONENT_CONF_DIR=${HCOMPONENT_INSTALL_DIR}/conf
if [ "${HCOMPONENT_NAME}" = "solr" ]; then
HCOMPONENT_CONF_DIR=${HCOMPONENT_INSTALL_DIR}/solr-webapp/webapp/WEB-INF/classes
if [ ! -d $HCOMPONENT_CONF_DIR ]; then
install_owner=`ls -ld | cut -f 3 -d " "`
echo "INFO: Creating $HCOMPONENT_CONF_DIR"
mkdir -p $HCOMPONENT_CONF_DIR
echo "INFO: Changing ownership of $HCOMPONENT_CONF_DIR to
$install_owner"
chown $install_owner:$install_owner $HCOMPONENT_CONF_DIR
fi
elif [ "${HCOMPONENT_NAME}" = "kafka" ]; then
HCOMPONENT_CONF_DIR=${HCOMPONENT_INSTALL_DIR}/config
elif [ "${HCOMPONENT_NAME}" = "hadoop" ]; then
HCOMPONENT_CONF_DIR=${HCOMPONENT_INSTALL_DIR}/etc/hadoop
fi
The logic which the configuration file path generated is as follows in upgrade
plugin's installer:
if (componentName == 'hdfs'):
configPath = 'hadoop'
else:
configPath = componentName
configDirectory = '/etc/' + configPath + '/conf'
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)