You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ambari.apache.org by "Vitaly Brodetskyi (JIRA)" <ji...@apache.org> on 2015/11/24 13:31:11 UTC

[jira] [Created] (AMBARI-14037) Hdfs operations show "/usr/share/java: No such file or directory", but work

Vitaly Brodetskyi created AMBARI-14037:
------------------------------------------

             Summary: Hdfs operations show "/usr/share/java: No such file or directory", but work
                 Key: AMBARI-14037
                 URL: https://issues.apache.org/jira/browse/AMBARI-14037
             Project: Ambari
          Issue Type: Bug
          Components: ambari-server
    Affects Versions: 2.1.3
            Reporter: Vitaly Brodetskyi
            Assignee: Vitaly Brodetskyi
             Fix For: 2.1.3


{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}




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