You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@whirr.apache.org by "Steve Loughran (JIRA)" <ji...@apache.org> on 2012/09/12 18:52:08 UTC

[jira] [Commented] (WHIRR-652) NoSuchElementException if you try to deploy a JT in a cluster without an NN

    [ https://issues.apache.org/jira/browse/WHIRR-652?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13454118#comment-13454118 ] 

Steve Loughran commented on WHIRR-652:
--------------------------------------

{code}
, exitStatus=0}
Wrote instances file /Users/stevel/.whirr/hadoop/instances
*CRITICAL* the cluster failed to launch and the automated node termination option was not selected, there might be orphaned nodes.
java.util.NoSuchElementException
	at com.google.common.collect.AbstractIterator.next(AbstractIterator.java:154)
	at com.google.common.collect.Iterators.getOnlyElement(Iterators.java:360)
	at com.google.common.collect.Iterables.getOnlyElement(Iterables.java:270)
	at org.apache.whirr.Cluster.getInstanceMatching(Cluster.java:186)
	at org.apache.whirr.service.hadoop.HadoopCluster.getNamenodePublicAddress(HadoopCluster.java:39)
	at org.apache.whirr.service.hadoop.HadoopJobTrackerClusterActionHandler.doBeforeConfigure(HadoopJobTrackerClusterActionHandler.java:51)
	at org.apache.whirr.service.hadoop.HadoopClusterActionHandler.beforeConfigure(HadoopClusterActionHandler.java:101)
	at org.apache.whirr.service.ClusterActionHandlerSupport.beforeAction(ClusterActionHandlerSupport.java:54)
	at org.apache.whirr.actions.ScriptBasedClusterAction.execute(ScriptBasedClusterAction.java:118)
	at org.apache.whirr.ByonClusterController.configureServices(ByonClusterController.java:99)
	at org.apache.whirr.ClusterController.configureServices(ClusterController.java:153)
	at org.apache.whirr.ClusterController.launchCluster(ClusterController.java:114)
	at org.apache.whirr.cli.command.LaunchClusterCommand.run(LaunchClusterCommand.java:69)
	at org.apache.whirr.cli.command.LaunchClusterCommand.run(LaunchClusterCommand.java:59)
	at org.apache.whirr.cli.Main.run(Main.java:69)
	at org.apache.whirr.cli.Main.main(Main.java:102)
Exception in thread "main" java.lang.RuntimeException: java.util.NoSuchElementException
	at org.apache.whirr.ClusterController.launchCluster(ClusterController.java:128)
	at org.apache.whirr.cli.command.LaunchClusterCommand.run(LaunchClusterCommand.java:69)
	at org.apache.whirr.cli.command.LaunchClusterCommand.run(LaunchClusterCommand.java:59)
	at org.apache.whirr.cli.Main.run(Main.java:69)
	at org.apache.whirr.cli.Main.main(Main.java:102)
Caused by: java.util.NoSuchElementException
	at com.google.common.collect.AbstractIterator.next(AbstractIterator.java:154)
	at com.google.common.collect.Iterators.getOnlyElement(Iterators.java:360)
	at com.google.common.collect.Iterables.getOnlyElement(Iterables.java:270)
	at org.apache.whirr.Cluster.getInstanceMatching(Cluster.java:186)
	at org.apache.whirr.service.hadoop.HadoopCluster.getNamenodePublicAddress(HadoopCluster.java:39)
	at org.apache.whirr.service.hadoop.HadoopJobTrackerClusterActionHandler.doBeforeConfigure(HadoopJobTrackerClusterActionHandler.java:51)
	at org.apache.whirr.service.hadoop.HadoopClusterActionHandler.beforeConfigure(HadoopClusterActionHandler.java:101)
	at org.apache.whirr.service.ClusterActionHandlerSupport.beforeAction(ClusterActionHandlerSupport.java:54)
	at org.apache.whirr.actions.ScriptBasedClusterAction.execute(ScriptBasedClusterAction.java:118)
	at org.apache.whirr.ByonClusterController.configureServices(ByonClusterController.java:99)
	at org.apache.whirr.ClusterController.configureServices(ClusterController.java:153)
	at org.apache.whirr.ClusterController.launchCluster(ClusterController.java:114)
	... 4 more

{code}
                
> NoSuchElementException if you try to deploy a JT in a cluster without an NN
> ---------------------------------------------------------------------------
>
>                 Key: WHIRR-652
>                 URL: https://issues.apache.org/jira/browse/WHIRR-652
>             Project: Whirr
>          Issue Type: Bug
>          Components: service/hadoop
>    Affects Versions: 0.9.0
>         Environment: BYON + Hadoop 1.0.3
>            Reporter: Steve Loughran
>            Priority: Minor
>
> Trying to deploy a JT without an NN results in a failure (probably the right option) -but it doesn't get there until everything else has been done, and pops up with a stack trace

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira