ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vitaly Brodetskyi (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (AMBARI-14037) Hdfs operations show "/usr/share/java: No such file or directory", but work
Date Tue, 24 Nov 2015 12:33:11 GMT

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

Vitaly Brodetskyi updated AMBARI-14037:
---------------------------------------
    Attachment: AMBARI-14037.patch

> 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
>
>         Attachments: AMBARI-14037.patch
>
>
> {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)

Mime
View raw message