• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
Drill Bay Area HUG 2012-09-19
 

Drill Bay Area HUG 2012-09-19

on

  • 2,529 views

 

Statistics

Views

Total Views
2,529
Views on SlideShare
2,346
Embed Views
183

Actions

Likes
6
Downloads
57
Comments
1

5 Embeds 183

http://www.mapr.com 178
https://twitter.com 2
https://si0.twimg.com 1
http://mapr.com 1
http://72.249.109.133 1

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

11 of 1 previous next

  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
  • Great intro to what Apache Drill will be able to do. This will be a very important addition to the 'Hadoop Stack' (though it could eventually work with other Big Data backends as well)
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment
  • Drill Remove schema requirementIn-situ for real since we’ll support multiple formatsNote: MR needed for big joins so to speak
  • DrillWill support nestedNo schema required
  • Load data into Drill (optional)Could just use as is in “row” formatMultiple query languagesPluggability very important
  • Likely to support theseCould add HiveQL and more as well. Could even be clever and support HiveQL to MR or Drill based upon queryPig as wellPluggabilityData formatQuery languageSomething 6-9 months alpha qualityCommunity driven, I can’t speak for projectMapRFS gives better chunk size controlNFS support may make small test drivers easierUnified namespace will allow multi-cluster accessMight even have drill component that autoformats dataRead only model
  • Protocol buffers are conceptual data modelWill support multiple data modelsWill have to define a way to explain data format (filtering, fields, etc)Schema-less will have perf penaltyHbase will be one format
  • Example query that Drill should supportNeed to talk more here about what Dremel does
  • Note: we have an already partially built execution engine
  • Be prepared for Apache questionsCommitter vs committee vs contributorIf can’t answer question, ask them to answer and contributeLisa - Need landing pageReferences to paper and such at end

