Skip to content

Instantly share code, notes, and snippets.

@lemanuel
lemanuel / sparkathon-agenda.md
Created January 25, 2017 10:01 — forked from jaceklaskowski/sparkathon-agenda.md
Sparkathon in Warsaw - Development Activities

Spark-a-thon - Development Activities

Structured Streaming

  1. Developing a custom StreamSourceProvider
  2. Migrating TextSocketStream to SparkSession (currently uses SQLContext)
  3. Developing Sink and Source for Apache Kafka
  4. JDBC support (with PostgreSQL as the database)

Spark SQL

@lemanuel
lemanuel / deployment-tool-ansible-puppet-chef-salt.md
Created December 29, 2016 10:40 — forked from jaceklaskowski/deployment-tool-ansible-puppet-chef-salt.md
Choosing a deployment tool - ansible vs puppet vs chef vs salt

Requirements

  • no upfront installation/agents on remote/slave machines - ssh should be enough
  • application components should use third-party software, e.g. HDFS, Spark's cluster, deployed separately
  • configuration templating
  • environment requires/asserts, i.e. we need a JVM in a given version before doing deployment
  • deployment process run from Jenkins

Solution

@lemanuel
lemanuel / introrx.md
Created December 9, 2016 13:49 — forked from staltz/introrx.md
The introduction to Reactive Programming you've been missing
@lemanuel
lemanuel / 3nightclubs.scala
Created December 8, 2016 11:18 — forked from oxbowlakes/3nightclubs.scala
A Tale of 3 Nightclubs
/**
* Part Zero : 10:15 Saturday Night
*
* (In which we will see how to let the type system help you handle failure)...
*
* First let's define a domain. (All the following requires scala 2.9.x and scalaz 6.0)
*/
import scalaz._
import Scalaz._

Advanced Functional Programming with Scala - Notes

Copyright © 2017 Fantasyland Institute of Learning. All rights reserved.

1. Mastering Functions

A function is a mapping from one set, called a domain, to another set, called the codomain. A function associates every element in the domain with exactly one element in the codomain. In Scala, both domain and codomain are types.

val square : Int => Int = x => x * x