Return-Path: X-Original-To: apmail-ambari-dev-archive@www.apache.org Delivered-To: apmail-ambari-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id F2808182D5 for ; Tue, 24 Nov 2015 17:31:11 +0000 (UTC) Received: (qmail 43085 invoked by uid 500); 24 Nov 2015 17:31:11 -0000 Delivered-To: apmail-ambari-dev-archive@ambari.apache.org Received: (qmail 43033 invoked by uid 500); 24 Nov 2015 17:31:11 -0000 Mailing-List: contact dev-help@ambari.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ambari.apache.org Delivered-To: mailing list dev@ambari.apache.org Received: (qmail 42624 invoked by uid 99); 24 Nov 2015 17:31:11 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Nov 2015 17:31:11 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 310B42C1F88 for ; Tue, 24 Nov 2015 17:31:11 +0000 (UTC) Date: Tue, 24 Nov 2015 17:31:11 +0000 (UTC) From: "Hudson (JIRA)" To: dev@ambari.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (AMBARI-14037) Hdfs operations show "/usr/share/java: No such file or directory", but work MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/AMBARI-14037?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15024915#comment-15024915 ] Hudson commented on AMBARI-14037: --------------------------------- ABORTED: Integrated in Ambari-trunk-Commit #3903 (See [https://builds.apache.org/job/Ambari-trunk-Commit/3903/]) 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=fb9dfc00aabe855249a5b667cea9f8506e4ff523]) * 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 * ambari-server/src/main/resources/common-services/HDFS/2.1.0.2.0/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)