You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@whirr.apache.org by Ashish <pa...@gmail.com> on 2011/02/01 04:34:25 UTC
Re: Error while running cassandra using whirr
I test again with 0.3 release, and the error is same
Any clue on what might be incorrect in my configuration?
>From the stacktrace, the client is trying sftp, should it try scp?
Here are the detailed logs
2011-02-01 08:52:17,584 DEBUG [jclouds.compute] (pool-1-thread-1) <<
started instances(i-9357d9ff,i-6d54da01,i-6f54da03)
2011-02-01 08:52:18,784 DEBUG [jclouds.compute] (pool-1-thread-1) <<
present instances(i-9357d9ff,i-6d54da01,i-6f54da03)
2011-02-01 08:53:02,465 DEBUG [jclouds.compute] (user thread 5) >>
authorizing rsa public key for ubuntu@75.101.178.157
2011-02-01 08:53:03,327 DEBUG [jclouds.compute] (user thread 3) <<
initialized(0)
2011-02-01 08:53:03,328 DEBUG [jclouds.compute] (user thread 3) >>
running [sudo ./runscript start] as ubuntu@75.101.178.157
2011-02-01 08:53:03,669 DEBUG [jclouds.compute] (user thread 5) << complete(0)
2011-02-01 08:53:05,039 DEBUG [jclouds.compute] (user thread 3) << start(0)
2011-02-01 08:53:05,488 DEBUG [jclouds.compute] (user thread 11) >>
authorizing rsa public key for ubuntu@50.16.32.230
2011-02-01 08:53:07,227 DEBUG [jclouds.compute] (user thread 10) <<
initialized(0)
2011-02-01 08:53:07,227 DEBUG [jclouds.compute] (user thread 10) >>
running [sudo ./runscript start] as ubuntu@50.16.32.230
2011-02-01 08:53:07,362 DEBUG [jclouds.compute] (user thread 11) << complete(0)
2011-02-01 08:53:08,966 DEBUG [jclouds.compute] (user thread 10) << start(0)
2011-02-01 08:53:35,908 DEBUG [jclouds.compute] (user thread 3) <<
complete(true)
2011-02-01 08:53:36,779 DEBUG [jclouds.compute] (user thread 3) <<
stdout from runscript as ubuntu@75.101.178.157
update-alternatives: using /usr/lib/jvm/java-6-sun/jre/bin/orbd to
provide /usr/bin/orbd (orbd) in auto mode.
update-alternatives: using /usr/lib/jvm/java-6-sun/jre/bin/servertool
to provide /usr/bin/servertool (servertool) in auto mode.
update-alternatives: using /usr/lib/jvm/java-6-sun/jre/bin/tnameserv
to provide /usr/bin/tnameserv (tnameserv) in auto mode.
update-alternatives: using /usr/lib/jvm/java-6-sun/jre/lib/jexec to
provide /usr/bin/jexec (jexec) in auto mode.
Setting up sun-java6-jdk (6.22-0ubuntu1~10.04) ...
Setting up visualvm (1.2.2-0ubuntu2) ...
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
2011-02-01 08:53:37,600 DEBUG [jclouds.compute] (user thread 3) <<
stderr from runscript as ubuntu@75.101.178.157
+ mkdir -p /mnt/cassandra/logs
+ ln -s /mnt/cassandra/logs /var/log/cassandra
+ mkdir -p /etc/cassandra/conf
+ cp /usr/local/apache-cassandra-0.7.0/conf/log4j-server.properties
/usr/local/apache-cassandra-0.7.0/conf/log4j-tools.properties
/etc/cassandra/conf
+ [[ 0.6 == \0\.\7 ]]
+ cp /usr/local/apache-cassandra-0.7.0/conf/cassandra.yaml /etc/cassandra/conf
+ cp /usr/local/apache-cassandra-0.7.0/conf/cassandra-env.sh /etc/cassandra/conf
+ sed -i -e 's|CASSANDRA_CONF=$CASSANDRA_HOME/conf|CASSANDRA_CONF=/etc/cassandra/conf|'
/usr/local/apache-cassandra-0.7.0/bin/cassandra.in.sh
+ sed -i -e 's/exit 0//' /etc/rc.local
+ cat
2011-02-01 08:53:40,023 ERROR [jclouds.compute] (user thread 13) ssh,
completed: 0/2, errors: 1, rate: 3272ms/op
java.util.concurrent.ExecutionException: org.jclouds.ssh.SshException:
ubuntu@50.16.175.249:22: Error putting path: runscript
at java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:222)
at java.util.concurrent.FutureTask.get(FutureTask.java:83)
at org.jclouds.concurrent.FutureIterables$1.run(FutureIterables.java:121)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:680)
Caused by: org.jclouds.ssh.SshException: ubuntu@50.16.175.249:22:
Error putting path: runscript
at org.jclouds.ssh.jsch.JschSshClient.put(JschSshClient.java:167)
at org.jclouds.compute.callables.RunScriptOnNode.call(RunScriptOnNode.java:94)
at org.jclouds.compute.callables.RunScriptOnNode.call(RunScriptOnNode.java:53)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
... 3 more
Caused by: 4: java.io.IOException: inputstream is closed
at com.jcraft.jsch.ChannelSftp._put(ChannelSftp.java:578)
at com.jcraft.jsch.ChannelSftp.put(ChannelSftp.java:439)
at com.jcraft.jsch.ChannelSftp.put(ChannelSftp.java:406)
at org.jclouds.ssh.jsch.JschSshClient.put(JschSshClient.java:165)
... 7 more
Caused by: java.io.IOException: inputstream is closed
at com.jcraft.jsch.ChannelSftp.fill(ChannelSftp.java:2327)
at com.jcraft.jsch.ChannelSftp.header(ChannelSftp.java:2351)
at com.jcraft.jsch.ChannelSftp.checkStatus(ChannelSftp.java:1924)
at com.jcraft.jsch.ChannelSftp._put(ChannelSftp.java:567)
... 10 more
2011-02-01 08:53:40,023 ERROR [jclouds.compute] (user thread 9) ssh,
completed: 0/2, errors: 2, rate: 3273ms/op
java.util.concurrent.ExecutionException: org.jclouds.ssh.SshException:
ubuntu@50.16.175.249:22: Error putting path: .ssh/id_rsa.pub
at java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:222)
at java.util.concurrent.FutureTask.get(FutureTask.java:83)
at org.jclouds.concurrent.FutureIterables$1.run(FutureIterables.java:121)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:680)
Caused by: org.jclouds.ssh.SshException: ubuntu@50.16.175.249:22:
Error putting path: .ssh/id_rsa.pub
at org.jclouds.ssh.jsch.JschSshClient.put(JschSshClient.java:167)
at org.jclouds.compute.callables.AuthorizeRSAPublicKey.call(AuthorizeRSAPublicKey.java:52)
at org.jclouds.compute.callables.AuthorizeRSAPublicKey.call(AuthorizeRSAPublicKey.java:37)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
... 3 more
Caused by: 4:
at com.jcraft.jsch.ChannelSftp.getHome(ChannelSftp.java:1894)
at com.jcraft.jsch.ChannelSftp.getCwd(ChannelSftp.java:1903)
at com.jcraft.jsch.ChannelSftp.remoteAbsolutePath(ChannelSftp.java:2360)
at com.jcraft.jsch.ChannelSftp.put(ChannelSftp.java:418)
at com.jcraft.jsch.ChannelSftp.put(ChannelSftp.java:406)
at org.jclouds.ssh.jsch.JschSshClient.put(JschSshClient.java:165)
... 7 more
Caused by: java.io.IOException: inputstream is closed
at com.jcraft.jsch.ChannelSftp.fill(ChannelSftp.java:2327)
at com.jcraft.jsch.ChannelSftp.header(ChannelSftp.java:2351)
at com.jcraft.jsch.ChannelSftp._realpath(ChannelSftp.java:1810)
at com.jcraft.jsch.ChannelSftp.getHome(ChannelSftp.java:1888)
... 12 more
2011-02-01 08:53:40,037 ERROR [jclouds.compute] (user thread 1) ssh,
completed: 0/2, errors: 2, rate: 3280ms/op
java.lang.RuntimeException: ssh, completed: 0/2, errors: 2, rate: 3280ms/op
at org.jclouds.concurrent.FutureIterables.awaitCompletion(FutureIterables.java:139)
at org.jclouds.compute.util.ComputeUtils.runCallablesUsingSshClient(ComputeUtils.java:245)
at org.jclouds.compute.util.ComputeUtils.runTasksUsingSshClient(ComputeUtils.java:214)
at org.jclouds.compute.util.ComputeUtils.runCallablesOnNode(ComputeUtils.java:203)
at org.jclouds.compute.util.ComputeUtils.runOptionsOnNode(ComputeUtils.java:151)
at org.jclouds.compute.util.ComputeUtils$1.call(ComputeUtils.java:116)
at org.jclouds.compute.util.ComputeUtils$1.call(ComputeUtils.java:112)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:680)
2011-02-01 08:53:40,039 ERROR [jclouds.compute] (user thread 1) <<
problem applying options to node(us-east-1/i-6f54da03):
java.lang.RuntimeException: error invoking callables on nodes:
{org.jclouds.compute.callables.AuthorizeRSAPublicKey@1a0283e=java.util.concurrent.ExecutionException:
org.jclouds.ssh.SshException: ubuntu@50.16.175.249:22: Error putting
path: .ssh/id_rsa.pub,
org.jclouds.compute.callables.RunScriptOnNode@31f9b804=java.util.concurrent.ExecutionException:
org.jclouds.ssh.SshException: ubuntu@50.16.175.249:22: Error putting
path: runscript}
at org.jclouds.compute.util.ComputeUtils.runCallablesUsingSshClient(ComputeUtils.java:247)
at org.jclouds.compute.util.ComputeUtils.runTasksUsingSshClient(ComputeUtils.java:214)
at org.jclouds.compute.util.ComputeUtils.runCallablesOnNode(ComputeUtils.java:203)
at org.jclouds.compute.util.ComputeUtils.runOptionsOnNode(ComputeUtils.java:151)
at org.jclouds.compute.util.ComputeUtils$1.call(ComputeUtils.java:116)
at org.jclouds.compute.util.ComputeUtils$1.call(ComputeUtils.java:112)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:680)
2011-02-01 08:53:40,767 DEBUG [jclouds.compute] (user thread 2) >>
installing rsa key for ubuntu@75.101.178.157
2011-02-01 08:53:41,703 DEBUG [jclouds.compute] (user thread 2) <<
options applied node(us-east-1/i-9357d9ff)
2011-02-01 08:53:42,069 DEBUG [jclouds.compute] (user thread 10) <<
complete(true)
2011-02-01 08:53:43,129 DEBUG [jclouds.compute] (user thread 10) <<
stdout from runscript as ubuntu@50.16.32.230
update-alternatives: using /usr/lib/jvm/java-6-sun/jre/bin/orbd to
provide /usr/bin/orbd (orbd) in auto mode.
update-alternatives: using /usr/lib/jvm/java-6-sun/jre/bin/servertool
to provide /usr/bin/servertool (servertool) in auto mode.
update-alternatives: using /usr/lib/jvm/java-6-sun/jre/bin/tnameserv
to provide /usr/bin/tnameserv (tnameserv) in auto mode.
update-alternatives: using /usr/lib/jvm/java-6-sun/jre/lib/jexec to
provide /usr/bin/jexec (jexec) in auto mode.
Setting up sun-java6-jdk (6.22-0ubuntu1~10.04) ...
Setting up visualvm (1.2.2-0ubuntu2) ...
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
2011-02-01 08:53:44,153 DEBUG [jclouds.compute] (user thread 10) <<
stderr from runscript as ubuntu@50.16.32.230
+ mkdir -p /mnt/cassandra/logs
+ ln -s /mnt/cassandra/logs /var/log/cassandra
+ mkdir -p /etc/cassandra/conf
+ cp /usr/local/apache-cassandra-0.7.0/conf/log4j-server.properties
/usr/local/apache-cassandra-0.7.0/conf/log4j-tools.properties
/etc/cassandra/conf
+ [[ 0.6 == \0\.\7 ]]
+ cp /usr/local/apache-cassandra-0.7.0/conf/cassandra.yaml /etc/cassandra/conf
+ cp /usr/local/apache-cassandra-0.7.0/conf/cassandra-env.sh /etc/cassandra/conf
+ sed -i -e 's|CASSANDRA_CONF=$CASSANDRA_HOME/conf|CASSANDRA_CONF=/etc/cassandra/conf|'
/usr/local/apache-cassandra-0.7.0/bin/cassandra.in.sh
+ sed -i -e 's/exit 0//' /etc/rc.local
+ cat
2011-02-01 08:53:47,843 DEBUG [jclouds.compute] (user thread 4) >>
installing rsa key for ubuntu@50.16.32.230
2011-02-01 08:53:48,628 DEBUG [jclouds.compute] (user thread 4) <<
options applied node(us-east-1/i-6d54da01)
cheers
ashish
On Sun, Jan 30, 2011 at 10:22 AM, Ashish <pa...@gmail.com> wrote:
> On Sat, Jan 29, 2011 at 10:51 PM, Lars George <la...@gmail.com> wrote:
>> Hi Ashish,
>>
>> I meant for you to use the hardware-id, image-id and location only in your config. The config is indeed for trunk but that is a different test altogether.
>>
>> Lars
>
> Hi Lars,
>
> Same errror :(
>
> 0.3 has already passed the vote, so let me wait for it and bug you
> folks once again with whatever the outcome is :)
>
> Once it works out, it would be a time to blog about it.
>
> I have a crazy idea of integrating whirr to cassandra-gui for easily
> managing the cluster. Will take a while but I think I will
> pick it up once am done porting it to cassandra 0.7
>