Data Eng Weekly


Hadoop Weekly Issue #156

07 February 2016

Going along with the theme of this week's super bowl, there are two matchup articles this week: comparing the programming models of Dataflow/Beam & Spark Streaming and a performance comparison of Flink and Storm. The rest of the content this week covers a diverse set of topics and technologies—Spark, Kafka, HDFS erasure codecs, geospatial analytics on Hadoop, and more. It's one of the largest issues in a while, so there should be something for everyone.

Technical

The ATS blog has a post describing how they added low-latency querying capabilities to large swaths of historic data by introducing Google BigQuery. They provided a GUI for users to supply query parameters in order to service requests without any SQL.

http://www.atso.com/our-bq-trip1/

The GameChanger tech blog has had a number of great articles on Kafka recently. In "Experimenting With Kafka," the author describes experiments for stopping a Kafka server while writing to it, tweaking min.insync.replicas and request.required.acks, and experiments with write throughput. In "Scaling with Kafka," the author details some tips for running Kafka in a dynamic cloud environment (assigning broker ids and using EBS volumes to replace a node without requiring a full data sync). The blog has two other post about Kafka and Docker/AWS if you're itching for me.

http://tech.gc.com/experimenting-with-kafka/
http://tech.gc.com/scaling-with-kafka/

This post gives an overview of various tools for doing geospatial analysis on Hadoop. While many tools have nice out of the box support, they aren't necessarily the most performant when comparing two datasets. To speed up these types of queries, the post describes spatial binning. The SpatialSpark library includes support for similar performance improving strategies, but its API and data format support aren't the most thorough. The post concludes with some general recommendations for which libraries to use in a few different situations.

http://getindata.com/blog/post/geospatial-analytics-on-hadoop/

The mapWithState function is a new addition in Spark 1.6 to improve performance of stateful stream processing, which is used for things like session analysis. As a replacement for updateStateByKey, the new mechanism drastically improves latency, supports 10x more keys, and provides a clean API for updating state.

https://databricks.com/blog/2016/02/01/faster-stateful-stream-processing-in-spark-streaming.html

Yahoo recently announced a new benchmark for stream processing frameworks. In a follow up to Yahoo's introductory blog post and preliminary benchmarks, the DataArtisans blog has a look at Storm and Flink on faster hardware/networking and the benefits of some of Flinks new streaming features. With this setup and some application changes, Flink achieves 15 million events/sec on a 10 node cluster. The post also describes changes to remove the external key-value store dependency and instead serve lookups directly from Flink.

http://data-artisans.com/extending-the-yahoo-streaming-benchmark/

The Cloudera blog has an in-depth update on HDFS erasure codings, in which they present a number of performance analysis results. In summary, when using the Intel ISA-L Library's hardware acceleration, CPU is no longer the bottleneck (even with 10Gb ethernet) and overall throughput of HDFS reads and writes (vs. 3x replication) is often increased as well.

http://blog.cloudera.com/blog/2016/02/progress-report-bringing-erasure-coding-to-apache-hadoop/

KDNuggets has an introduction to Apache Spark's RDD, DataFrame, and Dataset APIs. There are code snippets for each, and the article aims to help decide which API to use in various situations.

http://www.kdnuggets.com/2016/02/apache-spark-rdd-dataframe-dataset.html

While not directly related to Hadoop, this tutorial is tangentially related since there was a TensorFlow and Hadoop post last week. With that in mind, this post describes setting up TensorFlow to use the GPU on an Amazon EC2 instance.

http://eatcodeplay.com/installing-gpu-enabled-tensorflow-with-python-3-4-in-ec2/

The MapR blog has a guest post on Apache Flink. The post describes Flink's stream processing features by way of an example program that processes NYC taxi ride data (a public dataset from the NYC Taxi and Limousine Commission). In addition to processing with Flink, the post shows how to write data to Elasticsearch and visualize it in Kibana. The source code for the project is available on Github.

https://www.mapr.com/blog/essential-guide-streaming-first-processing-apache-flink

JavaWorld has a post on Apache Phoenix, the SQL engine for Apache HBase. The article gives a short introduction to HBase (and its data model), details getting started with Phoenix and its command-line interface, and demonstrates using Phoenix from Java via java.sql.

http://www.javaworld.com/article/3030214/big-data/open-source-java-projects-apache-phoenix.html

The Confluent blog has a new edition of their Log Compaction newsletter, which covers updates from the Kafka community. This issue highlights five new Kafka Improvement Proposals (KIP) and has links to several recent articles about Kafka and stream processing.

http://www.confluent.io/blog/log-compaction-highlights-in-the-kafka-and-stream-processing-community-february-2016

