Data Eng Weekly


Data Eng Weekly Issue #260

15 April 2018

A couple of great debugging stories, tips for testing a distributed system in the face of failure, details on the Presto cost-based optimizer, and more great technical posts. There are also several good posts on the future of the big data industry and research communities.

Sponsor

Are you looking to elevate your data culture http://bit.ly/culture-at-netflix? Do you want to work with stunning colleagues, solve complex data problems and contribute to the best video viewing experience in the industry? Come press ‘play’ with Netflix. We’re hiring for many types of data roles. Look for us at the upcoming DataEngConf and say hello to learn more.

http://bit.ly/netflix-jobs-data

Technical

TiDB, which is a new distributed database with MySQL compatibility, has written about how they test their system by injecting faults. They describe a number of fault injection tools, and their Kubernetes-based platform for automatically running these tests.

https://thenewstack.io/chaos-tools-and-techniques-for-testing-the-tidb-distributed-newsql-database/

The Uber engineering team has written a post describing their work over the past years to scale HDFS for large data volumes and number of queries. A lot of the scalability challenges are with the NameNode, and they have solutions like physically partitioning clusters (but presenting a unified view via ViewFS) based on usage characteristics, reducing the number of small files, tuning the NameNode garbage collector, and a new read-replica NameNode (called an Observer NameNode).

https://eng.uber.com/scaling-hdfs/

Using the TPC benchmark, this first post compares Presto with the new cost-based optimizer vs. without it (there are some impressive speedups—half fo queries got a 2-5x speedup). The second post describes how the optimizer works and why this results in significant speedups. It's a good technical article, going into join re-ordering, projections, and optimization considerations.

https://www.starburstdata.com/technical-blog/2018/4/2/presto-cost-based-optimizer-rocks-the-tpc-benchmarks
https://www.starburstdata.com/technical-blog/2018/4/9/introduction-to-presto-cost-based-optimizer

This post has a great overview of monitoring Apache Kafka consumer lag—the use cases and SLOs at ZipRecruiter, how to use the Kafka CLI tools along with a simple parsing script to get this information, and several example graphs that capture interesting consumer lag events.

https://hopsandthings.com/monitoring-kafka-consumer-lag-in-seconds/

Channable has written about debugging a performance issue with a long-running Apache Spark application. The post goes into lots of interesting details on JVM internals (e.g. custom class loaders and garbage collection of classes), Spark internals (e.g. how the driver cleans up broadcast data), and their metrics and monitoring strategy that enabled hunting down these bugs and verifying their fixes.

https://tech.channable.com/posts/2018-04-10-debugging-a-long-running-apache-spark-application.html

The Hortonworks blog has an analysis, based on code changes and JIRA tickets, of contributions to Hadoop 3.1.0.

https://hortonworks.com/blog/apache-hadoop-3-1-0-released-and-a-look-back/

If you're using Kubernetes, here's a good list of best practices to secure your cluster. It draws from a bunch of other documentation, and also links out to several other resources.

https://github.com/freach/kubernetes-security-best-practice

This repo has a good collection of links to articles, videos, and presentations on distributed consensus algorithms (e.g. Paxos, Raft, Zab).

https://github.com/dgryski/awesome-consensus

This is a fun pair of articles about executing C functions as UDFs in BigQuery by compiling the code to web assembly/javascript. Performance starts out pretty slow, but batching the data before UDF call results in some massive speedups. Maybe not the most practical, but a clever solution nonetheless.

https://medium.com/@sourcedtech/calling-c-functions-from-bigquery-with-web-assembly-c19c023fc755
https://medium.com/@hoffa/bigquery-beyond-sql-and-js-running-c-and-rust-code-at-scale-33021763ee1f

While this article is aimed mostly at the DB research community, it has a great overview of accomplishments from the past 10 years (including the rise of the Hadoop ecosystem and research on distributed databases) as well as upcoming research areas (like learned indexes) that might make their way into production systems sooner than later.

https://dawn.cs.stanford.edu/2018/04/11/db-community/

The first of these two posts surveys the options for working with immutable event data in Apache Kafka in the face of the GDPR. Of these options, it proposes a solution for implementing the encryption-based solution. The second article has a number of details on implementing this method, which is built using Kafka streams and a Kafka topic containing encryption keys.

http://danlebrero.com/2018/04/11/kafka-gdpr-event-sourcing/
http://danlebrero.com/2018/04/11/kafka-gdpr-event-sourcing-implentation/

Replacing Amazon Redshift with Amazon Athena can provide massive cost savings if performance is still good enough. In this post, the author describes several improvements—including improved file formats and batching queries—to further reduce cost in a use case with relatively small data sets.

https://medium.com/@jaycorichter/how-we-built-a-big-data-analytics-platform-on-aws-for-100-large-users-for-under-2-a-month-b37425b6cc4

This post describes how to perform some heuristic-based anomaly detecting from syslog data using a KSQL program and how to use the Python Kafka connector to send resulting alerts to Slack.

https://www.confluent.io/blog/real-time-syslog-processing-with-apache-kafka-and-ksql-part-2-event-driven-alerting-with-slack/

I always like a good debug story—this one is about debugging performance issues in Impala caused by a change in the query pattern.

https://medium.com/@adirmashiach/hotspotting-in-hadoop-impala-case-study-6a8a613f14a1

News

The ARCHITECHT Show is a podcast that folks might find interesting. This episode talks with Stephan Ewan, Co-Founder and CTO of dataArtisans, about Apache Flink, stream processing, and more.