Drill Bay Area HUG 2012-09-19 Drill Bay Area HUG 2012-09-19 Presentation Transcript

  • Apache DrillInteractive Analysis of Large-Scale Datasets Jason Frantz Architect, MapR
  • My Background• Caltech• Clustrix• MapR• Founding member of Apache Drill
  • MapR Technologies• The open enterprise-grade distribution for Hadoop – Easy, dependable and fast – Open source with standards-based extensions• MapR is deployed at 1000’s of companies – From small Internet startups to the world’s largest enterprises• MapR customers analyze massive amounts of data: – Hundreds of billions of events daily – 90% of the world’s Internet population monthly – $1 trillion in retail purchases annually• MapR has partnered with Google to provide Hadoop on Google Compute Engine
  • Latency Matters• Ad-hoc analysis with interactive tools• Real-time dashboards• Event/trend detection and analysis – Network intrusions – Fraud – Failures
  • Big Data Processing Batch processing Interactive analysis Stream processingQuery runtime Minutes to hours Milliseconds to Never-ending minutesData volume TBs to PBs GBs to PBs Continuous streamProgramming MapReduce Queries DAGmodelUsers Developers Analysts and Developers developersGoogle project MapReduce DremelOpen source Hadoop Storm and S4project MapReduce Introducing Apache Drill…
  • GOOGLE DREMEL
  • Google Dremel• Interactive analysis of large-scale datasets – Trillion records at interactive speeds – Complementary to MapReduce – Used by thousands of Google employees – Paper published at VLDB 2010 • Authors: Sergey Melnik, Andrey Gubarev, Jing Jing Long, Geoffrey Romer, Shiva Shivakumar, Matt Tolton, Theo Vassilakis• Model – Nested data model with schema • Most data at Google is stored/transferred in Protocol Buffers • Normalization (to relational) is prohibitive – SQL-like query language with nested data support• Implementation – Column-based storage and processing – In-situ data access (GFS and Bigtable) – Tree architecture as in Web search (and databases)
  • Google BigQuery• Hosted Dremel (Dremel as a Service)• CLI (bq) and Web UI• Import data from Google Cloud Storage or local files – Files must be in CSV format • Nested data not supported [yet] except built-in datasets – Schema definition required
  • APACHE DRILL
  • Architecture• Only the execution engine knows the physical attributes of the cluster – # nodes, hardware, file locations, …• Public interfaces enable extensibility – Developers can build parsers for new query languages – Developers can provide an execution plan directly• Each level of the plan has a human readable representation – Facilitates debugging and unit testing
  • Architecture (2)
  • Execution Engine Layers• Drill execution engine has two layers – Operator layer is serialization-aware • Processes individual records – Execution layer is not serialization-aware • Processes batches of records (blobs) • Responsible for communication, dependencies and fault tolerance
  • Data Flow
  • Nested Query Languages• DrQL – SQL-like query language for nested data – Compatible with Google BigQuery/Dremel • BigQuery applications should work with Drill – Designed to support efficient column-based processing • No record assembly during query processing• Mongo Query Language – {$query: {x: 3, y: "abc"}, $orderby: {x: 1}}• Other languages/programming models can plug in
  • Nested Data Model• The data model in Dremel is Protocol Buffers – Nested – Schema• Apache Drill is designed to support multiple data models – Schema: Protocol Buffers, Apache Avro, … – Schema-less: JSON, BSON, …• Flat records are supported as a special case of nested data – CSV, TSV, … Avro IDL JSON enum Gender { { MALE, FEMALE "name": "Srivas", } "gender": "Male", "followers": 100 record User { } string name; { Gender gender; "name": "Raina", long followers; "gender": "Female", } "followers": 200, "zip": "94305" }
  • DrQL ExampleSELECT DocId AS Id, COUNT(Name.Language.Code) WITHIN Name ASCnt, Name.Url + , + Name.Language.Code ASStrFROM tWHERE REGEXP(Name.Url, ^http) AND DocId < 20; * Example from the Dremel paper
  • Query Components• Query components: – SELECT – FROM – WHERE – GROUP BY – HAVING – (JOIN)• Key logical operators: – Scan – Filter – Aggregate – (Join)
  • Extensibility• Nested query languages – Pluggable model – DrQL – Mongo Query Language – Cascading• Distributed execution engine – Extensible model (eg, Dryad) – Low-latency – Fault tolerant• Nested data formats – Pluggable model – Column-based (ColumnIO/Dremel, Trevni, RCFile) and row-based (RecordIO, Avro, JSON, CSV) – Schema (Protocol Buffers, Avro, CSV) and schema-less (JSON, BSON)• Scalable data sources – Pluggable model – Hadoop – HBase
  • Scan Operators• Drill supports multiple data formats by having per-format scan operators • Queries involving multiple data formats/sources are supported• Fields and predicates can be pushed down into the scan operator• Scan operators may have adaptive side-effects (database cracking) • Produce ColumnIO from RecordIO • Google PowerDrill stores materialized expressions with the data Scan with schema Scan without schemaOperator Protocol Buffers JSON-like (MessagePack)outputSupported ColumnIO (column-based protobuf/Dremel) JSONdata formats RecordIO (row-based protobuf) HBase CSVSELECT … ColumnIO(proto URI, data URI) Json(data URI)FROM … RecordIO(proto URI, data URI) HBase(table name)
  • Design PrinciplesFlexible Easy• Pluggable query languages • Unzip and run• Extensible execution engine • Zero configuration• Pluggable data formats • Reverse DNS not needed • Column-based and row-based • IP addresses can change • Schema and schema-less • Clear and concise log messages• Pluggable data sourcesDependable Fast• No SPOF • C/C++ core with Java support• Instant recovery from crashes • Google C++ style guide • Min latency and max throughput (limited only by hardware)
  • Hadoop Integration• Hadoop data sources – Hadoop FileSystem API (HDFS/MapR-FS) – HBase• Hadoop data formats – Apache Avro – RCFile• MapReduce-based tools to create column-based formats• Table registry in HCatalog• Run long-running services in YARN
  • Get Involved!• Download these slides – http://www.mapr.com/company/events/bay-area-hug/9-19-2012• Join the mailing list – drill-dev-subscribe@incubator.apache.org• Join MapR – jobs@mapr.com