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
# all the config is in attributes and is placed by the hadoop::default recipe. | |
package "hadoop-0.20-datanode" do | |
action :install | |
version node[:Hadoop][:Version] | |
end | |
package "hadoop-0.20-tasktracker" do | |
action :install | |
version node[:Hadoop][:Version] |
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
directories: | |
<% @node[:app][:directories].each do |d| %> | |
- <% d %> | |
<% end %> | |
Whereas node[:app][:directories] is an array that currently has six entries... | |
default[:app][:directories] = [ "/data/a/", "/data/b/", "/data/c/", "/data/d/", "/data/e/", "/data/f/" ] | |
Compiled, the template ends up like this: |
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
<html> | |
<head> | |
<title>Cassandra Ring Calculator</title> | |
</head> | |
<body> | |
<input id='numNodes' size=10> <button onClick='calcRing()'>Submit</button> | |
<script type='text/javascript'> | |
function calcRing() { | |
var nodes=document.getElementById('numNodes').value; | |
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
# Brisk mapred-site.xml | |
<?xml version="1.0"?> | |
<?xml-stylesheet type="text/xsl" href="configuration.xsl"?> | |
<configuration> | |
<property> | |
<name>mapred.job.tracker</name> | |
<value>${brisk.job.tracker}</value> | |
</property> |
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
#!/usr/bin/env python | |
# http://app.bronto.com/api/?q=_default | |
import suds | |
import logging | |
logging.basicConfig(level=logging.INFO) | |
logging.getLogger('suds.client').setLevel(logging.DEBUG) | |
brontoWSDL = "https://api.bronto.com/v4?wsdl" | |
brontoApiToken = "REDACTED" |
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
(ns io.milford.util | |
(:import [java.lang.management ManagementFactory])) | |
(defn get-pid [] | |
"Gets this process' PID." | |
(let [pid (.getName (ManagementFactory/getRuntimeMXBean))] | |
(first (re-seq #"[0-9]+" pid)))) | |
(defn write-pid-file [pid-file] | |
"Writes this process' PID to a supplied file name." |
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
# relevent bits from my library | |
def discover_cassandra_schema | |
# Discover schema information for this host so we can dynamically generate | |
# maintenance scripts and collectd config. | |
# | |
# This depends on the discover-cassandra-schema.sh script. Eventually | |
# I will us the Cassandra Ruby gem to get this data directly. | |
# Gets schema data into an array in and the form of keyspace.columnfamily |
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
This is me tracerouting my next hop with TWC | |
nathan@citadel:~$ traceroute 72.229.48.1 | |
traceroute to 72.229.48.1 (72.229.48.1), 64 hops max | |
1 72.229.48.1 (72.229.48.1) 1021.072ms * 10.697ms | |
This is my TWC supplied DNS server | |
traceroute to 209.18.47.61 (209.18.47.61), 64 hops max | |
1 * * 72.229.48.1 (72.229.48.1) 81.944ms |
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
2013-03-26 17:32:34,443 INFO org.apache.hadoop.hdfs.server.namenode.SecondaryNameNode: Downloaded file fsimage size 7196783 bytes. | |
2013-03-26 17:51:14,689 INFO org.apache.hadoop.hdfs.server.namenode.SecondaryNameNode: Downloaded file edits size 14987736708 bytes. | |
<--snip--> | |
2013-03-26 18:10:20,534 INFO org.apache.hadoop.hdfs.server.common.Storage: Edits file /data/a/dfs/checkpoint/current/edits of size 14987736708 edits # 97361272 loaded in 1143 seconds. | |
<--snip--> | |
2013-03-26 18:12:04,277 WARN org.apache.hadoop.hdfs.server.namenode.SecondaryNameNode: Checkpoint done. New Image Size: 798836083 |
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
%define __jar_repack %{nil} | |
%define glu_ver 4.4.0 | |
%define glu_pkg org.linkedin.glu.packaging-all-%{glu_ver} | |
%define glu_home /opt/glu | |
Name: glu | |
Version: %{glu_ver} | |
Release: 1%{?dist} | |
Source: http://repo.nydc1.outbrain.com/Misc/glu/%{glu_pkg}.tgz | |
License: Apache |
OlderNewer