Skip to content

Instantly share code, notes, and snippets.

@suyash
suyash / Main.java
Created March 20, 2016 18:46
Spark SQL using SQLContext with a dynamically defined schema
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import org.apache.spark.SparkConf;
import org.apache.spark.SparkContext;
import org.apache.spark.api.java.JavaRDD;
import org.apache.spark.sql.DataFrame;
import org.apache.spark.sql.Row;
import org.apache.spark.sql.RowFactory;
@suyash
suyash / .gitignore
Created March 20, 2016 18:42
Cassandra to Cassandra over Hadoop MapReduce bindings
### Java ###
*.class
# Package Files #
*.jar
*.war
*.ear
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
hs_err_pid*
@suyash
suyash / .gitignore
Created March 20, 2016 18:39
Cassandra indexing using Thrift
### Java ###
*.class
# Package Files #
*.jar
*.war
*.ear
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
hs_err_pid*
@suyash
suyash / LICENSE
Last active November 16, 2016 03:00
me
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2016- Suyash Verma <[email protected]>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE