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 74493200B38 for ; Fri, 24 Jun 2016 00:06:20 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 72D0B160A59; Thu, 23 Jun 2016 22:06:20 +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 B2760160A68 for ; Fri, 24 Jun 2016 00:06:19 +0200 (CEST) Received: (qmail 9099 invoked by uid 500); 23 Jun 2016 22:06:16 -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 9036 invoked by uid 99); 23 Jun 2016 22:06:16 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 23 Jun 2016 22:06:16 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 633522C1F61 for ; Thu, 23 Jun 2016 22:06:16 +0000 (UTC) Date: Thu, 23 Jun 2016 22:06:16 +0000 (UTC) From: "Kai Zheng (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HDFS-9411) HDFS NodeLabel support MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Thu, 23 Jun 2016 22:06:20 -0000 [ https://issues.apache.org/jira/browse/HDFS-9411?page=3Dcom.atlassian.= jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D15347= 292#comment-15347292 ]=20 Kai Zheng commented on HDFS-9411: --------------------------------- Thanks [~vinayrpet] so much for addressing my questions! A few more after r= eading the new revision. 1. >>Change in Label expression set on directories will be inherited for ne= w files. Does not reflect on already existing files. This sounds like storage policy? How about rename? 2. >>Current scope for label expression should be STRICT. i.e. If node does= n=E2=80=99t satisfy the expression, will not be chosen. If no node satisfie= s write should fail Is there any means to specify a label or label expression is STRICT or not = (OPTIONAL)? 3. >>Labels can be removed only when there are no nodes associated with it.= So to remove a node, admin can reset/change labels on nodes first, then ca= n remove the labels from NameNode.=20 A minor, I thought you may mean, "So to remove a label, admin can ..." 4. >>Label for each node should start with an alpha-numeric character... This sounds good. Such label spec would be good to be in common side so HDS= and YARN can share it consistently. 5. >>NodeLabel->DataNode mapping will be done by DfsAdmin. I'm not sure how it's done in YARN, maybe a property file in datanode letti= ng admin list the labels there? Some labels like arch, OS can be automatica= lly detected or discovered while datanode starting. I'm thinking about how = to make labels easy to configure and use. From HDFS perspective this sounds pretty good, and my overall suggestion wo= uld be, define and make the basic node label support in common side, in ord= er to: 1) generic node label isn't essentially specific to HDFS, though som= e labels are. 2) shared by both HDFS and YARN in future, so admin may save = some work, for example, using some common means admin can just specify all = the labels for a node in a time, for both YARN and HDFS. 3) consistent in l= ogic and behavior. Roughly, a job for a tenant should be scheduled to the d= atanodes where the input data reside for locality. 4) broad discussion to i= nvolve YARN guys. I understand it's not easy to split, but would be good to= think about it. Thanks. > HDFS NodeLabel support > ---------------------- > > Key: HDFS-9411 > URL: https://issues.apache.org/jira/browse/HDFS-9411 > Project: Hadoop HDFS > Issue Type: New Feature > Reporter: Vinayakumar B > Assignee: Vinayakumar B > Attachments: HDFSNodeLabels-20-06-2016.pdf, HDFS_ZoneLabels-16112= 015.pdf > > > HDFS currently stores data blocks on different datanodes chosen by BlockP= lacement Policy. These datanodes are random within the scope(local-rack/dif= ferent-rack/nodegroup) of network topology.=20 > In Multi-tenant (Tenant can be user/service) scenario, blocks of any tena= nt can be on any datanodes. > Based on applications of different tenant, sometimes datanode might get = busy making the other tenant's application to slow down. It would be better= if admin's have a provision to logically divide the cluster among multi-te= nants. > NodeLabels adds more options to user to specify constraints to select spe= cific nodes with specific requirements. > High level design doc to follow soon. -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: hdfs-issues-unsubscribe@hadoop.apache.org For additional commands, e-mail: hdfs-issues-help@hadoop.apache.org