Skip to content

Instantly share code, notes, and snippets.

View gist:7426989
Nov 12 07:26:31 kt22 poseidon[12726]: #015#015 Could not connect to ( - connect (110: Connection timed out)#015
Nov 12 07:26:31 kt22 poseidon[12726]: #015#015Err precise-cdh4/contrib bigtop-utils all 0.6.0+140-1.cdh4.4.0.p0.24~precise-cdh4.4.0#015
Nov 12 07:26:31 kt22 poseidon[12726]: #015#015 Unable to connect to
Nov 12 07:26:31 kt22 poseidon[12726]: #015#015Err precise-cdh4/contrib zookeeper all 3.4.5+23-1.cdh4.4.0.p0.24~precise-cdh4.4.0#015
Nov 12 07:26:31 kt22 poseidon[12726]: #015#015 Unable to connect to
Nov 12 07:26:31 kt22 poseidon[12726]: #015#015Err precise-cdh4/contrib hadoop all 2.0.0+1475-1.cdh4.4.0.p0.23~precise-cdh4.4.0#015
Nov 12 07:26:31 kt22 poseidon[12726]: #015#015 Unable to connect to
View gist:7158430
View gist:7158377
ip=`ifconfig eth0|grep -o -e "inet addr:[0-9\.]*"|sed 's/.*://g'`
echo $ip $name
View gist:6198318
for parameter 1 at org.jclouds.cloudstack.handlers.InvalidateSessionAndRetryOn401AndLogoutOnClose.<init>(
at org.jclouds.cloudstack.config.CloudStackHttpApiModule.configure(
19) No implementation for org.jclouds.cloudstack.features.SessionClient was bound.
while locating org.jclouds.cloudstack.features.SessionClient
for parameter 0 at org.jclouds.cloudstack.loaders.LoginWithPasswordCredentials.<init>(
at org.jclouds.cloudstack.config.CloudStackHttpApiModule.provideLoginResponseCache(
20) No implementation for org.jclouds.cloudstack.CloudStackClient was bound.
at org.jclouds.cloudstack.compute.config.CloudStackComputeServiceContextModule.listOSCategories(
21) No implementation for org.jclouds.cloudstack.CloudStackClient was bound.
at org.jclouds.cloudstack.compute.config.CloudStackComputeServ
View gist:6187915
13/08/08 19:33:00 INFO mapred.JobTracker: Creating the system directory
13/08/08 19:33:00 WARN mapred.JobTracker: Failed to operate on mapred.system.dir (hdfs:// because of permissions.
13/08/08 19:33:00 WARN mapred.JobTracker: This directory should be owned by the user 'mapred (auth:SIMPLE)'
13/08/08 19:33:00 WARN mapred.JobTracker: Bailing out ... Permission denied: user=mapred, access=EXECUTE, inode="/tmp/hadoop":ubuntu:hadoop:drwx------
at org.apache.hadoop.hdfs.server.namenode.FSPermissionChecker.check(
at org.apache.hadoop.hdfs.server.namenode.FSPermissionChecker.checkTraverse(
at org.apache.hadoop.hdfs.server.namenode.FSPermissionChecker.checkPermission(
at org.apache.hadoop.hdfs.server.namenode.FSNamesystem.checkPermission(
at org.apache.hadoop.hdfs.server.namenode.FSNamesystem.checkPermission(FSN
View gist:6004234
class ShellExecutor() extends Executor {
// e.g. args: -av (async job), verbose mode
val executorService = Executors.newFixedThreadPool(20)
val log = Logger.getLogger(getClass.getName)
def registered(executorDriver: ExecutorDriver, executorInfo: ExecutorInfo, frameworkInfo: FrameworkInfo,
slaveInfo: SlaveInfo) {
florianleibert / retry.scala
Created Jan 16, 2013
Retry wrapper in scala
View retry.scala
* Retries a function
* @param max the maximum retries
* @param attempt the current attempt number
* @param i the input
* @param fnc the function to wrap
* @tparam I the input parameter type
* @tparam O the output parameter type
* @return either Some(instanceOf[O]) or None if more exceptions occurred than permitted by max.
View gist:4235863
scala> case class Foo(val name : String)
defined class Foo
scala> case class Bar(override val name : String, val age : Int) extends Foo(name : String)
warning: there were 1 deprecation warnings; re-run with -deprecation for details
defined class Bar
scala> val a = Bar("foo", 1)
a: Bar = Foo(foo)
florianleibert / retry.bash
Created Nov 2, 2012
Retry logic in bash (for ssh / scp)
View retry.bash
set -o nounset
set -o errexit
set -o pipefail
declare -r max=4
declare i=0
function wrap() {
local cmd=$1 ; shift
View gist:3776855
tell application "iTerm"
make new terminal
set Names to paragraphs of (read (choose file with prompt "File with hostnames") )
repeat with nextLine in Names
if length of nextLine is greater than 0 then
set cmd to "ssh ubuntu@" & nextLine
my open_tab(nextLine, cmd)
end if