This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library(dplyr) | |
library(reshape) | |
library(doMC) | |
library(caret) | |
trim.leading <- function (x) sub("^\\s+", "", x) | |
trim.trailing <- function (x) sub("\\s+$", "", x) | |
trim <- function (x) gsub("^\\s+|\\s+$", "", x) | |
registerDoMC(8) |
This file has been truncated, but you can view the full file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"metadata": { | |
"name": "", | |
"signature": "sha256:081b9937ad2575f1768d01c339462ad704226fa0c6551d14934aad2abf212241" | |
}, | |
"nbformat": 3, | |
"nbformat_minor": 0, | |
"worksheets": [ | |
{ | |
"cells": [ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# BHR hangs distribution and uptime correlation | |
library(ggplot2) | |
library(dplyr) | |
session <- read.csv("session.csv") %.% filter(uptime >= 0) | |
ggplot(aes(x=hangs), data=session) + | |
geom_histogram(aes(y=..density..), binwidth=1, colour="black", fill="blue") + | |
scale_x_continuous(limits=c(0, 50)) + #~ 90th quantile for sessions |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//========================================================================== | |
// A gentle tutorial to Spark and Telemetry | |
//========================================================================== | |
// Let's import some Spark classes | |
import org.apache.spark.SparkContext | |
import org.apache.spark.SparkContext._ | |
import org.apache.spark.SparkConf | |
// ... and some json parsing utilities |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
HOME=/home/hadoop | |
source $HOME/.bashrc | |
# Error message | |
error_msg () | |
{ | |
echo 1>&2 "Error: $1" | |
} | |
# Parse arguments |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.