hfaa a generic socket api for hadoop file systems
play

HFAA: A Generic Socket API for Hadoop File Systems Adam - PowerPoint PPT Presentation

Second Workshop on Architectures and Systems for Big Data (ASBD 2012) June 9 th , 2012 HFAA: A Generic Socket API for Hadoop File Systems


  1. ì ¡ Second ¡Workshop ¡on ¡Architectures ¡ and ¡Systems ¡for ¡Big ¡Data ¡(ASBD ¡2012) ¡ June ¡9 th , ¡2012 ¡ HFAA: ¡A ¡Generic ¡Socket ¡API ¡ for ¡Hadoop ¡File ¡Systems ¡ Adam ¡Yee ¡and ¡ Jeffrey ¡Shafer ¡ University ¡of ¡the ¡Pacific ¡

  2. 2 ¡ Hadoop ¡MapReduce ¡ ì Hadoop: ¡Open ¡source ¡framework ¡for ¡data-­‑intensive ¡ compu<ng ¡ ì Inspired ¡by ¡Google’s ¡web ¡indexing ¡framework ¡ ì Uses ¡ MapReduce ¡ parallel ¡programming ¡model ¡ ì Enables ¡scalable ¡computa<on ¡on ¡a ¡commodity ¡ cluster ¡ computer ¡ ì Popular ¡and ¡in ¡widespread ¡use ¡today ¡ ì Amazon, ¡Facebook, ¡MicrosoL ¡Bing, ¡Yahoo, ¡… ¡ ASBD'12 ¡ June ¡9th, ¡2012 ¡

  3. 3 ¡ Hadoop ¡Software ¡Stack ¡ ì Hadoop ¡is ¡an ¡all-­‑in-­‑one ¡ so?ware ¡framework ¡that ¡ <es ¡the ¡cluster ¡together ¡ ì ComputaDon ¡– ¡Execute ¡Map ¡and ¡Reduce ¡tasks ¡ ì Storage ¡– ¡User-­‑level ¡filesystem ¡for ¡applica<ons ¡ ì HDFS ¡– ¡Hadoop ¡Distributed ¡File ¡System ¡ ì Scheduling ¡– ¡Distribute ¡jobs ¡across ¡cluster ¡ ì Reliability ¡– ¡Data ¡replica<on, ¡re-­‑spawning ¡failed ¡ jobs ¡ ì Designed ¡for ¡ portability ¡(WriXen ¡in ¡ Java ) ¡ ASBD'12 ¡ June ¡9th, ¡2012 ¡

  4. 4 ¡ Motivating ¡Challenge ¡ 1. I ¡already ¡have ¡a ¡cluster ¡computer ¡ 2. I ¡already ¡have ¡a ¡different ¡distributed ¡file ¡system ¡ running ¡(and ¡exper<se ¡in ¡managing ¡it) ¡ ì File ¡system ¡examples: ¡ PVFS , ¡ Ceph , ¡ Lustre , ¡ GPFS ¡ ì Will ¡refer ¡to ¡them ¡collec<vely ¡as ¡ NewDFS ¡for ¡the ¡ remainder ¡of ¡talk ¡ 3. Hadoop ¡(MapReduce) ¡is ¡only ¡a ¡small ¡part ¡of ¡my ¡ computa<on ¡workload ¡ Hadoop ¡needs ¡to ¡come ¡to ¡me, ¡and ¡not ¡the ¡other ¡way ¡around… ¡ ASBD'12 ¡ June ¡9th, ¡2012 ¡

  5. 5 ¡ Motivating ¡Challenge ¡ ì This ¡is ¡ harder ¡than ¡it ¡sounds ! ¡ ì Hadoop ¡is ¡Dghtly ¡integrated ¡with ¡ HDFS ¡ (Hadoop ¡Distributed ¡File ¡System) ¡ ì Holds ¡data ¡input ¡and ¡computa<on ¡output ¡ How ¡can ¡I ¡use ¡Hadoop ¡to ¡process ¡data ¡stored ¡in ¡ other ¡distributed ¡file ¡systems? ¡ ASBD'12 ¡ June ¡9th, ¡2012 ¡

  6. 6 ¡ Use ¡Hadoop ¡with ¡ NewDFS ¡ Method ¡1: ¡ Copy ¡the ¡data ¡from ¡ NewDFS ¡to ¡ HDFS ¡ ì Pros: ¡Easy ¡ J ¡ ì Cons: ¡ Slow ¡and ¡wastes ¡storage ¡space ¡ ì Method ¡2: ¡Mount ¡ NewDFS ¡using ¡a ¡POSIX ¡driver ¡ ¡ ì (which ¡can ¡be ¡directly ¡accessed ¡in ¡Hadoop) ¡ Pros: ¡Easy; ¡Faster ¡than ¡making ¡a ¡copy ¡first! ¡(but ¡s<ll ¡slow) ¡ ì Cons: ¡Lose ¡Hadoop ¡performance ¡op<miza<ons ¡(like ¡data ¡locality) ¡ ì Method ¡3: ¡Custom ¡soLware ¡layer ¡integrates ¡directly ¡with ¡ ì Hadoop ¡ Pros: ¡Near-­‑na<ve ¡speed ¡ ì Cons: ¡Highest ¡complexity; ¡Requires ¡detailed ¡knowledge ¡of ¡Hadoop ¡ ì and ¡ NewDFS ¡architecture ¡ ASBD'12 ¡ June ¡9th, ¡2012 ¡

  7. 7 ¡ Using ¡Hadoop ¡with ¡ NewDFS ¡ Past ¡Projects ¡ Limita<ons ¡of ¡Prior ¡Work ¡ ì Hadoop ¡with ¡ CloudStore ¡ ì All ¡of ¡these ¡are ¡point ¡ solu<ons ¡ ì Hadoop ¡with ¡ Ceph ¡ Different ¡implementa<on ¡ ì strategies ¡ ì Hadoop ¡with ¡ GPFS ¡ Each ¡require ¡different ¡ ì ì Hadoop ¡with ¡ Lustre ¡ soLware ¡patches ¡to ¡ ¡ Hadoop ¡ ì Hadoop ¡with ¡ PVFS ¡ ì So ¡is ¡this ¡a ¡solved ¡problem? ¡ No! ¡ ¡ ì ASBD'12 ¡ June ¡9th, ¡2012 ¡

  8. 8 ¡ Hadoop ¡Filesystem ¡Agnostic ¡API ¡(HFAA) ¡ ¡ ì Universal, ¡generic ¡interface ¡ ì Allows ¡Hadoop ¡to ¡run ¡on ¡any ¡file ¡system ¡that ¡ supports ¡network ¡sockets ¡ ì Since ¡we’re ¡targeBng ¡distributed ¡file ¡systems, ¡that ¡ should ¡include ¡everyone ¡ ì Design ¡moves ¡integra<on ¡responsibili<es ¡outside ¡of ¡ Hadoop ¡ ì Does ¡not ¡require ¡user ¡or ¡developer ¡knowledge ¡of ¡ the ¡Hadoop ¡framework ¡ ASBD'12 ¡ June ¡9th, ¡2012 ¡

  9. 9 ¡ Traditional ¡Hadoop ¡ Cluster ¡Node ¡ Hadoop ¡MapReduce ¡ ì FileSystem ¡ is ¡Hadoop’s ¡ Applica<on(s) ¡ storage ¡API ¡ HDFS ¡DataNode ¡ TaskTracker ¡ class ¡ FileSystem ¡ + ¡HDFS ¡Client ¡ HDFS ¡Daemon ¡ ì HDFS ¡ ì Local ¡disk ¡ Java ¡Run<me ¡ ì Amazon ¡S3 ¡ Opera<ng ¡System ¡(Linux) ¡ ì Java ¡ implementa<on ¡ Disk ¡ Disk ¡ ASBD'12 ¡ June ¡9th, ¡2012 ¡

  10. 10 ¡ Hadoop ¡+ ¡HFAA ¡ Cluster ¡Node ¡ Hadoop ¡MapReduce ¡ ì Client: ¡ Integrates ¡with ¡ Applica<on(s) ¡ Hadoop ¡(Java) ¡ “NewDFS” ¡ TaskTracker ¡ ì Reusable ¡for ¡ FileSystem ¡ + ¡HFAA ¡Client ¡ HFAA ¡Server ¡ any ¡ NewDFS ¡ ¡ ì Server: ¡ “NewDFS” ¡Daemon ¡ Java ¡Run<me ¡ Integrates ¡with ¡ NewDFS ¡ Opera<ng ¡System ¡(Linux) ¡ (Any ¡language) ¡ Disk ¡ Disk ¡ ASBD'12 ¡ June ¡9th, ¡2012 ¡

  11. 11 ¡ HFAA ¡Operations ¡ FuncDon ¡ ì Fundamental ¡Hadoop ¡storage ¡opera<ons ¡ Open ¡ Create ¡ ì How ¡do ¡we ¡know ¡API ¡is ¡complete? ¡ Append ¡ Every ¡class ¡that ¡extends ¡ FileSystem ¡ ì (including ¡HFAA) ¡must ¡implement ¡these ¡ Rename ¡ abstract ¡methods ¡ Delete ¡ List ¡Status ¡ Make ¡Directories ¡ Get ¡File ¡State ¡ Write ¡ Read ¡ ASBD'12 ¡ June ¡9th, ¡2012 ¡

  12. 12 ¡ Evaluation ¡ System ¡ Architectures ¡Compared ¡ ì HFAA ¡prototype ¡wriXen ¡for ¡ Raw ¡disk ¡(outside ¡Hadoop) ¡ 1. Hadoop ¡+ ¡PVFS ¡ Hadoop ¡with ¡na<ve ¡HDFS ¡ 2. Hadoop ¡0.20.204.0 ¡ ì ì Released ¡Sept ¡5 th , ¡2011 ¡ Hadoop ¡with ¡OrangeFS ¡ ¡ 3. OrangeFS ¡2.8.4 ¡ ì using ¡POSIX ¡driver ¡ ì Branch ¡of ¡PVFS ¡ Hadoop ¡with ¡OrangeFS ¡ ¡ 4. ì Run ¡on ¡small ¡4-­‑node ¡cluster ¡ using ¡HFAA ¡ ì Streaming ¡reads ¡and ¡writes ¡ ASBD'12 ¡ June ¡9th, ¡2012 ¡

  13. 13 ¡ Evaluation ¡ 140 ¡ 120 ¡ Bandwidth ¡(MB/s) ¡ 100 ¡ 80 ¡ 60 ¡ 40 ¡ 20 ¡ 0 ¡ Streaming ¡Write ¡ Streaming ¡Read ¡ Raw ¡Disk ¡ Hadoop+HDFS ¡ Hadoop+OFS ¡ Hadoop+HFAA+OFS ¡ ASBD'12 ¡ June ¡9th, ¡2012 ¡

  14. 14 ¡ Next ¡Steps ¡ Performance ¡Op<miza<ons ¡ Broader ¡Compa<bility ¡ Expose ¡ file ¡system ¡locality ¡ to ¡ ì Implement ¡HFAA ¡Server ¡ ì Hadoop ¡scheduler ¡ component ¡for ¡ other ¡ More ¡important ¡when ¡we ¡ ì popular ¡file ¡systems ¡ test ¡on ¡larger ¡clusters ¡ Lustre? ¡ ¡ ì Socket ¡re-­‑use ¡ between ¡ ì Ceph? ¡ ì requests ¡ Others? ¡ ì Less ¡detrimental ¡because ¡ ì HDFS ¡moves ¡64MB ¡data ¡ ì Release ¡for ¡ Hadoop ¡1.0.x ¡ block ¡per ¡request ¡ family ¡ Tune , ¡ tune , ¡ tune ! ¡ ì ASBD'12 ¡ June ¡9th, ¡2012 ¡

  15. 15 ¡ Summary ¡ ì Hadoop ¡Filesystem ¡AgnosDc ¡API ¡(HFAA) ¡ Generic ¡interface ¡supports ¡any ¡distributed ¡file ¡system ¡ ì ì Implementa<on ¡includes ¡two ¡components ¡ HFAA ¡Client ¡– ¡Interfaces ¡with ¡Hadoop ¡ ì HFAA ¡Server ¡– ¡Interfaces ¡with ¡PVFS ¡ ì ì Client ¡can ¡be ¡re-­‑used ¡with ¡all ¡future ¡filesystems ¡ Have ¡a ¡new ¡filesystem ¡you ¡like? ¡ ì You ¡only ¡need ¡to ¡understand ¡your ¡filesystem ¡and ¡our ¡ ì simple ¡API ¡to ¡link ¡it ¡to ¡Hadoop ¡ ì You ¡don’t ¡have ¡to ¡be ¡a ¡Hadoop ¡expert ¡ ASBD'12 ¡ June ¡9th, ¡2012 ¡

  16. 16 ¡ Questions? ¡ ? ¡ ? ¡ ? ¡ ASBD'12 ¡ June ¡9th, ¡2012 ¡

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend