Return-Path: X-Original-To: apmail-hadoop-hdfs-issues-archive@minotaur.apache.org Delivered-To: apmail-hadoop-hdfs-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id DB3FB10A21 for ; Fri, 16 Jan 2015 19:43:33 +0000 (UTC) Received: (qmail 18777 invoked by uid 500); 16 Jan 2015 19:43:35 -0000 Delivered-To: apmail-hadoop-hdfs-issues-archive@hadoop.apache.org Received: (qmail 18726 invoked by uid 500); 16 Jan 2015 19:43:35 -0000 Mailing-List: contact hdfs-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hdfs-issues@hadoop.apache.org Delivered-To: mailing list hdfs-issues@hadoop.apache.org Received: (qmail 18715 invoked by uid 99); 16 Jan 2015 19:43:35 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 16 Jan 2015 19:43:35 +0000 Date: Fri, 16 Jan 2015 19:43:35 +0000 (UTC) From: "Zhe Zhang (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HDFS-7339) Allocating and persisting block groups in NameNode MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HDFS-7339?page=3Dcom.atlassian= .jira.plugin.system.issuetabpanels:all-tabpanel ] Zhe Zhang updated HDFS-7339: ---------------------------- Attachment: (was: HDFS-7339-003.patch) > Allocating and persisting block groups in NameNode > -------------------------------------------------- > > Key: HDFS-7339 > URL: https://issues.apache.org/jira/browse/HDFS-7339 > Project: Hadoop HDFS > Issue Type: Sub-task > Reporter: Zhe Zhang > Assignee: Zhe Zhang > Attachments: HDFS-7339-001.patch, HDFS-7339-002.patch, Meta-strip= ing.jpg, NN-stripping.jpg > > > All erasure codec operations center around the concept of _block group_; = they are formed in initial encoding and looked up in recoveries and convers= ions. A lightweight class {{BlockGroup}} is created to record the original = and parity blocks in a coding group, as well as a pointer to the codec sche= ma (pluggable codec schemas will be supported in HDFS-7337). With the strip= ing layout, the HDFS client needs to operate on all blocks in a {{BlockGrou= p}} concurrently. Therefore we propose to extend a file=E2=80=99s inode to = switch between _contiguous_ and _striping_ modes, with the current mode rec= orded in a binary flag. An array of BlockGroups (or BlockGroup IDs) is adde= d, which remains empty for =E2=80=9Ctraditional=E2=80=9D HDFS files with co= ntiguous block layout. > The NameNode creates and maintains {{BlockGroup}} instances through the n= ew {{ECManager}} component; the attached figure has an illustration of the = architecture. As a simple example, when a {_Striping+EC_} file is created a= nd written to, it will serve requests from the client to allocate new {{Blo= ckGroups}} and store them under the {{INodeFile}}. In the current phase, {{= BlockGroups}} are allocated both in initial online encoding and in the conv= ersion from replication to EC. {{ECManager}} also facilitates the lookup of= {{BlockGroup}} information for block recovery work. -- This message was sent by Atlassian JIRA (v6.3.4#6332)