The Google Cloud Platform blog has a post comparing the Dataflow/Beam programming model to that of Spark Streaming. Dataflow's primitives allow for a concise programs even for fairly complicated tasks, whereas Spark Streaming code is complicated by microbatching. Code and descriptions for several tasks, including computing hourly team scores, computing a leaderboard (per-hour and per-team), and user session analysis are included in the post.

https://cloud.google.com/dataflow/blog/dataflow-beam-and-spark-comparison

To continue on the theme of stream processing, Hortonworks has a post on windowing computations with Apache Storm. The post (be sure to follow the link at the end) covers topics like watermarks, delivery guarantees, state management, checkpointing, and more. There are several code examples and links to full-blown example topologies.

http://hortonworks.com/blog/storm-support-windowing-state/

The AWS big data blog has a post on customizing spark-submit flags to control resources and best optimize cluster utilization. There's a lot of background on how the Spark driver works, memory management in Spark, and dynamic resource allocation.

http://blogs.aws.amazon.com/bigdata/post/Tx578UTQUV7LRP/Submitting-User-Applications-with-spark-submit

News

Apache Beam (previously known as the Dataflow Java SDK) as been accepted into the Apache incubator.

http://mail-archives.apache.org/mod_mbox/incubator-general/201602.mbox/%3C56AF6BF1.6030400@nanthrax.net%3E

This post introduces the notion of data drift and formalizes the three types of drift common in data systems. They are: structural drift (i.e. schema evolution), semantic drift (where the meaning of a value changes), and infrastructure drift (the evolution of producer/consumer/etc systems).

https://vision.cloudera.com/continuous-ingest-in-the-face-of-data-drift/

On the question of Apache Spark replacing Hadoop, it's clear that Spark is gaining wide adoption (vendors are including it in their distributions). It's less clear if Hadoop is going away—in the data center, HDFS is needed. But many of the Spark/Hadoop-as-a-Service vendors are betting on blob stores like Amazon S3. In addition to exploring this friction, this article looks at the reasons that Spark is gaining adoption (usability and features) as well as the future of the project.

http://sdtimes.com/is-spark-replacing-hadoop/

This post has a list of ten trends in big data expected for 2016. There are a few expected ones (e.g. Spark, cloud computing) and also a few that aren't as well-known (e.g. AMPLab's reboot, hardware topics)

https://www.linkedin.com/pulse/10-data-trends-our-radar-2016-ben-lorica

Hortonworks marked the recent ten year anniversary of Hadoop by releasing a Docker image of "hadoop version 0." There are some tips for trying it out and several notes about the status of the project at that point in time (e.g. you have to restart the namenode every couple of days to compact the edit log).

http://hortonworks.com/blog/ten-years-of-herding-elephants/

In another post marking Hadoop's ten year anniversary, the Hortonworks blog has an overview of recent usability improvements in Hadoop by way of six Hadoop labs. Many of the labs used to require a command-line but now have nicer interfaces, and there are a number of new ways to visualize and interpret data.

http://hortonworks.com/blog/hadoop-all-grown-up/

Releases

Amazon EMR 4.3.0 includes updated versions of Apache Hadoop, Apache Spark, Ganglia, and Presto. The announcement has more details and instructions for how to use the new version.

https://aws.amazon.com/about-aws/whats-new/2016/01/apache-hadoop-2-7-1-spark-1-6-0-presto-0-130-and-ganglia-3-7-2-now-available-on-amazon-emr/

Version 0.1 of ruby-kafka, a new Kafka client written in Ruby, is available. The release focuses on the producer API, and the developer is soliciting feedback around the design of the library to help harden the implementation.

http://mail-archives.apache.org/mod_mbox/kafka-users/201602.mbox/%3CCADneq0XMBjdUvKLBH7ivrGfSdRRbVbL66Dz5YVY85Rch1rs-rA%40mail.gmail.com%3E

Not really a release announcement, but Netflix has announced that they're retiring Astyanax, their Java client for Apache Cassandra. In the post, they acknowledge the usability and performance advantage of the CQL protocol.

http://techblog.netflix.com/2016/02/astyanax-retiring-old-friend.html

Version 0.6.0 of the Yahoo! Cloud Serving Benchmark was recently released. Cloudera Labs has bundled this version, and a post describes the new features and updates across several recent versions. The highlights include support for Aerospike, Kudu, Cassandra version 2, & Google Cloud Data Store, improved percentile latency reporting, and other usability improvements.

https://github.com/brianfrankcooper/YCSB/releases/tag/0.6.0
http://blog.cloudera.com/blog/2016/02/ycsb-0-6-0-update-from-cloudera-labs/

