Skip to content

Instantly share code, notes, and snippets.

View codeaperature's full-sized avatar

Stefan codeaperature

  • Data Engineer
  • San Francisco, CA
View GitHub Profile
@codeaperature
codeaperature / SimpleSparkExample.ipynb
Created March 24, 2016 00:32
A Simple Intro & Tutorial for Spark: Users Logins Example
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@codeaperature
codeaperature / DataFramesSparkJDBCPostgreSQL.ipynb
Last active February 11, 2019 19:15
Spark Scala DataFrames Example with JSON, PostgreSQL & Rest
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@codeaperature
codeaperature / ApacheKafkaScalaPolledExample.ipynb
Last active April 11, 2016 17:54
Apache Kafka Scala Polled Example
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@codeaperature
codeaperature / Schema2CaseClass.scala
Created November 9, 2017 04:12 — forked from yoyama/Schema2CaseClass.scala
Generate case class from spark DataFrame/Dataset schema.
/**
* Generate Case class from DataFrame.schema
*
* val df:DataFrame = ...
*
* val s2cc = new Schema2CaseClass
* import s2cc.implicit._
*
* println(s2cc.schemaToCaseClass(df.schema, "MyClass"))
*