https://architecht.io/apache-flink-creator-stephan-ewen-on-stream-processing-and-making-a-name-in-open-source-17a488678210

Designing Event-Driven Systems is a new eBook, which is available for free behind an email/phone form from Confluent.

https://www.confluent.io/designing-event-driven-systems

This post recaps the Snowflake "Unite the Data Nation" conference. There are some good observations on changes to data architectures (separating compute from storage and IoT adoption) as well as a list of several Snowflake features.

https://labnotes.panderalabs.com/highlights-from-snowflakes-unite-the-data-nation-conference-a7fed4709aad

I was the guest on the Data Engineering Podcast this week, where we discussed the process of writing this newsletter and some of the data engineering problems I've worked on.

https://www.dataengineeringpodcast.com/data-engineering-weekly-with-joe-crobak-episode-27/

Cloudera held its industry analysts event last week, and this post highlights five questions that are facing Cloudera (and likely several other vendors in the same space). Everything from the the volatility of the stock market to questions about the future of the company (and in some ways, the broader big data ecosystem).

http://redmonk.com/sogrady/2018/04/12/five-questions-for-cloudera/

Sponsor

Are you looking to elevate your data culture http://bit.ly/culture-at-netflix? Do you want to work with stunning colleagues, solve complex data problems and contribute to the best video viewing experience in the industry? Come press ‘play’ with Netflix. We’re hiring for many types of data roles. Look for us at the upcoming DataEngConf and say hello to learn more.

http://bit.ly/netflix-jobs-data

Releases

AWS Glue now supports Apache Spark 2.2.1, and Amazon EMR is now supporting Spark 2.3.0, Apache HBase 1.4.2, and Presto 0.149.

https://aws.amazon.com/about-aws/whats-new/2018/04/aws-glue-now-supports-apache-spark-221/
https://aws.amazon.com/about-aws/whats-new/2018/04/support-for-spark-2-3-0-on-amazon-emr-release-5-13-0/

Apache BookKeeper 4.6.2 is out with fixes to Java 9/10 support, performance improvements, and other fixes.

https://lists.apache.org/thread.html/675b98c2867f495b5e0dae08896980591e4ab37b59b81306eb54937a@%3Cannounce.apache.org%3E

Version 1.6.0 of Apache NiFi was released last week with a number of new and improved processors (HBase, Druid, Mongo, Influx) and UI/UX improvements for multi tenancy and managing permissions.

https://lists.apache.org/thread.html/07f1bf66c64453cf2f68666fd211331755c5ff7a100b28894fd91d8b@%3Cannounce.apache.org%3E

MapR has released an update to support Apache Drill 1.13. Among the new features is support for SQL on MapR streams. The post also highlights some of the features of the release, including several performance enhancements.

https://mapr.com/blog/apache-drill-1-13-on-mapr-6-0-1-release-highlights/

Events

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

UNITED STATES

Washington

Apache REEF (Bellevue) - Wednesday, April 18
https://www.meetup.com/Big-Data-Bellevue-BDB/events/248084694/

Colorado

Elasticsearch for Apache Hadoop Use Cases and Configurations (Denver) - Thursday, April 19
https://www.meetup.com/Boulder-Denver-Big-Data/events/249350256/

Texas

Data Science Project Using Spark, Spark Streaming, ML, & Kafka with Talend (Houston) - Thursday, April 19
https://www.meetup.com/Houston-Energy-Data-Science-Meetup/events/249293192/

Georgia

Children’s Healthcare of Atlanta: NextGen Sequencing Using Hadoop, Spark, & Kudu (Atlanta) - Thursday, April 19
https://www.meetup.com/BigData-Atlanta/events/249235709/

North Carolina

Hadoop and Enterprise Workflow: Getting Your App Implemented for Maximum Value (Raleigh) - Wednesday, April 18
https://www.meetup.com/Big-Data-Developers-in-Raleigh/events/249617799/

Maryland

Huge Steps for Apache NiFi: Talks on NiFi in Finance and Powerful New Features (Laurel) - Tuesday, April 17
https://www.meetup.com/ApacheNiFi/events/246967095/

UNITED KINGDOM

LeedsDevops Meetup (Leeds) - Tuesday, April 17
https://www.meetup.com/LeedsDevops/events/249461898/

Data Processing and SecOps at Scale (London) - Wednesday, April 18
https://www.meetup.com/Applied-Data-Engineering-London/events/249187216/

FRANCE

Future of ETL Isn't What It Used to Be, with Gwen Shapira (Paris) - Tuesday, April 17
https://www.meetup.com/Paris-Apache-Kafka-Meetup/events/249598854/

GERMANY

Apache Flink Meetup Berlin x DataWorks Summit (Berlin) - Tuesday, April 17
https://www.meetup.com/Apache-Flink-Meetup/events/247832833/

Tim Berglund: Stream Processing with KSQL (Cologne) - Wednesday, April 18
https://www.meetup.com/REWE-Digital-Events-Cologne/events/249394268/

Confluent and Payback Talk about Kafka, KSQL, and Spark (Munich) - Wednesday, April 18
https://www.meetup.com/Apache-Kafka-Germany-Munich/events/249419590/

CHINA

Kafka Beijing Meetup (Beijing) - Saturday, April 21
https://www.meetup.com/Beijing-Kafka-Meetup/events/247784013/