Skip to content

Instantly share code, notes, and snippets.

View nathangoulding's full-sized avatar

Nathan Goulding nathangoulding

View GitHub Profile
ubuntu@ip-172-31-28-116:~$ dse pig
2014-07-16 20:00:15,574 [main] INFO org.apache.pig.Main - Apache Pig version 0.10.1 (r1426282) compiled Dec 27 2012, 11:24:26
2014-07-16 20:00:15,575 [main] INFO org.apache.pig.Main - Logging error messages to: /home/ubuntu/pig_1405540815569.log
2014-07-16 20:00:15,954 [main] INFO org.apache.pig.backend.hadoop.executionengine.HExecutionEngine - Connecting to hadoop file system at: cfs://172.31.28.116/
2014-07-16 20:00:16,870 [main] INFO com.datastax.bdp.snitch.Workload - Setting my workload to Cassandra
2014-07-16 20:00:18,245 [main] INFO org.apache.pig.backend.hadoop.executionengine.HExecutionEngine - Connecting to map-reduce job tracker at: 172.31.31.145:8012
grunt> pageviews = LOAD 'cql://pageviews/pageviews_v4_mzcztspeog?page_size=5000&where_clause=d%3D20140702' USING CqlStorage();
grunt> illustrate pageviews;
2014-07-16 20:01:02,808 [main] INFO org.apache.pig.backend.hadoop.executionengine.HExecutionEngine - Connecting to hadoop file system at: cfs://172.31.28.116
@nathangoulding
nathangoulding / delete-on-shutdown.sh
Last active January 28, 2019 20:02
delete-on-shutdown.sh
#!/bin/sh
cat <<EOF > /lib/systemd/system/delete-on-shutdown.service
[Unit]
Description=Delete this instance
Requires=network.target
DefaultDependencies=no
Before=shutdown.target
[Service]