Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 256EF200B8D for ; Fri, 9 Sep 2016 06:40:22 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 222B5160AAD; Fri, 9 Sep 2016 04:40:22 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 8FA88160AD0 for ; Fri, 9 Sep 2016 06:40:21 +0200 (CEST) Received: (qmail 2571 invoked by uid 500); 9 Sep 2016 04:40:20 -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 2558 invoked by uid 99); 9 Sep 2016 04:40:20 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Sep 2016 04:40:20 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 78D8D2C1B7F for ; Fri, 9 Sep 2016 04:40:20 +0000 (UTC) Date: Fri, 9 Sep 2016 04:40:20 +0000 (UTC) From: "Jerry He (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HBASE-16257) Move staging dir to be under hbase root dir MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Fri, 09 Sep 2016 04:40:22 -0000 [ https://issues.apache.org/jira/browse/HBASE-16257?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15475899#comment-15475899 ] Jerry He commented on HBASE-16257: ---------------------------------- bq. How do we handle upgrades? This would be compatible with rolling upgrade, as indicated in the parent JIRA. Changing the staging dir in the middle won't break the compatibility. Old and new staging dirs can co-exists. Bulk load token is full path. > Move staging dir to be under hbase root dir > ------------------------------------------- > > Key: HBASE-16257 > URL: https://issues.apache.org/jira/browse/HBASE-16257 > Project: HBase > Issue Type: Sub-task > Reporter: Jerry He > Assignee: Jerry He > Priority: Minor > Fix For: 2.0.0 > > Attachments: HBASE-16257-v1.patch, HBASE-16257-v2.patch > > > The hbase.bulkload.staging.dir defaults to hbase.fs.tmp.dir which then defaults to > {code} > public static final String DEFAULT_TEMPORARY_HDFS_DIRECTORY = "/user/" > + System.getProperty("user.name") + "/hbase-staging"; > {code} > This default would have problem on local file system standalone case. > We can move the staging dir to be under hbase.rootdir. We are bringing secure bulkload to the core. It makes sense to bring it under core control as well, instead of an optional property. -- This message was sent by Atlassian JIRA (v6.3.4#6332)