scaling apache spark

Scaling Apache Spark: 1.2 billion data points in 18 minutes

Scaling Apache Spark is typically the last step before executing a Spark-dependent workflow. In previous articles, we introduced Spark, and showed how to optimize it. Once correctly optimized, scaling Apache Spark becomes trivial. To demonstrate, we return to the NYC taxi dataset originally described here. As of 2019, this dataset contains about 1.5 billion anonymized [...]

Optimize apache spark

Optimize Apache Spark and Hadoop in big data analytics [Part 2] [Advanced]

One often sees questions in forums asking why, for a particular Spark job, certain configurations outperform others. A naive understanding of Spark might imply that increasing the number of executors or increasing the cores per executor will lead to faster job completions. This is wrong. In this post, we show how to optimize Apache Spark. Faster execution [...]

Get down the mountain, quickly!

You are standing on the side of a steep mountain. You need to descend to the base of the mountain as quickly as possible. Remarkably, this scenario illustrates a central concept in machine learning. But let's get back to the mountain. I'd imagine that the first thing you would do, almost intuitively, would be to [...]

what is machine learning

Teach your child to count – the machine learning way.

What is machine learning? I could bore you with textbook definitions. Instead, let me use a familiar example. A few days ago, I was teaching a child how to count. This is what transpired: Child:   1, 2, 3, 4, 5, 3, 8... Me:   Stop. 1, 2, 3, 4, 5 is correct, but what comes after [...]

Artificial intelligence machine learning image

Is Artificial Intelligence an existential threat to humanity?

The masterfully scripted Ex-Machina is a slow-burning, cerebral thriller which subtly exposes moral and ethical questions surrounding Artificial Intelligence (AI). Indeed, I am yet to watch a better movie on the subject. Ex-Machina (literally, "from the machine") revolves around three characters. First, we meet Caleb, an exceptional computer programmer. He works at Bluebook, a company [...]