Apache Avro 1.8.0 was released this week. The release contains a large number of bug fixes, new implementations for .NET 3.5 & JavaScript, and new Date/Time data types. There full release notes contain details on over 100 resolved issues.

http://mail-archives.apache.org/mod_mbox/avro-user/201602.mbox/%3CCAF-WD4QgA_GYFmrPWM2DtCkPVYX3L9wcugLNo8OZEt9f8cL_RA%40mail.gmail.com%3E

Version 0.11.1 of Apache Tajo, the big data warehouse system, was released. This release contains a number of bug fixes, several performance improvements, and a few new minor features.

http://tajo.apache.org/releases/0.11.1/announcement.html

Events

Curated by Datadog ( http://www.datadog.com )

UNITED STATES

California

An Evening with Amr Awadallah, Co-Founder & CTO of Cloudera (Los Angeles) - Monday, February 8
http://www.meetup.com/Los-Angeles-Big-Data-Users-Group/events/228231005/

Pivoting Spring XD to Spring Cloud Data Flow (San Francisco) - Tuesday, February 9
http://www.meetup.com/Pivotal-Open-Source-Hub/events/227699908/

Learn More about Dataswarm and Ibis (San Francisco) - Wednesday, February 10
http://www.meetup.com/sfpython/events/228213876/

Introduction to Apache Tajo: A Big Data Warehouse on Hadoop (San Francisco) - Wednesday, February 10
http://www.meetup.com/SF-Big-Analytics/events/228161966/

Washington

Exploratory Analysis of Large Data with R and Spark (Seattle) - Wednesday, February 10
http://www.meetup.com/Seattle-Spark-Meetup/events/221571235/

Utah

Spark and Tachyon: Big Data Utah Meeting @ IHC (Salt Lake City) - Wednesday, February 10
http://www.meetup.com/BigDataUtah/events/227443244/

Colorado

A Deeper Look into SparkSQL, DataFrames, and Data Sources with IBM and Galvanize (Boulder) - Monday, February 8
http://www.meetup.com/BoulderDataScience/events/228114546/

An Evening with Apache Spark (Denver) - Wednesday, February 10
http://www.meetup.com/DenverJavaUsersGroup/events/228086354/

Texas

Protecting Hadoop Data at Rest with HDFS Encryption (Austin) - Monday, February 8
http://www.meetup.com/Austin-Cloudera-User-Group/events/228070326/

Virginia

Interactive Visualization + Leveraging Spark in a Hybrid OLTP/OLAP (Reston) - Wednesday, February 10
http://www.meetup.com/Washington-DC-Area-Spark-Interactive/events/227559860/

District of Columbia

Data Pipelines for Data-Driven Apps (Washington) - Monday, February 8
http://www.meetup.com/data-science-studio-user-group/events/227931241/

New York

Hadoop & Spark Panel Discussion Series (New York) - Tuesday, February 9
http://www.meetup.com/NYC-Open-Data/events/227417006/

Massachusetts

Open Analytics Talks (Boston) - Thursday, February 11
http://www.meetup.com/Open-Analytics-Boston/events/228156309/

SPAIN

YARN by Default (Barcelona) - Tuesday, February 9
http://www.meetup.com/Spark-Barcelona/events/228342897/

FRANCE

Data NoBlaBla: Data Munging with Spark, Part II (Toulouse) - Thursday, February 11
http://www.meetup.com/Tlse-Data-Science/events/228475400/

NETHERLANDS

Parallel Scikit-Learn on YARN and Real Secure Hadoop (Amsterdam) - Thursday, February 11
http://www.meetup.com/Netherlands-Hadoop-User-Group/events/228369920/

ISRAEL

Spark Streaming: Adventures by AppsFlyer (Herzelia) - Wednesday, February 10
http://www.meetup.com/Big-Data-Israel/events/228080600/

INDIA

Second IMC Pune Meetup (Pune) - Wednesday, February 10
http://www.meetup.com/IMC-Pune-Meetup/events/228287594/

Introduction to Dataset API (Bangalore) - Saturday, February 13
http://www.meetup.com/Bangalore-Apache-Spark-Meetup/events/228006213/

AUSTRALIA

Spark ML Pipeline and Demo of Databricks Platform + More (Sydney) - Wednesday, February 10
http://www.meetup.com/Sydney-Apache-Spark-User-Group/events/228198644/

SQL and Machine Learning on Hadoop Using HAWQ (Melbourne) - Thursday, February 11
http://www.meetup.com/Big-Data-Analytics-Meetup-Group/events/227755771/