SAP HANA Cookbook
for MySQL Developers
Access Advanced Analytic Capabilities
by Pairing MySQL with SAP HANA One
About the Authors
Swapan Saha, an enterprise software leader with 18 years of experience at leading
Information Technology vendors (SAP, Sun Microsystems & Tibco) in developing and marketing
enterprise software platforms, tools and solutions in SAP HANA in Cloud, Cloud BI, Supplier
Relationship Management (SRM), Governance and Risk Compliance (GRC), e-Commerce,
Trading, and Energy Management to 1000s of global customers. In last three years, as the
architect and product manager, he delivered three new cloud solutions - SAP HANA One
(Database as a service) on October 2012, SAP HANA Infrastructure Subscription on October
2013 and SAP HANA DB Subscription on March 2014 with an accelerated schedule.He brought
and engaged with first 1000 HANA One customers from 55 countries. He received his Ph.D.
in Electrical Engineering at Iowa State University, Ames, IA, USA. He received his Masters in
Electrical Engineering at Indian Institute of Technology, Kharagpur and Bachelor in Electrical
Engineering at Indian Institute of Engineering Science and Technology, Shibpur, India (formerly
University of Calcutta).
Ashish Sahu is Director of SAP HANA Predictive, Text, and Spatial Analytics for SAP Global
Marketing. He has more than 9 years of experience launching internet and mobile products
at Amazon, CheckPoint and Motorola. Prior to SAP, he launched an event science and
recommendation engine startup, Wazaap Inc. (http://getwazaap.com). Ashish has an MBA
from Haas, Berkeley and Masters in Information Systems from IIM India.
SAP HANA Cookbook for MySQL Developers Project
SAP HANA Cookbook project brings Big Data Advanced Analytics functionalities
like Ad-hoc BI, Predictive, Text Mining and Geospatial processing to your MySQL
landscape. Learn how to quickly load, process and analyze data stored in your
MySQL db by pairing with a modern in-memory platform, SAP HANA.
SAP HANA Cookbook for MySQL Developers
By: Dr. Swapan Saha, Senior Director, HANA Cloud Engineering
Ashish Sahu, Director, HANA Marketing (Advanced Analytics)
SAP HANA is a modern in-memory columnar database to capture, store, and query terabytes of data in real-time. Its
ability to simultaneously store (OLTP) and analyze (OLAP) large volumes of data gives developers a unique ability to
build advanced analytic applications that operates at scale in a real-time environment. With SAP HANA, you will be
Turbo-charge your applications
Accelerate under performing applications by delivering real-time insights and snappy user experience.
Leverage Ad-hoc Analytics
Legacy databases are mediocre at running analytics while inserting transaction data due to locking bottlenecks and
excruciating slow joins. SAP HANA One allows you manage and analyze large volumes of data even when it is flooded
with machine-generated data
Perform Multi-engine Query Processing
Use SQL to perform predictive, text and geospatial analytics by combining relational with unstructured text and
SAP HANA One is an instant delivery mechanism of SAP HANA in the cloud (available on AWS) with hourly pricing for
You can build amazing web or mobile applications by taking advantage of SAP HANA’s powerful advanced analytics ca-
pabilities like predictive, NLP (Natural Language Processing) and geospatial processing available right out-of-the-box.
No need to download, install or configure anything. The functionality is also available in a SQL programming paradigm
so it is very easy to learn and use. More than 1,200 startups have chosen SAP HANA to build their next-generation Big
Data, predictive or real-time analytic solutions.
The SAP HANA Cookbook provides real examples, code snippets and tutorials to help MySQL developers run advanced
in-memory analytics alongside their MySQL landscape.
We have created a cookbook to help you get maximum mileage out of your MySQL landscape by pairing it with
SAP HANA. Here’s a list of what you can do:
1. Run SAP HANA One side-by-side with MySQL
2. Use Open Source ETL to batch load MySQL data into SAP HANA One
3. Make your apps location-intelligent by running geospatial processing on SAP HANA One
4. Perform ad-hoc analytics with your MySQL data moved loaded on SAP HANA One
5. Leverage full-text search, natural language processing and sentiment intelligence in SAP HANA One
6. Build predictive applications using native or R algorithms using SAP HANA One
Launch Your HANA One Instance
As a developer, you can start with SAP HANA Developer edition which offers a free HANA license and lower
infrastructure cost. Once you are ready for production, you can switch to SAP HANA One. The following two videos
will walk you through the subscription and configuration of SAP HANA One on AWS Marketplace. Note, the process
is the same but newer versions may have minor differences in look and feel.
Subscribe to SAP HANA One video tutorial
Configure SAP HANA One video tutorial
Use Open Source ETL to load MySQL Data into SAP HANA One
Once you have SAP HANA One up and running, you may need to bring your application data from MySQL to SAP
HANA. It is your choice which ETL tool to use to replicate your MySQL data into SAP HANA, try out one of the two
tools used to load data from MySQL to SAP HANA.
Move MySQL data using Pentaho into SAP HANA One
• Use Talend to Sync Data from MySQL to SAP HANA (Part I)
• Use Talend to Sync Data from MySQL to SAP HANA (Part II)
• Sync Data from My SQL to HANA DB with Pentaho (Part I)
• Sync Data from My SQL to HANA DB with Pentaho (Part II)
Make Your Apps Location-Intelligent
Building geospatial analysis capability in SAP HANA
This step by step guide shows how you can use geospatial analysis in SAP HANA One
• Experiences with SAP HANA Geo-Spatial Features – Part 1
• Experiences with SAP HANA Geo-Spatial Features – Part 2
Perform Ad-hoc Analytics
Ad-hoc analytics in SAP HANA
This step by step guide shows how you can perform ad-hoc analytics in MySQL and in SAP HANA One.
• Ad-hoc Analysis Comparison with MYSQL & SAP HANA One
• Ad-hoc Analysis Comparison with MYSQL & SAP HANA One - Continued
Leverage full-text search, natural language processing and sentiment intelligence
in SAP HANA One
See how I built a real-time movie rating app by using SAP HANA’s sentiment analysis capability on social media
(twitter, user forum) data.
Real-time sentiment rating of movies on SAP HANA One
Build predictive applications using native or R algorithms using SAP HANA One
SAP HANA integrates R language directly so it becomes really easy to write predictive algorithms using R’s abundant
external packages. We will use R’s recommenderlab to do movie recommendations. We also get many evaluation re-
sults from these different recommenders, so that we can choose the best recommender based on one specific training
How we built a Movie Recommendation engine by leveraging R on SAP HANA
Visualize Your Success
SAP Lumira delivers beautiful analytics, allowing you to easily convey and share knowledge. Discover hidden
patterns and transform the way you see your business.
• Create Elegant Stories using SAP Lumira SP12 Personal Edition – Now available for free
Use SAP Lumira for data discovery and advanced visualization video tutorial
After you experience the power of SAP HANA One, you will ask yourself why are spending long hours moving data
from legacy database to data warehouse when you can seamlessly perform OLTP and OLAP on the same data store.
To learn more about Advanced Analytics on SAP HANA, go to http://saphana.com/advanced-analytics. We will be
adding more chapters on NLP and Predictive to the cookbook so make sure you signup to our SAP HANA Cookbook
newsletter so you don’t miss these exciting updates!
• SAP HANA One Support
• SAP HANA Developer Center on SCN
• SAP HANA Academy
Disclaimer: SAP or SAP Subsidiaries does not promote or endorse any 3rd party software and licenses. Please check
with your provide or IT administrator for details.
SAP HANA Cookbook Landing Page