Andrew, Thanks. You're right, the typo was the cause of the error I was getting. I know I'll run into issues because there's no CM role, but I was testing to see if I can get to that point.
It's running the InitScript and got a different error (Caused by: com.cloudera.whirr.cm.server.CmServerException: Role [cm-cdh-namenode] requires cluster to have role [cm-agent]) but at least now I am making progress. Thanks On Thu, Jul 25, 2013 at 11:02 AM, Andrew Bayer <[email protected]>wrote: > First glance, I see a typo - jclouds.by on.enpoint. That should be > ...endpoint. Also, you're going to hit problems due to the lack of a > cm-server role. > > A. > On Jul 25, 2013 6:29 AM, "Joe Travaglini" <[email protected]> > wrote: > >> Hello, >> I'm new to Whirr so I've probably got this misconfigured. Just doing a >> simple test to see if the creds and env are set up properly, but it appears >> not. I have the RSA key specified in the path below propogated to the >> target server (test-master1) so the whirr user can password-less SSH >> between. >> >> The stack trace is below, but I don't know where the 'byon.yaml' is >> coming from as the files and configuration are called 'cm-byon.yaml'. I'm >> also not sure why this would be a "UnknownHostException"... >> >> Any help is appreciated. Thanks >> -Joe >> >> $ whirr launch-cluster --config cm-byon.properties >> $ cat cm-byon.properties >> whirr.cluster-name=hadoop >> whirr.cluster-user=whirr >> whirr.instance-templates=1 cm-agent+cm-cdh-namenode+cm-cdh-zookeeper >> whirr.client-cidrs=0.0.0.0/0 >> whirr.private-key-file=/home/whirr/.ssh/id_rsa_cm >> whirr.public-key-file=/home/whirr/.ssh/id_rsa_cm.pub >> whirr.service-name=byon >> whirr.provider=byon >> whirr.identity=notused >> whirr.credential=notused >> jclouds.byon.enpoint=file:///home/whirr/cm-byon.yaml >> whirr.cm.auto=false >> >> $ cat /home/whirr/cm-byon.yaml >> nodes: >> - id: test-master1 >> hostname: 192.168.0.8 >> os_arch: x86 >> # os_arch: x86_64 >> os_family: redhat >> os_description: redhat >> os_version: 6.3 >> group: whirr >> username: whirr >> credential: >> sudo_password: >> >> >> ---- ERROR --- >> >> Running on provider byon using identity notused >> Unable to start the cluster. Terminating all nodes. >> java.lang.RuntimeException: java.net.UnknownHostException: *byon.yaml* >> at >> com.google.common.base.Throwables.propagate(Throwables.java:160) >> at >> org.jclouds.byon.suppliers.SupplyFromProviderURIOrNodesProperty.apply(SupplyFromProviderURIOrNodesProperty.java:84) >> at >> org.jclouds.byon.suppliers.SupplyFromProviderURIOrNodesProperty.get(SupplyFromProviderURIOrNodesProperty.java:68) >> at >> org.jclouds.byon.suppliers.SupplyFromProviderURIOrNodesProperty.get(SupplyFromProviderURIOrNodesProperty.java:44) >> at >> org.jclouds.byon.suppliers.NodesParsedFromSupplier.get(NodesParsedFromSupplier.java:58) >> at >> org.jclouds.byon.suppliers.NodesParsedFromSupplier.get(NodesParsedFromSupplier.java:42) >> at >> org.jclouds.byon.internal.BYONComputeServiceAdapter.listNodes(BYONComputeServiceAdapter.java:83) >> at >> org.jclouds.compute.strategy.impl.AdaptingComputeServiceStrategies.listDetailsOnNodesMatching(AdaptingComputeServiceStrategies.java:115) >> at >> org.jclouds.compute.strategy.impl.AdaptingComputeServiceStrategies.listNodes(AdaptingComputeServiceStrategies.java:110) >> at >> org.jclouds.compute.internal.BaseComputeService.listNodes(BaseComputeService.java:342) >> at >> org.apache.whirr.actions.ByonClusterAction.doAction(ByonClusterAction.java:112) >> at >> org.apache.whirr.actions.ScriptBasedClusterAction.execute(ScriptBasedClusterAction.java:127) >> at >> org.apache.whirr.ByonClusterController.bootstrapCluster(ByonClusterController.java:92) >> at >> org.apache.whirr.ClusterController.launchCluster(ClusterController.java:113) >> 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.net.UnknownHostException: byon.yaml >> at >> java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:175) >> at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:384) >> at java.net.Socket.connect(Socket.java:546) >> at java.net.Socket.connect(Socket.java:495) >> at sun.net.NetworkClient.doConnect(NetworkClient.java:178) >> at sun.net.NetworkClient.openServer(NetworkClient.java:134) >> at sun.net.ftp.FtpClient.openServer(FtpClient.java:505) >> at sun.net.ftp.FtpClient.openServer(FtpClient.java:492) >> at >> sun.net.www.protocol.ftp.FtpURLConnection.connect(FtpURLConnection.java:288) >> at >> sun.net.www.protocol.ftp.FtpURLConnection.getInputStream(FtpURLConnection.java:375) >> at java.net.URL.openStream(URL.java:1029) >> at >> org.jclouds.byon.suppliers.SupplyFromProviderURIOrNodesProperty.apply(SupplyFromProviderURIOrNodesProperty.java:81) >> ... 16 more >> >>
