You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ambari.apache.org by "Hadoop QA (JIRA)" <ji...@apache.org> on 2015/11/24 14:17:11 UTC
[jira] [Commented] (AMBARI-14037) Hdfs operations show
"/usr/share/java: No such file or directory", but work
[ https://issues.apache.org/jira/browse/AMBARI-14037?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15024487#comment-15024487 ]
Hadoop QA commented on AMBARI-14037:
------------------------------------
{color:red}-1 overall{color}. Here are the results of testing the latest attachment
http://issues.apache.org/jira/secure/attachment/12774051/AMBARI-14037.patch
against trunk revision .
{color:red}-1 patch{color}. Top-level trunk compilation may be broken.
Console output: https://builds.apache.org/job/Ambari-trunk-test-patch/4379//console
This message is automatically generated.
> 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)