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 61B889F03 for ; Sat, 18 Aug 2012 20:01:40 +0000 (UTC) Received: (qmail 55916 invoked by uid 500); 18 Aug 2012 20:01:40 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 55827 invoked by uid 500); 18 Aug 2012 20:01:39 -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 55700 invoked by uid 99); 18 Aug 2012 20:01:39 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 18 Aug 2012 20:01:39 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 1C3182C5BE5 for ; Sat, 18 Aug 2012 20:01:39 +0000 (UTC) Date: Sun, 19 Aug 2012 07:01:39 +1100 (NCT) From: "stack (JIRA)" To: issues@hbase.apache.org Message-ID: <1551633813.27211.1345320099116.JavaMail.jiratomcat@arcas> In-Reply-To: <1695166337.12587.1333557207058.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (HBASE-5714) Add write permissions check before any hbck run that modifies hdfs. 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/HBASE-5714?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13437399#comment-13437399 ] stack commented on HBASE-5714: ------------------------------ Patch looks good to me. Nice one Lliang. Jon or Jimmy want to take a look? > Add write permissions check before any hbck run that modifies hdfs. > ------------------------------------------------------------------- > > Key: HBASE-5714 > URL: https://issues.apache.org/jira/browse/HBASE-5714 > Project: HBase > Issue Type: Sub-task > Components: hbck > Affects Versions: 0.90.6, 0.92.2, 0.94.0, 0.96.0 > Reporter: Jonathan Hsieh > Attachments: HBASE-5628.patch > > > We encoutered a situation where hbck was run by an under-privileged user that was unable to write/modify/merge regions due to hdfs perms. Unfortunately, this user was alerted of this after several minutes of read-only operations. hbck should fail early by having a write perm check and providing actionable advice to the hbase admin. > Maybe something like: "Current user yy does not have write perms to . Please run hbck as hdfs user xxx" -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira