Data Eng Weekly


Hadoop Weekly Issue #85

31 August 2014

This week’s issue features a lot of good technical content covering Apache Storm and Apache Spark. There are also a number of releases—Apache Flink, Apache Phoenix, Cloudera Enterprise, and Luigi. In addition, Hortonworks announced a technical preview of Apache Kafka support for HDP, and SequenceIQ unveiled Periscope, an open-source tool for YARN cluster auto-scaling.

Technical

The eBay blog has a post about NameNode Quality of Service. While running a large cluster, they’ve found that certain jobs can cause major issues by overwhelming the NameNode with too many RPCs. To combat that, they’ve worked on the FairCallQueue, which replaces the NameNode RPC handler’s FIFO queue. The post details the status of the implementation and shows how the implementation performs in their tests.

http://www.ebaytechblog.com/2014/08/21/quality-of-service-in-hadoop/

A number of organizations are working hard to enhance Apache Storm on several fronts. The fronts include security/multi-tenancy (Kerberos authentication, Hadoop security integration, user isolation), scalability improvements, high availability for the Nimbus service, and enhanced language/tooling support. The Hortonworks blog has an in-depth article discussing these features and more.

http://hortonworks.com/blog/the-future-of-apache-storm/

On the topic of Storm, the Hortonworks blog has posted more Hadoop Summit curated content covering Storm. It highlights seven presentations, which cover scaling Storm, Pig on Storm, R and Storm, and more.

http://hortonworks.com/blog/hadoop-summit-curated-content-apache-storm/

Apache Storm integrates well with Apache Kafka (more below in an announcement from Hortonworks), and this tutorial builds a local environment using Docker and Fig for testing. It uses that environment to build a system for streaming log data through Kafka, using the Trident API to implement an exponentially weighted moving average, and sending alerts from Storm using XMPP.

http://alvinhenrick.com/2014/08/18/apache-storm-and-kafka-cluster-with-docker/

Continuing on the Storm theme, the Hortonworks blog has a post on performing micro-batching with Storm. The post focuses on implementing micro-batching with the Storm APIs (the Trident API provides micro-batching, too). This post describes three different ways to implement micro-batching and provides an example implementation using the "tick tuples" approach.

http://hortonworks.com/blog/apache-storm-design-pattern-micro-batching/

Switching gears to the first of several articles on Apache Spark, this post covers Bayesian Machine Learning on Apache Spark. It discusses integrating the PyMC framework with Apache Spark to implement Markov Chain Monte Carlo (MCMC) methods. There are five parts to the post—an introduction to MCMC methods, an overview of the PyMC python package and its API, integrating PyMC with Apache Spark, using the integration for topic modeling with MCMC, and performing distributed LDA on Spark with PyMC.

http://blog.cloudera.com/blog/2014/08/bayesian-machine-learning-on-apache-spark/

An upcoming release of Apache Spark will contain implementations of several common statistics functions found in many statistical computing packages like R and SciPy.stats. This post describes the new implementations, which cover correlations (spearman and pearson), hypothesis testing (chi-squared), stratified sampling, and random data generation.

http://databricks.com/blog/2014/08/27/statistics-functionality-in-spark.html

The Lambda Architecture is a popular idea for building hybrid batch and speed (near-realtime) data processing systems. This tutorial provides an example of implementing this type of system using Apache Spark. In addition to the normal batch operation, Spark also has a micro-batch mode called Spark streaming. The same data processing function can be used by both the normal and streaming operation, as is demonstrated in the post. The accompanying source code (written in Scala) is available on github.

http://blog.cloudera.com/blog/2014/08/building-lambda-architecture-with-spark-streaming/

Cloudera has posted a new roadmap for Impala, its SQL on Hadoop system. The post recaps the features of Impala 1.2, 1.3, and 1.4, and it describes what will be delivered in version 2.0 (by end of 2014) and version 2.1 (in 2015). The highlights for 2.0 include new analytic window functions, spilling of queries to disk, and subqueries. The highlights of version 2.1 include long-anticipated support for nested data, CRUD for HBase, and an exciting feature for folks running in AWS—Amazon S3 integration.

http://blog.cloudera.com/blog/2014/08/whats-next-for-impala-focus-on-advanced-sql-functionality/

The Hortonworks blog has a post on HTTPS for HDFS. The implementation makes use of client certificate for HTTPS client authentication, which in turn are verified by the HDFS daemons. It has details on the configuration changes required to enable and setup HTTPS as well as a walkthrough of the various SSL certificates that need to be generated (complete with example keytool invocations).

http://hortonworks.com/blog/deploying-https-hdfs/

News

Qubole has written about how they see Hadoop complementing an existing data warehouse (DW) deployment. They suggest a DW is more appropriate for structured data, whereas (large amounts) of unstructured data are better handled by Hadoop. Workloads that require SLAs/predictable runtimes should use the DW, but Hadoop is good at ad hoc or fluctuating workloads (and this is a key area where Qubole’s cloud offering adds additional flexibility). It can be hard to find the right place to draw this line, so it’s interesting to hear from a vendor (who is likely working with customers for something like this).

http://www.qubole.com/hadoop-and-data-warehouse/

As someone who has run a production Hadoop cluster, a number of the points and anecdotes in this article ring true. The overarching theme is that Hadoop is not particularly good at meeting SLAs partly because it’s easy to use Hadoop in unpredictable ways. The article has quotes from some Pepperdata folks about how their cluster orchestration software helps solve these types of issues.

http://www.zdnet.com/from-hadoops-earliest-days-to-post-yarn-why-some-issues-just-wont-go-away-7000032884/

