Return-Path: X-Original-To: apmail-hbase-issues-archive@www.apache.org Delivered-To: apmail-hbase-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E87F310EE1 for ; Fri, 25 Oct 2013 19:20:02 +0000 (UTC) Received: (qmail 29974 invoked by uid 500); 25 Oct 2013 19:18:41 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 29912 invoked by uid 500); 25 Oct 2013 19:18:36 -0000 Mailing-List: contact issues-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@hbase.apache.org Received: (qmail 29887 invoked by uid 99); 25 Oct 2013 19:18:35 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 25 Oct 2013 19:18:35 +0000 Date: Fri, 25 Oct 2013 19:18:35 +0000 (UTC) From: "Sebastien Barrier (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (HBASE-9844) zookeepers.sh - ZKServerTool log permission issue MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Sebastien Barrier created HBASE-9844: ---------------------------------------- Summary: zookeepers.sh - ZKServerTool log permission issue Key: HBASE-9844 URL: https://issues.apache.org/jira/browse/HBASE-9844 Project: HBase Issue Type: Bug Components: shell Affects Versions: 0.94.12 Environment: Linux Reporter: Sebastien Barrier Priority: Minor The zookeepers.sh script exec the following command during it's process /usr/local/hbase/bin/hbase org.apache.hadoop.hbase.zookeeper.ZKServerTool before doing this it also change of directory to the hbase binary for example 'cd /usr/local/hbase/bin' if the permissions of the directory are differents from the user running the ZKServerTool for example hadoop user and root for the directory there's the following error because it try to create a log file (hadoop.log) in the current directory log4j:ERROR setFile(null,true) call failed. java.io.FileNotFoundException: ./hadoop.log (Permission denied) at java.io.FileOutputStream.open(Native Method) at java.io.FileOutputStream.(FileOutputStream.java:212) at java.io.FileOutputStream.(FileOutputStream.java:136) the log should be written in HBASE_LOG_DIR and not in the current directory. -- This message was sent by Atlassian JIRA (v6.1#6144)