whirr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrei Savu <savu.and...@gmail.com>
Subject Re: authentication trouble
Date Tue, 11 Oct 2011 22:31:18 GMT
Chris -

We've seen this issue in the past. I will take a closer look in the morning
(in ~10 hours). Can you upload the full log somewhere? Also make the sure
that the SSH keypair does not need a password.

Cheers,

-- Andrei Savu / andreisavu.ro

On Tue, Oct 11, 2011 at 11:13 PM, Chris Schilling
<chris@thecleversense.com>wrote:

> Hello,
>
> New to whirr, having trouble *running whirr from an ec2 instance*
> (authentication when setting up other machines)
>
> First, here is my configuration:
> whirr.cluster-name=hadoop
> whirr.instance-templates=1 hadoop-namenode+hadoop-jobtracker,1
> hadoop-datanode+hadoop-tasktracker
>
> # For EC2 set AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY environment
> variables.
> whirr.provider=aws-ec2
> whirr.identity=${env:AWS_ACCESS_KEY_ID}
> whirr.credential=${env:AWS_SECRET_ACCESS_KEY}
>
> # The size of the instance to use. See
> http://aws.amazon.com/ec2/instance-types/
> whirr.hardware-id=m1.large
> whirr.image-id=us-east-1/ami-da0cf8b3
> whirr.location-id=us-east-1
> # By default use the user system SSH keys. Override them here.
> whirr.private-key-file=${sys:user.home}/.ssh/id_rsa_whirr
> whirr.public-key-file=${whirr.private-key-file}.pub
>
>
>
> I export the credentials, then create the key:
>  ssh-keygen -t rsa -P '' -f ~/.ssh/id_rsa_whirr
>
> Then I launch the cluster:
> whirr launch-cluster --config hadoop-ec2.properties --private-key-file
> ~/.ssh/id_rsa_whirr
>
> The nodes start (costs me $!), but then authentication errors all over the
> place, along with Preconditions failures.  Here are some samples of the
> java.lang.NullPointerException: architecture
>         at
> com.google.common.base.Preconditions.checkNotNull(Preconditions.java:204)
>         at org.jclouds.ec2.domain.Image.<init>(Image.java:81)
>         at
> org.jclouds.ec2.xml.DescribeImagesResponseHandler.endElement(DescribeImagesResponseHandler.java:169)
>         at
> com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(AbstractSAXParser.java:604)
>         at
> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanEndElement(XMLDocumentFragmentScannerImpl.java:1759)
>         at
> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2915)
>         at
> com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:625)
>         at
> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:488)
>         at
> com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:812)
>         at
> com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:741)
>         at
> com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:123)
> ......
>
> Then the authentication errors begin:
> <<authenticated>> woke to: net.schmizz.sshj.userauth.UserAuthException:
> publickey auth failed
> << (ubuntu@184.72.177.130:22) error acquiring SSHClient(ubuntu@
> 184.72.177.130:22): Exhausted available authentication methods
> net.schmizz.sshj.userauth.UserAuthException: Exhausted available
> authentication methods
>         at
> net.schmizz.sshj.userauth.UserAuthImpl.authenticate(UserAuthImpl.java:114)
>         at net.schmizz.sshj.SSHClient.auth(SSHClient.java:204)
>         at net.schmizz.sshj.SSHClient.authPublickey(SSHClient.java:304)
>         at net.schmizz.sshj.SSHClient.authPublickey(SSHClient.java:323)
>         at org.jclouds.sshj.SshjSshClient$1.create(SshjSshClient.java:183)
>         at org.jclouds.sshj.SshjSshClient$1.create(SshjSshClient.java:155)
>         at org.jclouds.sshj.SshjSshClient.acquire(SshjSshClient.java:204)
>         at org.jclouds.sshj.SshjSshClient.connect(SshjSshClient.java:229)
>         at
> org.jclouds.compute.callables.RunScriptOnNodeAsInitScriptUsingSsh.call(RunScriptOnNodeAsInitScriptUsingSsh.java:107)
>         at
> org.jclouds.compute.strategy.RunScriptOnNodeAndAddToGoodMapOrPutExceptionIntoBadMap.call(RunScriptOnNodeAndAddToGoodMapOrPutExceptionIntoBadMap.java:69)
>         at
> org.jclouds.compute.strategy.RunScriptOnNodeAndAddToGoodMapOrPutExceptionIntoBadMap.call(RunScriptOnNodeAndAddToGoodMapOrPutExceptionIntoBadMap.java:44)
> ......
>
> Please advise!
>
>
> Chris Schilling
> Sr. Data Mining Engineer
> Clever Sense, Inc.
> "Curating the World Around You"
> --------------------------------------------------------------
> Winner of the 2011 Fortune Brainstorm Start-up Idol<http://tech.fortune.cnn.com/2011/07/20/startup-idol-brainstorm-clever-sense/>
>
> Wanna join the Clever Team? We're hiring!<http://www.thecleversense.com/jobs.html>
> --------------------------------------------------------------
>
>

Mime
View raw message