Skip to content

Instantly share code, notes, and snippets.

Nov 12 07:26:31 kt22 poseidon[12726]: #015#015 Could not connect to archive.cloudera.com:80 (184.73.217.71). - connect (110: Connection timed out)#015
Nov 12 07:26:31 kt22 poseidon[12726]: #015#015Err http://archive.cloudera.com/cdh4/ubuntu/precise/amd64/cdh/ 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 archive.cloudera.com:http:#015
Nov 12 07:26:31 kt22 poseidon[12726]: #015#015Err http://archive.cloudera.com/cdh4/ubuntu/precise/amd64/cdh/ 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 archive.cloudera.com:http:#015
Nov 12 07:26:31 kt22 poseidon[12726]: #015#015Err http://archive.cloudera.com/cdh4/ubuntu/precise/amd64/cdh/ 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 archive.cloudera.com:http:#
10.235.22.60 ec2-50-19-155-11.compute-1.amazonaws.com
10.159.54.170 ec2-54-235-22-116.compute-1.amazonaws.com
10.168.15.46 ec2-107-20-130-87.compute-1.amazonaws.com
10.168.39.24 ec2-54-234-7-167.compute-1.amazonaws.com
10.182.167.70 ec2-54-227-192-125.compute-1.amazonaws.com
10.158.64.117 ec2-23-20-194-160.compute-1.amazonaws.com
10.170.45.42 ec2-54-234-95-249.compute-1.amazonaws.com
10.158.21.134 ec2-54-221-87-42.compute-1.amazonaws.com
10.157.31.208 ec2-50-16-34-254.compute-1.amazonaws.com
10.29.211.230 ec2-54-226-202-167.compute-1.amazonaws.com
#!/bin/bash
ip=`ifconfig eth0|grep -o -e "inet addr:[0-9\.]*"|sed 's/.*://g'`
name=`hostname`
echo $ip $name
for parameter 1 at org.jclouds.cloudstack.handlers.InvalidateSessionAndRetryOn401AndLogoutOnClose.<init>(InvalidateSessionAndRetryOn401AndLogoutOnClose.java:51)
at org.jclouds.cloudstack.config.CloudStackHttpApiModule.configure(CloudStackHttpApiModule.java:82)
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>(LoginWithPasswordCredentials.java:37)
at org.jclouds.cloudstack.config.CloudStackHttpApiModule.provideLoginResponseCache(CloudStackHttpApiModule.java:142)
20) No implementation for org.jclouds.cloudstack.CloudStackClient was bound.
at org.jclouds.cloudstack.compute.config.CloudStackComputeServiceContextModule.listOSCategories(CloudStackComputeServiceContextModule.java:162)
21) No implementation for org.jclouds.cloudstack.CloudStackClient was bound.
at org.jclouds.cloudstack.compute.config.CloudStackComputeServ
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://10.145.214.207/tmp/hadoop/mapred/system) 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 ...
org.apache.hadoop.security.AccessControlException: Permission denied: user=mapred, access=EXECUTE, inode="/tmp/hadoop":ubuntu:hadoop:drwx------
at org.apache.hadoop.hdfs.server.namenode.FSPermissionChecker.check(FSPermissionChecker.java:224)
at org.apache.hadoop.hdfs.server.namenode.FSPermissionChecker.checkTraverse(FSPermissionChecker.java:177)
at org.apache.hadoop.hdfs.server.namenode.FSPermissionChecker.checkPermission(FSPermissionChecker.java:142)
at org.apache.hadoop.hdfs.server.namenode.FSNamesystem.checkPermission(FSNamesystem.java:4716)
at org.apache.hadoop.hdfs.server.namenode.FSNamesystem.checkPermission(FSN
class ShellExecutor() extends Executor {
//args|command.
// 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) {
println("Registered....")
@florianleibert
florianleibert / retry.scala
Created January 16, 2013 23:34
Retry wrapper in 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.
*/
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
florianleibert / retry.bash
Created November 2, 2012 08:40
Retry logic in bash (for ssh / scp)
#!/bin/bash
set -o nounset
set -o errexit
set -o pipefail
declare -r max=4
declare i=0
function wrap() {
local cmd=$1 ; shift
@florianleibert
florianleibert / gist:3776855
Created September 24, 2012 16:28
Mult-SSH
tell application "iTerm"
activate
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