Apache TrafodionTM (incubating)
Enterprise-Class Transactional SQL-on-Hadoop DBMS
1
trafodion.apache.org
Brief Bio Rohit Jain is the CTO at Esgyn working on Apache Trafodion - - PowerPoint PPT Presentation
Apache Trafodion TM (incubating) Enterprise-Class Transactional SQL-on-Hadoop DBMS trafodion.apache.org 1 Brief Bio Rohit Jain is the CTO at Esgyn working on Apache Trafodion TM , currently in incubation. Trafodion is a transactional
1
trafodion.apache.org
2
Rohit Jain CTO, Esgyn rohit.jain@esgyn.com Rohit Jain is the CTO at Esgyn working on Apache TrafodionTM, currently in incubation. Trafodion is a transactional SQL-on-HBase
the last 28 of his 39 years in application and database development. He has worked as an application developer, solutions architect, consultant, software engineer, database architect, development and QA manager, Product Manager, and Chief Technologist. His experience spans Online Transaction Processing, Operational Data Stores, Data Marts, Enterprise Data Warehouses, Business Intelligence, and Advanced Analytics, on distributed massively parallel systems.
3
Rides the unstoppable Apache HadoopTM wave!
Transforms how companies store, process, and share big data Affordable performance, elastic scalability, availability
Open source project - downloadable for free
Apache TrafodionTM is currently undergoing Incubation at the Apache Software Foundation Eliminates vendor lock-in and licensing fees Leverages community development resources and speed
Schema flexibility and multi-structured data
Capturing and storing all data for all business functions
Full-function ANSI SQL with JDBC/ODBC access
Leverages existing SQL skills, tools, & apps for productivity
Distributed ACID transaction protection
Data consistency across multiple rows, tables, SQL statements
Targeted for operational workloads!
Optimized for real-time transaction processing applications,
needing sub-second response times at high levels of concurrency
Data federation: Trafodion/HBase/Hive tables
Enables multiple data model deployment with schema flexibility
Open source project to develop operational SQL-on-Hadoop database engine
4
OLTP
3rd party solutions
web-scale
ODS
Business internal
from OLTP
internal, high otherwise
BI
from OLTP/ODS
dashboards
queries and large extracts
Analytics
linear scale
Essential to operate the business To improve performance of the company
5
Hadoop Cluster
Switch Switch
Shared Disk SAN
Shared Cache
Operational Business Intelligence Analytics
Data movement & duplication Data movement & duplication Column store for fast analytics
Operational Business Intelligence Analytics
Enterprise Resource Planning Customer Relationship Management Supply Chain Management Financial Resource Management Manufacturing Resource Planning Human Resource Management
ORC Files
6
NonStop Mission Critical OLTP system
Hadoop Cluster
Switch Switch Commercial & Consumer Banking Transactions Change Data Capture Streaming real-time updates
Operational Data Store
Daily transactional Data Multiple years of transactions & statements
Change Data Capture
IBM Mainframe
Monthly transactional Data Enrich data Enhance UX
7
Billing & Revenue Mgt Mediation Fulfillment Intelligent Network (IN), Home Location Register (HLR), Mobile Switching Center (MSC), SMS Center (SMSC), and network elements for other value added services like Push-to-talk (PTT), Ring Back Tone (RBT)
SMSC IN HLR HRBT ICS PTT MDSP MMSC
For closed loop analytics Trafodion for transactions to operational reporting Audio Social Media Images Email Video Documents Texts Unstructured data Semi-structured data
8
structured, and unstructured support
external (Big) data along common master data for better insights
Item id Description Cost Price …
Structured
Type Display Size Resolution Brand Model 3D …
…
ISBN Author Publish Date Format Dept
TV Book
…
Semi- structured SELECT all TVs WHERE Price > 2000 and Type = ‘Plasma’ and Display Size > ‘50’ and customer sentiment is very positive Unstructured
Image … Review …
Open distributed HDFS structures HBase & Hive
Free at last!
Capture data directly into
Accessible for reporting & analytics with no latency
9
Asset Management
jewelry, cases, covers, cards, teddy bears, … Shopping
OLTP on Hadoop
Versus RDBMS & NoSQL
latency workloads
Trafodion
10
Trafodion Create album
INSERT into Trafodion table ALBUM (cust_id, album_id, album_name, …)
Upload pictures
Pictures loaded into HDFS by app BEGIN WORK INSERT list of pictures uploaded into Trafodion table PIC (cust_id, album_id, pic_id, pic_date, …) INSERT picture attributes from camera into HBase table PIC_ATTR as col-value pairs for each of the pictures using pic_id END WORK Transaction
Tag pictures
BEGIN WORK INSERT custom tags for each tagged picture into HBase table PIC_ATTR as col-value pairs END WORK
Share pictures
INSERT into Trafodion table REL (cust_id, rel_with_cust_id, rel-type, …) BEGIN WORK INSERT list of pictures shared into Trafodion table SHARED_PIC (pic_id, rel_with_cust_id) END WORK
Order photo mug & jewelry
BEGIN WORK INSERT into ORDER (cust_id, order_no, order_date, order_total, …) INSERT into ORDER_DETAIL all items that are part of the order (cust_id, order_no, item_id, pic_id, qty, amt, …) END WORK
Search for pictures
SELECT pictures taken with my “Sony DSC- RX100M2” camera in the last 6 months from my “Travel” album with a tag “Emma” on it.
Backend operational workloads
Order tracking, supply chain, inventory control, …
Versus RDBMS & NoSQL
structured, & unstructured data Various technologies can be used to analyze the pictures to automatically create tags stored in HBase PIC_ATTR OLTP OLTP OLTP ODS ODS
11
Trafodion Reporting & Analytics via Spark Analytics in Spark to generate recommendation model
Web app
Using model & customer score / attributes, and recent purchase history make recommendations
Rohit, consider a blanket for your granddaughter at 50% off with her image imprinted on it 50%
BI reporting
product, region, demo
pictures, storage, …
Analytics
market basket analysis
customer classification
Versus RDBMS & NoSQL
Spark OLTP BI Analytics
12
– Shared nothing Massively Parallel Architecture – With a single system image across clusters
– On building OLTP and BI engines
ANSI and non-ANSI functionality supported, performance, scalability, concurrency, throughput, stability, high availability, transactional, and myriad of
Amazing we were able to convince HP to open source this IP to give Trafodion an unfair advantage!
13
–
Reduces search space
–
Recognizes patterns such as star joins
–
Nested and nested cache for operational
–
Merge and hybrid has for large complex queries
–
Filters e.g. row selection (start-stop key)
–
Coprocessors e.g. pre-aggregation
–
To avoid scans when no predicates on leading key columns specified
–
Uses hash group by to avoid sorts
–
Leverages key order
–
Does in-memory sort when possible
Built & tuned to handle complexities & differences inherent in varied enterprise class workloads
14
constraints during insertion to ensure the integrity of the data
can update or access data
parallelism in accessing data while engine is busy processing
LLVM to speed-up processing
Node 1 Node 2 Node n
Client Application HDFS
HBase HBase HBase
Filters
HDFS HDFS HDFS HDFS
Ethernet
Coprocessors
–
Intermediate results materialized only for blocking
–
Data overflow to disk only for large hash joins
Master
ESP ESP ESP ESP ESP ESP ESP ESP ESP ESP
Master
Multi- fragment
Supports salting of data across region servers
15
16
Leverages Hadoop for core modules
Differentiation
workload optimizations
native-HBase, and Hive tables
17
YCSB operation speeds that approach Apache HBaseTM
With max variance at 10.8%
128 256 384 512 640 768 896 1,024 Throughput (OPS) Concurrency (Streams)
YCSB Singleton5050 (Workload A)
Traf 1.1 HBase
18
YCSB and Order Entry scale linearly!
Transactional Order Entry
Throughput
YCSB
Selects Updates 50/50
Throughput Throughput Throughput
19
Minimum distributed transaction management overhead
Order Entry: multi-statement transactional workload
Status, Deliver, and Stock Level checks
128 256 384 512 640 768 896 1,024 Throughput (TPM) Concurrency (Streams)
OrderEntry
Traf 1.1 Autcommit
With max variance at 11.3%
20
Released as open source under the Apache License, Version 2 in June 2014 First “production ready” 1.0 release in January 2015 Follow-on 1.1 release in April 2015
Build an open source community around Apache TrafodionTM
21
Discuss your changes on the dev mailing list Create a JIRA issue Setup your development environment Prepare a patch containing your changes Submit the patch
22
23
24
trafodion.apache.org trafodion.incubator.apache.org esgyn.com