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 95706200CAD for ; Wed, 28 Jun 2017 16:09:04 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 94078160BFA; Wed, 28 Jun 2017 14:09:04 +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 D8103160BE8 for ; Wed, 28 Jun 2017 16:09:03 +0200 (CEST) Received: (qmail 25010 invoked by uid 500); 28 Jun 2017 14:09:03 -0000 Mailing-List: contact hdfs-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list hdfs-issues@hadoop.apache.org Received: (qmail 24990 invoked by uid 99); 28 Jun 2017 14:09:03 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 28 Jun 2017 14:09:02 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id A021D1802CA for ; Wed, 28 Jun 2017 14:09:02 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.202 X-Spam-Level: X-Spam-Status: No, score=-99.202 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id SGxWh5kbPW4B for ; Wed, 28 Jun 2017 14:09:01 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 2BE925FDBE for ; Wed, 28 Jun 2017 14:09:01 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 52193E0026 for ; Wed, 28 Jun 2017 14:09:00 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 0F5EC2415E for ; Wed, 28 Jun 2017 14:09:00 +0000 (UTC) Date: Wed, 28 Jun 2017 14:09:00 +0000 (UTC) From: "Mukul Kumar Singh (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HDFS-12053) Ozone: ozone server should create missing metadata directory if it has permission to MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Wed, 28 Jun 2017 14:09:04 -0000 [ https://issues.apache.org/jira/browse/HDFS-12053?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16066525#comment-16066525 ] Mukul Kumar Singh commented on HDFS-12053: ------------------------------------------ Hi [~cheersyang], The patch looks good, couple of comments though 1) Both line 132 and 134 can be combined in one statement 2) Also I feel that lines 147-152 can also be removed as part of this change by adding extra condition to line 132. > Ozone: ozone server should create missing metadata directory if it has permission to > ------------------------------------------------------------------------------------ > > Key: HDFS-12053 > URL: https://issues.apache.org/jira/browse/HDFS-12053 > Project: Hadoop HDFS > Issue Type: Sub-task > Components: ozone > Reporter: Weiwei Yang > Assignee: Weiwei Yang > Attachments: HDFS-12053-HDFS-7240.001.patch > > > Datanode state machine right now simple fails if container metadata directory is missing, it is better to create the directory if it has permission to. This is extremely useful at a fresh setup, usually we set {{ozone.container.metadata.dirs}} to be under same parent of {{dfs.datanode.data.dir}}. E.g > * /hadoop/hdfs/data > * /hadoop/hdfs/scm > if I don't pre-setup /hadoop/hdfs/scm/repository, ozone could not be started. -- This message was sent by Atlassian JIRA (v6.4.14#64029) --------------------------------------------------------------------- To unsubscribe, e-mail: hdfs-issues-unsubscribe@hadoop.apache.org For additional commands, e-mail: hdfs-issues-help@hadoop.apache.org