-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/40639/
-----------------------------------------------------------
Review request for Ambari and Dmitro Lisnichenko.
Bugs: AMBARI-14037
https://issues.apache.org/jira/browse/AMBARI-14037
Repository: ambari
Description
-------
{code}
[root@0c9 ~]# sudo su hdfs -l -c 'hdfs dfsadmin -safemode enter'
ls: cannot access /usr/share/java: No such file or directory
Safe mode is ON
[root@0c9 ~]# sudo su hdfs -l -c 'hdfs dfsadmin -saveNamespace'
ls: cannot access /usr/share/java: No such file or directory
Save namespace successful
[root@0c9 ~]# ls /usr/share/java
ls: cannot access /usr/share/java: No such file or directory
{code}
Directory /usr/share/java really does not exist
I think that reproduces only in cases when cluster has basic services installed
(HDFS+ZK).
The cause is probably this code at hadoop-env
{code}
# Add database libraries
JAVA_JDBC_LIBS=""
for jarFile in `ls /usr/share/java | grep -E "(mysql|ojdbc|postgresql|sqljdbc)"
2>/dev/null`
do
JAVA_JDBC_LIBS=${JAVA_JDBC_LIBS}:$jarFile
done
{code}
Diffs
-----
ambari-server/src/main/resources/common-services/HDFS/2.1.0.2.0/configuration/hadoop-env.xml
37f2ee0
ambari-server/src/main/resources/stacks/HDP/2.2/services/HDFS/configuration/hadoop-env.xml
41783f4
ambari-server/src/main/resources/stacks/HDP/2.3/services/HDFS/configuration/hadoop-env.xml
6d840a4
Diff: https://reviews.apache.org/r/40639/diff/
Testing
-------
mvn clean test
Thanks,
Vitalyi Brodetskyi