Skip to content

Instantly share code, notes, and snippets.

@hkhamm
hkhamm / play_framework.md
Last active February 2, 2018 03:13
Using the Play Framework

#Using the Play Framework

##Installation

Install the Play Framework with Homebrew.

brew install typesafe-activator
@hkhamm
hkhamm / solving_spark_signature_error.md
Last active October 21, 2023 16:33
Solving a Spark Invalid signature file digest for Manifest main attributes error

##Solving a Spark error: Invalid signature file digest for Manifest main attributes

When using spark-submit to run a jar, you may encounter this error:

Invalid signature file digest for Manifest main attributes

The error occurs when one of the included libraries in the jar's META-INF directory has a bad signature.

@hkhamm
hkhamm / testing_spark_cassandra.md
Last active August 8, 2019 13:29
Testing Spark and Cassandra
@hkhamm
hkhamm / install_spark.md
Last active August 1, 2019 19:44
Install, Setup, and Test Spark and Cassandra on Mac OS X

Install, Setup, and Test Spark and Cassandra on Mac OS X

This Gist assumes you already followed the instructions to install Cassandra, created a keyspace and table, and added some data.

Install Apache Spark

brew install apache-spark
@hkhamm
hkhamm / install_connector.sh
Last active December 14, 2018 09:47
Install the Spark Cassandra Connector
#!/bin/bash
# Installs the spark-cassandra-connector and support libs
mkdir /opt/connector
cd /opt/connector
rm *.jar
curl -o ivy-2.3.0.jar \
'http://search.maven.org/remotecontent?filepath=org/apache/ivy/ivy/2.3.0/ivy-2.3.0.jar'
@hkhamm
hkhamm / installing_cassandra.md
Last active May 5, 2024 13:14
Installing Cassandra on Mac OS X

Installing Cassandra on Mac OS X

Install Homebrew

Homebrew is a great little package manager for OS X. If you haven't already, installing it is pretty easy:

ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"
Forager