Big Data and NoSQL for Database and BI Pros


Published on

Big Data and NoSQL for Database and BI Pros - Visual Studio Live! March2013

Published in: Technology
1 Like
  • Be the first to comment

No Downloads
Total views
On SlideShare
From Embeds
Number of Embeds
Embeds 0
No embeds

No notes for slide

Big Data and NoSQL for Database and BI Pros

  1. 1. Big Data-BI Fusion:Microsoft HDInsight & MS BILevel: IntermediateMarch 28, 2013Andrew BrustCEO and FounderBlue Badge Insights
  2. 2. • CEO and Founder, Blue Badge Insights• Big Data blogger for ZDNet• Microsoft Regional Director, MVP• Co-chair VSLive! and 18 years as a speaker• Founder, MS BI and Big Data User Group of NYC–• Co-moderator, NYC .NET Developers Group–• “Redmond Review” columnist forVisual Studio Magazine and Redmond DeveloperNews•, Twitter: @andrewbrustMeet Andrew
  3. 3. Andrew’s New Blog (
  4. 4. Read all about it!
  5. 5. What is Big Data?• 100s of TB into PB and higher• Involving data from: financial data,sensors, web logs, social media, etc.• Parallel processing often involved– Hadoop is emblematic, but other technologies are BigData too• Processing of data sets too large fortransactional databases– Analyzing interactions, rather than transactions– The three V’s: Volume, Velocity, Variety• Big Data tech sometimes imposed onsmall data problems
  6. 6. The Hadoop StackMapReduce, HDFSDatabaseRDBMS Import/ExportQuery: HiveQL and Pig LatinMachine Learning/Data MiningLog file integration
  7. 7. What’s MapReduce?• Divide and conquer approach to “Big”data processing• Partition the data and send to mappers(nodes in cluster)• Mappers pre-process into key-value pairs,then all output for (a) given key(s) goes toa reducer• Reducer performs aggregations; oneoutput per key, with value• Map and Reduce code natively written asJava functions
  8. 8. MapReduce, in a DiagrammappermappermappermappermappermapperInputreducerreducerreducerInputInputInputInputInputInputOutputOutputOutputOutputOutputOutputOutputInputInputInputK1K2K3OutputOutputOutput
  9. 9. HDFS• File system whose data gets distributedover commodity disks on commodityservers• Data is replicated• If one box goes down, no data lost– “Shared Nothing”– Except the name node• BUT: Immutable– Files can only be written to once– So updates require drop + re-write (slow)– You can append though– Like a DVD/CD-ROM
  10. 10. HBase• A Wide-Column Store, NoSQL database• Modeled after Google BigTable• HBase tables are HDFS files– Therefore, Hadoop-compatible• Hadoop often used with HBase– But you can use either without the other• HDInsight (more on next slide) does not(yet) include HBase
  11. 11. Microsoft HDInsight• Developed with Hortonworks andincorporates Hortonworks Data Platform(HDP) for Windows• Windows Azure HDInsight and MicrosoftHDInsight Server– Single node preview runs on Windows client• Includes ODBC Driver for Hive– And Excel add-in that uses it• JavaScript MapReduce framework• Contribute it all back to open sourceApache Project
  12. 12. Azure HDInsight Provisioning• HDInsight preview now public, so…• Go to Windows Azure portal• Sign up for the public preview• Select HDInsight from left navbar• Click “+ NEW” button @ lower-left• Specify cluster name, number of nodes, adminpassword, storage account– Credentials used for browser login, RDP and ODBC– During preview, you will be billed 50% of Azure compute ratesfor nodes in cluster. Will be 100% at GA.• Click “CREATE HDINSIGHT CLUSTER”• Wait for provisioning to complete• Navigate to http://clustername.azurehdinsight.netNew!
  13. 13. Azure HDInsight ProvisioningNew!
  14. 14. Submitting, Running andMonitoring Jobs• Upload a JAR• Use Streaming– Use other languages (i.e. other than Java) to writeMapReduce code– Python is popular option– Any executable works, even C# console apps– On HDInsight, JavaScript works too– Still uses a JAR file: streaming.jar• Run at command line (passing JAR nameand params) or use GUI
  15. 15. HortonworksData Platform forWindowsMRLib(NuGetPackage)LINQ to HiveOdbcClient +Hive ODBCDriverDeploymentDebuggingMR code inC#,HadoopJob,MapperBase,ReducerBaseAmenities forVisual Studio/.NET
  16. 16. Running MapReduceJobs
  17. 17. The “Data-Refinery” Idea• Use Hadoop to “on-board” unstructureddata, then extract manageable subsets• Load the subsets into conventional DW/BIservers and use familiar analytics tool toexamine• This is the current rationalization ofHadoop + BI tools’ coexistence• Will it stay this way?
  18. 18. Hive• Used by most BI products which connectto Hadoop• Provides a SQL-like abstraction overHadoop– Officially HiveQL, or HQL• Works on own tables, but also on HBase• Query generates MapReduce job, output ofwhich becomes result set• Microsoft has Hive ODBC driver– Connects Excel, Reporting Services, PowerPivot,Analysis Services Tabular Mode (only)
  19. 19. Hive
  20. 20. HDInsight Data Sources• Files in HDFS• Azure Blob Storage (Azure HDInsight only)– Use asv:// URLs (“Azure Storage Vault”)• Hive tables• HBase?
  21. 21. Just-in-time Schema• When looking at unstructured data,schema is imposed at query time• Schema is context specific– If scanning a book, are the values words, lines, orpages?– Are notes a single field, or is each word a value?– Are date and time two fields or one?– Are street, city, state, zip separate or one value?– Pig and Hive let you determine this at query time– So does the Map function in MapReduce code
  22. 22. How Does MS BI Fit In?• Excel, PowerPivot: can query via HiveODBC driver• Analysis Services (SSAS) Tabular Mode– Also compatible with Hive ODBC DriverMultidimensional mode is not• Power View– Works against PowerPivot and SSAS Tabular• RDBMS + Parallel Data Warehouse (PDW)– Sqoop connectors– Columnstore IndexesEnterprise Edition and PDW only• PDW: PolyBase
  23. 23. Excel, PowerPivot• Excel and PowerPivot use the BI SemanticModel (BISM), which can query Hadoop viaHive and its ODBC driver• Excel also features “Data Explorer”(currently in Beta) which can query HDFSdirectly and insert the results into a BISMrepository• Excel BISM accommodates millions ofrows through compression. Not petabytescale, but sufficient to store and analyzeoutput of Hadoop queries.
  24. 24. PowerPivot, SSAS Tabular• SQL Server Analysis Services Tabularmode is the enterprise serverimplementation of BISM• Features partitioning and role-basedsecurity• Can store billions of rows. So even betterfor Hadoop output analysis.• Excel-based BISM repositories can beupsized to SSAS Tabular
  25. 25. Querying Hadoop fromMicrosoft BI
  26. 26. Sqoop• Acronym for “SQL to Hadoop”• Essentially a technology for moving databetween data warehouses and Hadoop• Command line utility; allows specificationof source/target HDFS file and relationalserver, database and table• Sqoop connectors available for SQLServer and PDW• Sqoop generates MapReduce job toextract data from, or insert data into, HDFS
  27. 27. PDW, PolyBase• SQL Server Parallel Data Warehouse(PDW) is a Massively Parallel Proicessing(MPP) data warehouse appliance versionof SQL Server• MPP manages a grid of relational databaseservers for divide-and-conquer processingof large data sets.• PDW v2 includes “PolyBase,” acomponent which allows PDW to querydata in Hadoop directly.– Bypasses MapReduce; addresses data nodes directlyand orchestrates parallelism itself
  28. 28. PolyBase Versus Hive, Sqoop• Hive and Sqoop generate MapReducejobs, and work in batch mode• PolyBase addresses HDFS data itself• This is true SQL over Hadoop.• Competitors:– Cloudera Impala– Teradata Aster SQL-H– EMC/Greenplum Pivotal HD– Hadapt
  29. 29. Usability Impact• PowerPivot makes analysis much easier,self-service• Power View is great for discovery andvisualization; also self-service• Combine with the Hive ODBC driver andsuddenly Hadoop is accessible tobusiness users• Caveats– Someone has to write the HiveQL– Can query Big Data, but must have smaller result
  30. 30. Resources• Big On Data blog–• Apache Hadoop home page–• Hive & Pig home pages––• Hadoop on Azure home page–• SQL Server 2012 Big Data–
  31. 31. Thank You!• Email•• Blog:•• Twitter• @andrewbrust on twitter