Skip to content

Instantly share code, notes, and snippets.

View guenter's full-sized avatar

Tobi Knaup guenter

View GitHub Profile
diff --git a/configure.ac b/configure.ac
index c1de6d7..3197d00 100644
--- a/configure.ac
+++ b/configure.ac
@@ -436,6 +436,13 @@ __EOF__
AC_DEFINE([MESOS_HAS_JAVA])
has_java=yes
+
+ # Test for Maven so we can build the jar
Index: source/blog/2014-04-10-mesos-community-update-2.md
===================================================================
--- source/blog/2014-04-10-mesos-community-update-2.md (revision 0)
+++ source/blog/2014-04-10-mesos-community-update-2.md (working copy)
@@ -0,0 +1,51 @@
+---
+layout: post
+title: "Mesos Community Update #2"
+permalink: /blog/mesos-community-update-2/
+published: true
3.95% libc-2.17.so [.] _int_malloc
3.76% libc-2.17.so [.] malloc
3.74% libc-2.17.so [.] _int_free
3.53% [kernel] [k] __ticket_spin_lock
2.83% libstdc++.so.6.0.18 [.] std::istreambuf_iterator<char, std::char_traits<char> > std::num_get<char, std::istreambuf_iterator<char, std::char_traits<char> > >::_M_extract_int<unsigned long>(std::istreambuf_iterator<char, std::char_traits<char> >, std::istreambuf_iterator<char, std::char_traits<char> >, std::ios_base&, std::_Ios_Iostate&, unsigned long&) const
2.56% libstdc++.so.6.0.18 [.] 0x000000000008a2b5
1.83% [kernel] [k] generic_exec_single
1.37% libstdc++.so.6.0.18 [.] std::istreambuf_iterator<char, std::char_traits<char> > std::num_get<char, std::istreambuf_iterator<char, std::char_traits<char> > >::_M_extract_int<long>(std::istreambuf_iterator<char, std::char_traits<char> >, std::istreambuf_iterator<char, std::char_traits<char> >, std::ios_base&, std::_Ios_Iostate&, long&) const
1.35% li
@guenter
guenter / mesos.rb
Created March 31, 2014 15:56
Mesos homebrew
require 'formula'
class Mesos < Formula
homepage 'http://incubator.apache.org/mesos/'
head 'https://git-wip-us.apache.org/repos/asf/mesos.git'
depends_on 'autoconf' => :build
depends_on 'automake' => :build
depends_on 'libtool' => :build
depends_on 'zookeeper'

Software projects built on Mesos

PaaS and Long Running Services

  • Aurora is a service scheduler that runs on top of Mesos, enabling you to run long-running services that take advantage of Mesos' scalability, fault-tolerance, and resource isolation.
  • Marathon is a private PaaS built on Mesos. It automatically handles hardware or software failures and ensures that an app is "always on".
  • SSSP is a simple web application that provides a white-label "Megaupload" for storing and sharing files in S3.

Big Data Processing

Index: Rakefile
===================================================================
--- Rakefile (revision 1572742)
+++ Rakefile (working copy)
@@ -36,7 +36,7 @@
Dir.glob('*.md').each { |doc|
puts "working on: #{doc}"
IO.write(doc, File.open(doc) { |f|
- f.read.gsub(/\((.*)(\.md)\)/, '(\1)')
+ f.read.gsub(/\((.*)(\.md)\)/, '(/documentation/latest/\1/)')
@guenter
guenter / .bashrc
Created December 10, 2013 01:03
Show git branch in prompt
# Git
source /usr/local/etc/bash_completion.d/git-prompt.sh
if [ "$USER" = "root" ]; then
PS1='\e[1;31m[\u@\h \W[\033[34m\]$(__git_ps1 " (%s)")\[\033[00m\]\$\e[0m '
else
PS1='\u@\h \w$(__git_ps1 " (%s)")\$ '
fi
alias g='git'
alias gpr='git pull --rebase'
@guenter
guenter / Main.scala
Last active September 17, 2020 11:25
A simple Mesos "Hello World": downloads and starts a Python web server on every node in the cluster.
import mesosphere.mesos.util.FrameworkInfo
import org.apache.mesos.MesosSchedulerDriver
/**
* @author Tobi Knaup
*/
object Main extends App {
@guenter
guenter / http.py
Created November 14, 2013 17:01
Simple Python HTTP server
import sys
port = 8080
if sys.version_info.major == 3:
import http.server
import socketserver
handler = http.server.SimpleHTTPRequestHandler
httpd = socketserver.TCPServer(("",port), handler)
elif sys.version_info.major == 2:
@guenter
guenter / using-twitter-commons-sample.sh
Created March 1, 2013 23:07
Using Twitter Commons sample app
# Clone the repo:
$ git clone git://github.com/airbnb/twitter-commons-sample.git
# Build using Maven:
$ mvn package
# Run:
$ bash run_local.bash
# Like a place: