List of Listings

 

Chapter 2. Spark fundamentals

Listing 2.1. Contents of Spark’s log4j.properties file

Listing 2.2. Calculating the squares of an RDD’s elements using map

Chapter 3. Writing Spark applications

Listing 3.1. Complete source code of the program

Listing 3.2. Final version of the adapted, parameterized application

Chapter 6. Ingesting data with Spark Streaming

Listing 6.1. Calculating the number of sell/buy orders and finding the top five clients

Listing 6.2. Complete code for calculating metrics and sending the results to Kafka

Chapter 9. Connecting the dots with GraphX

Listing 9.1. GraphX implementation of the A* search algorithm

Appendix A. Installing Apache Spark

Listing A.1. log4j.properties file