ambari-dev mailing list archives

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

    [ https://issues.apache.org/jira/browse/AMBARI-14037?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15024799#comment-15024799
] 

Hudson commented on AMBARI-14037:
---------------------------------

FAILURE: Integrated in Ambari-branch-2.1 #929 (See [https://builds.apache.org/job/Ambari-branch-2.1/929/])
AMBARI-14037. Hdfs operations show "/usr/share/java: No such file or (vbrodetskyi: [http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=d6694a5691be04123da1fc61a7c40903fdc0ffbc])
* ambari-server/src/main/resources/common-services/HDFS/2.1.0.2.0/configuration/hadoop-env.xml
* ambari-server/src/main/resources/stacks/HDP/2.2/services/HDFS/configuration/hadoop-env.xml
* ambari-server/src/main/resources/stacks/HDP/2.3/services/HDFS/configuration/hadoop-env.xml


> 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