This article is focussed on Hadoop for non-engineers, particularly folks in the healthcare industry. After giving a brief intro to the key components of Hadoop, it talks a bit about some of the implications to the healthcare industry. Specifically, there are a number of types of analyses that can be powered by Hadoop which couldn’t be done before. But with that said, there’s an interesting point that rings true in nearly every profession. The industry isn’t being held back by the data processing systems—the barrier is in acting on the data to improve healthcare.

http://www.hitechanswers.net/much-hadoop-something/

Big news in the development process of Hadoop this week—the Apache Hadoop codebase has migrated from SVN to git.

http://mail-archives.apache.org/mod_mbox/hadoop-common-dev/201408.mbox/%3CCALwhT94H3bakqx_ARqxR3G8FB0f7mH-zXmQBnU6sfDj5D79jWw%40mail.gmail.com%3E

Once a Hadoop cluster gets to a certain size, there are ultimately conflicts related to required native libraries on the cluster. Docker, which provides a mechanism to running an isolated environment on a linux host, has great promise for solving this and other types of issues. GigaOm has an article that describes the state of the YARN and Docker integration, which is being lead by Altiscale.

http://gigaom.com/2014/08/29/hadoop-jobs-should-soon-be-able-to-run-easily-inside-docker-containers/

Releases

Luigi, the batch processing framework for Hadoop, released version 1.0.17 this week. The new release has a number of fixes and improvements, including support for storing data in ElasticSearch, support for loading JSON data into redshift, an FTP task, and a new luigi command.

https://pypi.python.org/pypi/luigi

Apache Flink (incubating), previously known as Stratosphere, has released version 0.6. Flink is a data processing engine built atop of YARN, targeting iterative processing and data streaming. The release includes over 100 resolved tickets, which cover things like support for POJO and a new AvroOutputFormat.

http://flink.incubator.apache.org/news/2014/08/26/release-0.6.html

Cloudera Enterprise 5.1.2 (which includes CDH 5.1.2 and Cloudera Manager 5.1.2) and CDH 5.0.4 were released. The CE 5.1.2 release includes a number of fixes covering nearly every component in the CDH stack. CDH 5.0.4 also includes a number of fixes across the stack.

http://community.cloudera.com/t5/Release-Announcements/Announcing-Cloudera-Enterprise-5-1-2-CDH-5-1-2-Cloudera-Manager/m-p/17806#U17806

Apache Phoenix 3.1 (for HBase 0.94.4+) and 4.1 (for 0.98.1+) were released earlier this week. Both releases contain a number of bug fixes, use of nested tables in queries, a Pig loader, and more. On top of that, the 4.1 release supports distributed tracing and local indexes.

https://blogs.apache.org/phoenix/entry/announcing_phoenix_3_1_and

Hortonworks has announced a technical preview of Apache Kafka 0.8.1.1 for HDP 2.1. A post on the Hortonworks blog introduces Kafka and explains how it fits well with Apache Storm.

http://hortonworks.com/blog/announcing-apache-kafka-technical-preview-hdp-2-1/

Periscope is a new open-source tool from SequenceIQ for auto-scaling and enforcing SLAs for YARN clusters. For a static cluster, it offers tools to enforce time-based and cluster capacity SLAs. In cloud environments, it can increase cluster capacity by spinning up new nodes. The code is available on github as part of a public beta. It’s used internally at SequenceIQ, but it relies on unreleased features of Apache Hadoop and Apache Ambari.

http://blog.sequenceiq.com/blog/2014/08/27/announcing-periscope/

Events

Curated by Mortar Data ( http://www.mortardata.com )

UNITED STATES

California

What is Practical Data Science? Co-hosted with Palo Alto Data Science Foundation (Menlo Park) - Thursday, September 4
http://www.meetup.com/Hadoop-Talks/events/198019592/

Resistance Is Futile: What You Need to Know about Big Data (San Francisco) - Thursday, September 4
http://www.meetup.com/San-Francisco-Bay-Area-Microsoft-BI-User-Group/events/179128012/

Texas

Apache Spark Night - Show and Tell (Austin) - Tuesday, September 2
http://www.meetup.com/austin-data-geeks/events/189913182/

Introduction to Hadoop Course, Part 1: Hadoop and Its Ecosystem (Austin) - Saturday, September 6
http://www.meetup.com/Big-Data-Revealed-Austin/events/186518172/

Arizona

Understanding Your Customer’s Buying Journey Using Path Analysis on Hadoop (Phoenix) - Wednesday, September 3
http://www.meetup.com/Phoenix-Hadoop-User-Group/events/192459242/

CANADA

Hadoop Security Deep Dive (Toronto) - Thursday, September 4
http://www.meetup.com/TorontoHUG/events/202031802/

SWEDEN

Managing Hadoop Workflows in the Enterprise + Jumpstart your Big Data Projects (Stockholm) - Monday, September 1
http://www.meetup.com/stockholm-hug/events/201722192/

NEW ZEALAND

Large Datasets with WEKA + Big Data Use Cases & Industry Trends (Auckland) - Tuesday, September 2
http://www.meetup.com/NZ-Big-Data/events/200044182/

AUSTRIA

OCG Meetup: Hadoop (Vienna) - Thursday, September 4
http://www.meetup.com/Austrian-Cloud-and-Big-Data-Forum/events/196975542/

MEXICO

SQL en Hadoop: Un Gran Paso Adelante! (Mexico City) - Friday, September 5
http://www.meetup.com/Big-Data-Developers-in-Mexico-City/events/194328882/

INDIA

Bangalore Hadoop - Big Data Meetup (Bangalore) - Saturday, September 6
http://www.meetup.com/Bangalore-Hadoop-Meetups/events/202452242/