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 EE629200C23 for ; Wed, 22 Feb 2017 15:58:47 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id ED15A160B72; Wed, 22 Feb 2017 14:58:47 +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 41732160B49 for ; Wed, 22 Feb 2017 15:58:47 +0100 (CET) Received: (qmail 25011 invoked by uid 500); 22 Feb 2017 14:58:46 -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 25000 invoked by uid 99); 22 Feb 2017 14:58:46 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 Feb 2017 14:58:46 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id E93981AA298 for ; Wed, 22 Feb 2017 14:58:45 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -1.999 X-Spam-Level: X-Spam-Status: No, score=-1.999 tagged_above=-999 required=6.31 tests=[KAM_LAZY_DOMAIN_SECURITY=1, RP_MATCHES_RCVD=-2.999] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id VhgEmOaMQC1u for ; Wed, 22 Feb 2017 14:58:45 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 0940E60DA6 for ; Wed, 22 Feb 2017 14:58:45 +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 8813BE04A6 for ; Wed, 22 Feb 2017 14:58:44 +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 3F43024123 for ; Wed, 22 Feb 2017 14:58:44 +0000 (UTC) Date: Wed, 22 Feb 2017 14:58:44 +0000 (UTC) From: "Ewan Higgs (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HDFS-9807) Add an optional StorageID to writes MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Wed, 22 Feb 2017 14:58:48 -0000 [ https://issues.apache.org/jira/browse/HDFS-9807?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15878382#comment-15878382 ] Ewan Higgs commented on HDFS-9807: ---------------------------------- The most obvious way to implement this is for the NN to choose a volume and have the DN do what it's told. But the NN doesn't choose a precise volume. It only uses the first Storage of a given StorageType (see {{DataNodeDescriptor.chooseStorage4Block}}). This means that all blocks would only be written to the first volume instead of spread around. We can either change the algorithm in {{DataNodeDescriptor}} to choose a better selection. Or, [~chris.douglas], did you have a different policy in mind when you wrote the ticket? Perhaps passing the Storage ID into {{FsVolumeList.getNextVolume}} and ignoring it if the {{StorageType}} is not {{PROVIDED}}? > Add an optional StorageID to writes > ----------------------------------- > > Key: HDFS-9807 > URL: https://issues.apache.org/jira/browse/HDFS-9807 > Project: Hadoop HDFS > Issue Type: Improvement > Reporter: Chris Douglas > Assignee: Ewan Higgs > > The {{BlockPlacementPolicy}} considers specific storages, but when the replica is written the DN {{VolumeChoosingPolicy}} is unaware of any preference or constraints from other policies affecting placement. This limits heterogeneity to the declared storage types, which are treated as fungible within the target DN. It should be possible to influence or constrain the DN policy to select a particular storage. -- This message was sent by Atlassian JIRA (v6.3.15#6346) --------------------------------------------------------------------- To unsubscribe, e-mail: hdfs-issues-unsubscribe@hadoop.apache.org For additional commands, e-mail: hdfs-issues-help@hadoop.apache.org