ssh -t -i KP_bastion ec2-user@bastion \
ssh -t -i /home/ec2-user/.ssh/KP_server [email protected] \
"tail -f /var/log/syslog"
import org.apache.spark._ | |
import org.apache.spark.streaming._ | |
import org.apache.spark.SparkConf | |
object SimpleStreamingApp { | |
def main(args:Array[String]) { | |
val conf = new SparkConf().setMaster("local[2]").setAppName("Simple App") | |
val ssc = new StreamingContext(conf, Seconds(45)) // Time window of 45 second. | |
val lines = ssc.socketTextStream("localhost", 9999) |
import org.apache.spark.SparkContext | |
import org.apache.spark.SparkContext._ | |
import org.apache.spark.SparkConf | |
object SimpleApp { | |
def main(args:Array[String]) { | |
val logFile = "/mnt/home2/Documents/bin/spark-1.5.1-bin-hadoop2.6/README.md" | |
val conf = new SparkConf().setAppName("Simple App") | |
val sparkContext = new SparkContext(conf) |
ssh -t -i KP_bastion ec2-user@bastion \
ssh -t -i /home/ec2-user/.ssh/KP_server [email protected] \
"tail -f /var/log/syslog"
ssh -t -i KP_bastion ec2-user@bastion ssh -t -i /home/ec2-user/.ssh/KP_server [email protected] |
main
function executing various parallel operations on a cluster.
Main abstraction: Resilient Distributed Dataset (Fault tolerant abstraction for In-Memory Cluster computing)
Motivated by two types of applications that traditional Map Reduce weren't handling efficiently:
var request = require('request') | |
, path = require('path') | |
, fs = require('fs') | |
, url = "https://api.github.com/users/diegopacheco/gists" | |
, savepath = 'D:/tmp/gists'; | |
String.prototype.replaceAll = function(search, replace, ignoreCase) { | |
if (ignoreCase) { | |
var result = []; | |
var _string = this.toLowerCase(); |
sudo yum install -y git gcc perl-CPAN bison flex byacc libmicrohttpd-devel gcc-c++ nodejs npm --enablerepo=epel
git clone git://git.pcp.io/pcp
cd pcp/
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --with-webapi
sudo groupadd -r pcp
sudo useradd -c "Performance Co-Pilot" -g pcp -d /var/lib/pcp -M -r -s /usr/sbin/nologin pcp
make
sudo make install
#NetflixOSS in a nutshell
Based on http://jhohertz.github.io/netflixoss-slides
I hereby claim:
To claim this, I am signing this object: