Skip to content

Instantly share code, notes, and snippets.

void
server_ref(struct conn *conn, void *owner)
{
struct server *server = owner;
ASSERT(!conn->client && !conn->proxy);
ASSERT(conn->owner == NULL);
uint8_t *p, *q, *start, *addr;
uint32_t addrlen;
Ref: http://www.datastax.com/dev/blog/basic-rules-of-cassandra-data-modeling
Data Modeling
Spread Data Evenly Around the Cluster
Minimize the Number of Partitions Read
Ref: http://www.datastax.com/dev/blog/cql3_collections
Remember about Cassandra has collections (Sets, Lists and Map)
@venkatkalluru
venkatkalluru / golang-atom-keyboard-shortcuts
Created April 28, 2016 02:38
atom golang keyboard shortcuts
cmd-alt-b - run current file
cmd-alt-g - goto definition
ctrl-space - code completion
example of http rest call
curl -s -H 'X-Presto-Catalog:cassandra' -H 'X-Presto-User:venkat' -X POST -d @query.json http://<your presto server ip>:<port number>/v1/execute | jsonlint
cd /usr/local/spark-1.6.0-bin-hadoop2.6/
./sbin/start-master.sh
telnet sandbox 7077
./sbin/start-slave.sh spark://sandbox:7077
./sbin/start-thriftserver.sh --master spark://sandbox:7077
Spark caching and persistence.
http://stackoverflow.com/questions/28981359/why-do-we-need-to-call-cache-or-persist-on-a-rdd
Livy
@venkatkalluru
venkatkalluru / golangtospark.txt
Last active March 25, 2017 23:51
connecting golang to spark notes (WIP)
Reference Docs
--
1. http://www.easysoft.com/support/kb/kb01045.html
2. http://www.datastax.com/dev/blog/tableau-spark-cassandra
@venkatkalluru
venkatkalluru / gist:9b922a243b632c6e357a461337d6a64d
Created April 7, 2017 21:18
interesting computer science basic reads
https://engineering.linkedin.com/distributed-systems/log-what-every-software-engineer-should-know-about-real-time-datas-unifying
of-course hadoop
hbase/cassandra
spark
redshift/snowflake
kibana
For success, there won't be short paths. Workhard with patience and one day it will knock our door
message delivary (at-least once, at-most once, exactly once)
“When you publish a message and you don’t hear back, you either lost it or you didn’t, and so you try to send it again and that’s when you introduce a duplicate.”
https://www.datanami.com/2017/02/09/exactly-big-deal-apache-kafka/