MapR, Implications for Integration
Upcoming SlideShare
Loading in...5
×
 

Like this? Share it with your network

Share

MapR, Implications for Integration

on

  • 2,764 views

Ted Dunning's talk for the Sept. 2011 TriHUG (www.trihug.org) meeting. Cover's MapR's distributed file system and map-reduce technology.

Ted Dunning's talk for the Sept. 2011 TriHUG (www.trihug.org) meeting. Cover's MapR's distributed file system and map-reduce technology.

Statistics

Views

Total Views
2,764
Views on SlideShare
1,492
Embed Views
1,272

Actions

Likes
0
Downloads
65
Comments
0

5 Embeds 1,272

http://www.trihug.org 1242
http://dev-wiki.rakuten.co.jp 12
http://dev-wiki.rakuten.co.jp 12
http://www.tumblr.com 4
http://trihug.tumblr.com 2

Accessibility

Categories

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

MapR, Implications for Integration Presentation Transcript

  • 1. MapR, Implications for Integration
    CHUG – August 2011
  • 2. Outline
    MapR system overview
    Map-reduce review
    MapR architecture
    Performance Results
    Map-reduce on MapR
    Architectural implications
    Search indexing / deployment
    EM algorithm for machine learning
    … and more …
  • 3. Map-Reduce
    Shuffle
    Input
    Output
  • 4. Bottlenecks and Issues
    Read-only files
    Many copies in I/O path
    Shuffle based on HTTP
    Can’t use new technologies
    Eats file descriptors
    Spills go to local file space
    Bad for skewed distribution of sizes
  • 5. MapR Areas of Development
  • 6. MapR Improvements
    Faster file system
    Fewer copies
    Multiple NICS
    No file descriptor or page-buf competition
    Faster map-reduce
    Uses distributed file system
    Direct RPC to receiver
    Very wide merges
  • 7. MapR Innovations
    Volumes
    Distributed management
    Data placement
    Read/write random access file system
    Allows distributed meta-data
    Improved scaling
    Enables NFS access
    Application-level NIC bonding
    Transactionally correct snapshots and mirrors
  • 8. MapR'sContainers
    Files/directories are sharded into blocks, whichare placed into mini NNs (containers ) on disks
    • Each container contains
    • 9. Directories & files
    • 10. Data blocks
    • 11. Replicated on servers
    • 12. No need to manage directly
    Containers are 16-32 GB segments of disk, placed on nodes
  • 13. Container locations and replication
    CLDB
    N1, N2
    N1
    N3, N2
    N1, N2
    N2
    N1, N3
    N3, N2
    N3
    Container location database (CLDB) keeps track of nodes hosting each container
  • 14. MapR Scaling
    Containers represent 16 - 32GB of data
    • Each can hold up to 1 Billion files and directories
    • 15. 100M containers = ~ 2 Exabytes (a very large cluster)
    250 bytes DRAM to cache a container
    • 25GB to cache all containers for 2EB cluster
    • 16. But not necessary, can page to disk
    • 17. Typical large 10PB cluster needs 2GB
    Container-reports are 100x - 1000x < HDFS block-reports
    • Serve 100x more data-nodes
    • 18. Increase container size to 64G to serve 4EB cluster
    • 19. Map/reduce not affected
  • MapR's Streaming Performance
    11 x 7200rpm SATA
    11 x 15Krpm SAS
    MB
    per
    sec
    Higher is better
    Tests: i. 16 streams x 120GB ii. 2000 streams x 1GB
  • 20. Terasort on MapR
    10+1 nodes: 8 core, 24GB DRAM, 11 x 1TB SATA 7200 rpm
    Elapsed time (mins)
    Lower is better
  • 21. HBase on MapR
    YCSB Random Read with 1 billion 1K records
    10+1 node cluster: 8 core, 24GB DRAM, 11 x 1TB 7200 RPM
    Recordspersecond
    Higher is better
  • 22. Small Files (Apache Hadoop, 10 nodes)
    Out of box
    Op: - create file - write 100 bytes - close
    Notes:
    - NN not replicated
    - NN uses 20G DRAM
    - DN uses 2G DRAM
    Tuned
    Rate (files/sec)
    # of files (m)
  • 23. MUCH faster for some operations
    Same 10 nodes …
    Create
    Rate
    # of files (millions)
  • 24. What MapR is not
    Volumes != federation
    MapR supports > 10,000 volumes all with independent placement and defaults
    Volumes support snapshots and mirroring
    NFS != FUSE
    Checksum and compress at gateway
    IP fail-over
    Read/write/update semantics at full speed
    MapR != maprfs
  • 25. New Capabilities
  • 26. NFS mounting models
    Export to the world
    NFS gateway runs on selected gateway hosts
    Local server
    NFS gateway runs on local host
    Enables local compression and check summing
    Export to self
    NFS gateway runs on all data nodes, mounted from localhost
  • 27. Export to the world
    NFS
    Server
    NFS
    Server
    NFS
    Server
    NFS
    Server
    NFS
    Client
  • 28. Local server
    Client
    Application
    NFS
    Server
    Cluster Nodes
  • 29. Universal export to self
    Cluster Nodes
    Cluster
    Node
    Task
    NFS
    Server
  • 30. Cluster
    Node
    Task
    NFS
    Server
    Cluster
    Node
    Task
    Cluster
    Node
    Task
    NFS
    Server
    NFS
    Server
    Nodes are identical
  • 31. Application architecture
    So now we have a hammer
    Let’s find us some nails!
  • 32. Sharded text Indexing
    Index text to local disk and then copy index to distributed file store
    Assign documents to shards
    Map
    Reducer
    Clustered index storage
    Input documents
    Copy to local disk typically required before index can be loaded
    Local
    disk
    Search
    Engine
    Local
    disk
  • 33. Shardedtext indexing
    Mapper assigns document to shard
    Shard is usually hash of document id
    Reducer indexes all documents for a shard
    Indexes created on local disk
    On success, copy index to DFS
    On failure, delete local files
    Must avoid directory collisions
    can’t use shard id!
    Must manage and reclaim local disk space
  • 34. Conventional data flow
    Failure of search engine requires another download of the index from clustered storage.
    Map
    Failure of a reducer causes garbage to accumulate in the local disk
    Reducer
    Clustered index storage
    Input documents
    Local
    disk
    Search
    Engine
    Local
    disk
  • 35. Simplified NFS data flows
    Index to task work directory via NFS
    Map
    Reducer
    Search
    Engine
    Input documents
    Clustered index storage
    Failure of a reducer is cleaned up by map-reduce framework
    Search engine reads mirrored index directly.
  • 36. Simplified NFS data flows
    Search
    Engine
    Mirroring allows exact placement of index data
    Map
    Reducer
    Input documents
    Search
    Engine
    Aribitrary levels of replication also possible
    Mirrors
  • 37. How about another one?
  • 38. K-means
    Classic E-M based algorithm
    Given cluster centroids,
    Assign each data point to nearest centroid
    Accumulate new centroids
    Rinse, lather, repeat
  • 39. K-means, the movie
    Centroids
    Assign
    to
    Nearest
    centroid
    I
    n
    p
    u
    t
    Aggregate
    new
    centroids
  • 40. But …
  • 41. Parallel Stochastic Gradient Descent
    Model
    Train
    sub
    model
    I
    n
    p
    u
    t
    Average
    models
  • 42. VariationalDirichlet Assignment
    Model
    Gather
    sufficient
    statistics
    I
    n
    p
    u
    t
    Update
    model
  • 43. Old tricks, new dogs
    Mapper
    Assign point to cluster
    Emit cluster id, (1, point)
    Combiner and reducer
    Sum counts, weighted sum of points
    Emit cluster id, (n, sum/n)
    Output to HDFS
    Read from local disk from distributed cache
    Read from
    HDFS to local disk by distributed cache
    Written by map-reduce
  • 44. Old tricks, new dogs
    Mapper
    Assign point to cluster
    Emit cluster id, (1, point)
    Combiner and reducer
    Sum counts, weighted sum of points
    Emit cluster id, (n, sum/n)
    Output to HDFS
    Read from
    NFS
    Written by map-reduce
    MapR FS
  • 45. Poor man’s Pregel
    Mapper
    Lines in bold can use conventional I/O via NFS
    while not done:
    read and accumulate input models
    for each input:
    accumulate model
    write model
    synchronize
    reset input format
    emit summary
    37
  • 46. Click modeling architecture
    Map-reduce
    Side-data
    Now via NFS
    Feature
    extraction
    and
    down
    sampling
    I
    n
    p
    u
    t
    Data
    join
    Sequential
    SGD
    Learning
  • 47. Click modeling architecture
    Map-reduce
    Map-reduce
    Side-data
    Map-reduce cooperates with NFS
    Sequential
    SGD
    Learning
    Feature
    extraction
    and
    down
    sampling
    Sequential
    SGD
    Learning
    I
    n
    p
    u
    t
    Data
    join
    Sequential
    SGD
    Learning
    Sequential
    SGD
    Learning
  • 48. And another…
  • 49. Hybrid model flow
    Map-reduce
    Map-reduce
    Feature extraction
    and
    down sampling
    Down
    stream
    modeling
    Deployed
    Model
    ??
    SVD
    (PageRank)
    (spectral)
  • 50.
  • 51. Hybrid model flow
    Feature extraction
    and
    down sampling
    Down
    stream
    modeling
    Deployed
    Model
    Sequential
    Map-reduce
    SVD
    (PageRank)
    (spectral)
  • 52. And visualization…
  • 53. Trivial visualization interface
    Map-reduce output is visible via NFS
    Legacy visualization just works
    $ R
    > x <- read.csv(“/mapr/my.cluster/home/ted/data/foo.out”)
    > plot(error ~ t, x)
    > q(save=‘n’)
  • 54. Conclusions
    We used to know all this
    Tab completion used to work
    5 years of work-arounds have clouded our memories
    We just have to remember the future