From common-issues-return-150884-archive-asf-public=cust-asf.ponee.io@hadoop.apache.org Sun Apr 8 03:47:05 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id BDB3418064E for ; Sun, 8 Apr 2018 03:47:04 +0200 (CEST) Received: (qmail 20092 invoked by uid 500); 8 Apr 2018 01:47:03 -0000 Mailing-List: contact common-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list common-issues@hadoop.apache.org Received: (qmail 20081 invoked by uid 99); 8 Apr 2018 01:47:03 -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; Sun, 08 Apr 2018 01:47:03 +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 060A41A0248 for ; Sun, 8 Apr 2018 01:47:03 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -101.511 X-Spam-Level: X-Spam-Status: No, score=-101.511 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id iESWZE9BEr8r for ; Sun, 8 Apr 2018 01:47:02 +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 324D95FAC6 for ; Sun, 8 Apr 2018 01:47: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 651F0E002F for ; Sun, 8 Apr 2018 01:47: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 2165F2120A for ; Sun, 8 Apr 2018 01:47:00 +0000 (UTC) Date: Sun, 8 Apr 2018 01:47:00 +0000 (UTC) From: "Genmao Yu (JIRA)" To: common-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HADOOP-14999) AliyunOSS: provide one asynchronous multi-part based uploading mechanism 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/HADOOP-14999?page=3Dcom.atlass= ian.jira.plugin.system.issuetabpanels:all-tabpanel ] Genmao Yu updated HADOOP-14999: ------------------------------- Attachment: HADOOP-14999-branch-2.002.patch > AliyunOSS: provide one asynchronous multi-part based uploading mechanism > ------------------------------------------------------------------------ > > Key: HADOOP-14999 > URL: https://issues.apache.org/jira/browse/HADOOP-14999 > Project: Hadoop Common > Issue Type: Sub-task > Components: fs/oss > Affects Versions: 3.0.0-beta1 > Reporter: Genmao Yu > Assignee: Genmao Yu > Priority: Major > Attachments: HADOOP-14999-branch-2.001.patch, HADOOP-14999-branch= -2.002.patch, HADOOP-14999.001.patch, HADOOP-14999.002.patch, HADOOP-14999.= 003.patch, HADOOP-14999.004.patch, HADOOP-14999.005.patch, HADOOP-14999.006= .patch, HADOOP-14999.007.patch, HADOOP-14999.008.patch, HADOOP-14999.009.pa= tch, HADOOP-14999.010.patch, HADOOP-14999.011.patch, asynchronous_file_uplo= ading.pdf, diff-between-patch7-and-patch8.txt > > > This mechanism is designed for uploading file in parallel and asynchronou= sly: > - improve the performance of uploading file to OSS server. Firstly, this= mechanism splits result to multiple small blocks and upload them in parall= el. Then, getting result and uploading blocks are asynchronous. > - avoid buffering too large result into local disk. To cite an extreme e= xample, there is a task which will output 100GB or even larger, we may need= to output this 100GB to local disk and then upload it. Sometimes, it is in= efficient and limited to disk space. > This patch reuse {{SemaphoredDelegatingExecutor}} as executor service and= depends on HADOOP-15039. > Attached {{asynchronous_file_uploading.pdf}} illustrated the difference b= etween previous {{AliyunOSSOutputStream}} and {{AliyunOSSBlockOutputStream}= }, i.e. this asynchronous multi-part based uploading mechanism. > 1. {{AliyunOSSOutputStream}}: we need to output the whole result to local= disk before we can upload it to OSS. This will poses two problems=EF=BC=9A > - if the output file is too large, it will run out of the local disk. > - if the output file is too large, task will wait long time to upload re= sult to OSS before finish, wasting much compute resource. > 2. {{AliyunOSSBlockOutputStream}}: we cut the task output into small bloc= ks, i.e. some small local file, and each block will be packaged into a uplo= ading task. These tasks will be submitted into {{SemaphoredDelegatingExecut= or}}. {{SemaphoredDelegatingExecutor}} will upload this blocks in parallel,= this will improve performance greatly. > 3. Each task will retry 3 times to upload block to Aliyun OSS. If one of = those tasks failed, the whole file uploading will failed, and we will abort= current uploading. -- This message was sent by Atlassian JIRA (v7.6.3#76005) --------------------------------------------------------------------- To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org For additional commands, e-mail: common-issues-help@hadoop.apache.org