Return-Path: X-Original-To: apmail-hadoop-mapreduce-user-archive@minotaur.apache.org Delivered-To: apmail-hadoop-mapreduce-user-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E4EDA17C20 for ; Fri, 31 Oct 2014 08:46:00 +0000 (UTC) Received: (qmail 26828 invoked by uid 500); 31 Oct 2014 08:45:56 -0000 Delivered-To: apmail-hadoop-mapreduce-user-archive@hadoop.apache.org Received: (qmail 26711 invoked by uid 500); 31 Oct 2014 08:45:56 -0000 Mailing-List: contact user-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@hadoop.apache.org Delivered-To: mailing list user@hadoop.apache.org Received: (qmail 26701 invoked by uid 99); 31 Oct 2014 08:45:56 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 31 Oct 2014 08:45:56 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [209.85.192.43] (HELO mail-qg0-f43.google.com) (209.85.192.43) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 31 Oct 2014 08:45:50 +0000 Received: by mail-qg0-f43.google.com with SMTP id f51so5234444qge.2 for ; Fri, 31 Oct 2014 01:45:29 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=pgAd/xtfmTnfDMLKrBA0thh+rXWMZ2HET031v3cno34=; b=lnERcBF0veN6iJxDK40wWBE1+FegHXv84bWGaqKSaUNlSNXzW3PJ99GG2lTi2uDE12 E+si2/4Fwh/7HhPkGzSab1Mnmkcsyt4TVaZJ0hW+nqOYnWIZpRjXS9HYvax/i5ejlgQU mXyy1n0jtlXwuow0UHVG+6g2zFoS9OhfEmm3RxKrGQ2XlkUjqY+7kgIbu8C/cMc1veHw YHviVPKIGtFcemllcbJVkGN39nacOWRfK6ZIfGbb4UQB0QgZSYWFrb9BsTBUH+e7ST3j ucH7g3Ll7aBamC+8zApRELKIdf6fPDP2p72KxrA0d91L5SoPwSvp7roQEpRtLYTdhYAd dqwQ== X-Gm-Message-State: ALoCoQkiRUsh+lnJmgmnIcU5fbuimj82ZwxqMyEiTm9hJHw8LvuNnidIaCT307+dlVcuRyPLlhfP MIME-Version: 1.0 X-Received: by 10.140.21.36 with SMTP id 33mr6262160qgk.61.1414745129039; Fri, 31 Oct 2014 01:45:29 -0700 (PDT) Received: by 10.140.44.54 with HTTP; Fri, 31 Oct 2014 01:45:28 -0700 (PDT) In-Reply-To: References: Date: Fri, 31 Oct 2014 09:45:28 +0100 Message-ID: Subject: Re: About building dummy Custom Distributed File system for hadoop. From: Thomas Demoor To: user@hadoop.apache.org Content-Type: multipart/alternative; boundary=001a11c1215add55e70506b404a1 X-Virus-Checked: Checked by ClamAV on apache.org --001a11c1215add55e70506b404a1 Content-Type: text/plain; charset=UTF-8 Hi Vikrant, YARN uses AbstractFileSystem. Filesystem is the legacy interface (Hadoop v1). However, there is an abstract class DelegateToFileSystem that (trivially) enables using a legacy FileSystem in YARN (see f.i. the Wasb class in hadoop-azure) So what you should implement depends on if you want to run YARN, legacy Hadoop or both. Distributed filesystems are hard, nice to see you are ambitious. Good luck, Thomas On Thu, Oct 30, 2014 at 6:52 PM, Vikrant Dhimate wrote: > We are working on B.Tech project and we want to build dummy Custom > Distributed File system for hadoop. > > In 2.5.1 version there are 2 classes : 1) FileSystem and 2) > AbstractFileSystem. > To make our own custom DFS which one of these two classes should we > implement or extend to our custom filesystem class. Because in earlier > version there was only FileSystem class. > > Can you please tell us what is difference between FileSystem and > AbstractFileSystem classes and when to use each one sand which one should > we > implement in our case? > > Thanks, > Vikrant > > --001a11c1215add55e70506b404a1 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi Vikrant,

YARN uses=C2=A0AbstractFileSystem. F= ilesystem is the legacy interface (Hadoop v1).=C2=A0

However, there= is an=C2=A0abstract class Delegate= ToFileSystem that (trivially) enables using a legacy FileSystem in YARN =C2= =A0(see f.i. the Wasb class in hadoop-azure)

So what you should implement depe= nds on if you want to run YARN, legacy Hadoop or both. Distributed filesyst= ems are hard, nice to see you are ambitious.


<= /div>
Good luck,
Thomas

=

On Thu, Oct 30, 2014 at 6:52 PM, Vikrant Dhi= mate <vikrantdhimate@gmail.com> wrote:
We are working on B.Tech project and we want to build d= ummy Custom
Distributed File system for hadoop.

In 2.5.1 version there are 2 classes : 1) FileSystem and 2) AbstractFileSys= tem.
To make our own custom DFS which one of these two classes should we
implement or extend to our custom filesystem class. Because in earlier
version there was only FileSystem class.

Can you please tell us what is difference between FileSystem and
AbstractFileSystem classes and when to use each one sand which one should w= e
implement in our case?

Thanks,
Vikrant


--001a11c1215add55e70506b404a1--