All Projects → jgperrin → net.jgp.books.spark.ch01

jgperrin / net.jgp.books.spark.ch01

Licence: other
Spark in Action, 2nd edition - chapter 1 - Introduction

Programming Languages

scala
5932 projects
java
68154 projects - #9 most used programming language
python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to net.jgp.books.spark.ch01

net.jgp.books.spark.ch07
Spark in Action, 2nd edition - chapter 7 - Ingestion from files
Stars: ✭ 13 (-81.94%)
Mutual labels:  apache-spark, manning, sparkwithjava
Spark-for-data-engineers
Apache Spark for data engineers
Stars: ✭ 22 (-69.44%)
Mutual labels:  apache-spark
BigCLAM-ApacheSpark
Overlapping community detection in Large-Scale Networks using BigCLAM model build on Apache Spark
Stars: ✭ 40 (-44.44%)
Mutual labels:  apache-spark
DaFlow
Apache-Spark based Data Flow(ETL) Framework which supports multiple read, write destinations of different types and also support multiple categories of transformation rules.
Stars: ✭ 24 (-66.67%)
Mutual labels:  apache-spark
spark-records
Bulletproof Apache Spark jobs with fast root cause analysis of failures.
Stars: ✭ 67 (-6.94%)
Mutual labels:  apache-spark
parquet-dotnet
🐬 Apache Parquet for modern .Net
Stars: ✭ 199 (+176.39%)
Mutual labels:  apache-spark
datalake-etl-pipeline
Simplified ETL process in Hadoop using Apache Spark. Has complete ETL pipeline for datalake. SparkSession extensions, DataFrame validation, Column extensions, SQL functions, and DataFrame transformations
Stars: ✭ 39 (-45.83%)
Mutual labels:  apache-spark
spark-sql-internals
The Internals of Spark SQL
Stars: ✭ 331 (+359.72%)
Mutual labels:  apache-spark
spark
Apache Spark enhanced with native Kubernetes scheduler back-end: NOTE this repository is being ARCHIVED as all new development for the kubernetes scheduler back-end is now on https://github.com/apache/spark/
Stars: ✭ 609 (+745.83%)
Mutual labels:  apache-spark
hyperdrive
Extensible streaming ingestion pipeline on top of Apache Spark
Stars: ✭ 31 (-56.94%)
Mutual labels:  apache-spark
ClassicComputerScienceProblemsInJava
Source Code for the Book Classic Computer Science Problems in Java
Stars: ✭ 95 (+31.94%)
Mutual labels:  manning
sparkucx
A high-performance, scalable and efficient ShuffleManager plugin for Apache Spark, utilizing UCX communication layer
Stars: ✭ 32 (-55.56%)
Mutual labels:  apache-spark
SynapseML
Simple and Distributed Machine Learning
Stars: ✭ 3,355 (+4559.72%)
Mutual labels:  apache-spark
PysparkCheatsheet
PySpark Cheatsheet
Stars: ✭ 25 (-65.28%)
Mutual labels:  apache-spark
jupyterlab-sparkmonitor
JupyterLab extension that enables monitoring launched Apache Spark jobs from within a notebook
Stars: ✭ 78 (+8.33%)
Mutual labels:  apache-spark
Sparkora
Powerful rapid automatic EDA and feature engineering library with a very easy to use API 🌟
Stars: ✭ 51 (-29.17%)
Mutual labels:  apache-spark
SparkTwitterAnalysis
An Apache Spark standalone application using the Spark API in Scala. The application uses Simple Build Tool(SBT) for building the project.
Stars: ✭ 29 (-59.72%)
Mutual labels:  apache-spark
SparkProgrammingInScala
Apache Spark Course Material
Stars: ✭ 57 (-20.83%)
Mutual labels:  apache-spark
pulsar-adapters
Apache Pulsar Adapters
Stars: ✭ 18 (-75%)
Mutual labels:  apache-spark
spark-utils
Basic framework utilities to quickly start writing production ready Apache Spark applications
Stars: ✭ 25 (-65.28%)
Mutual labels:  apache-spark

This repository contains Scala and Python versions of the Java code used in Manning Publication’s Spark in Action, 2nd edition, by Jean-Georges Perrin.

Spark in Action, 2nd edition – Java, Python, and Scala code for chapter 1

Chapter 1 introduces the book and offers a basic example.

This code is designed to work with Apache Spark v3.1.2.

Lab

Each chapter has one or more labs. Labs are examples used for teaching in the book. You are encouraged to take ownership of the code and modify it, experiment with it, hence the use of the term lab. This chapter has only one lab.

Lab #100

The CsvToDataframeApp application does the following:

  1. It acquires a session (a SparkSession).
  2. It asks Spark to load (ingest) a dataset in CSV format.
  3. Spark stores the contents in a dataframe, then displays the first five rows of the dataset.

Running the lab in Java

For information on running the Java lab, see chapter 1 in Spark in Action, 2nd edition.

Running the lab using PySpark

Prerequisites:

You will need:

  • git.
  • Apache Spark (please refer Appendix K - 'Spark in production: installation and a few tips').
  1. Clone this project
git clone https://github.com/jgperrin/net.jgp.books.spark.ch01
  1. Go to the lab in the Python directory
cd net.jgp.books.spark.ch01/src/main/python/lab100_csv_to_dataframe/
  1. Execute the following spark-submit command to create a jar file to our this application
spark-submit csvToDataframeApp.py

Running the lab in Scala

Prerequisites:

You will need:

  • git.
  • Apache Spark (please refer Appendix P - 'Spark in production: installation and a few tips').
  1. Clone this project
git clone https://github.com/jgperrin/net.jgp.books.spark.ch01
  1. cd net.jgp.books.spark.ch01

  2. Package application using sbt command

sbt clean assembly
  1. Run Spark/Scala application using spark-submit command as shown below:
spark-submit --class net.jgp.books.spark.ch01.lab100_csv_to_dataframe.CsvToDataframeScalaApp target/scala-2.11/SparkInAction2-Chapter01-assembly-1.0.0.jar

News

  1. [2020-06-07] Updated the pom.xml to support Apache Spark v3.1.2.
  2. [2020-06-07] As we celebrate the first anniversary of Spark in Action, 2nd edition is the best-rated Apache Spark book on Amazon.

Notes

  1. [Java] Due to renaming the packages to match more closely Java standards, this project is not in sync with the book's MEAP prior to v10 (published in April 2019).
  2. [Scala, Python] As of MEAP v14, we have introduced Scala and Python examples (published in October 2019).
  3. The master branch contains the last version of the code running against the latest supported version of Apache Spark. Look in specifics branches for specific versions.

Follow me on Twitter to get updates about the book and Apache Spark: @jgperrin. Join the book's community on Facebook or in Manning's live site.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].