Skip to content

Instantly share code, notes, and snippets.

@patmcdonough
Created July 26, 2012 01:05
Show Gist options
  • Save patmcdonough/3179673 to your computer and use it in GitHub Desktop.
Save patmcdonough/3179673 to your computer and use it in GitHub Desktop.
Issues running whirr-cm
mbppatcloudera:bin pat$ whirr launch-cluster --config ../../cm-ec2.properties
Unable to start the cluster. Terminating all nodes.
java.lang.IllegalArgumentException: java.lang.NullPointerException: Action handler not found
at org.apache.whirr.actions.ScriptBasedClusterAction.safeGetActionHandler(ScriptBasedClusterAction.java:245)
at org.apache.whirr.actions.ScriptBasedClusterAction.execute(ScriptBasedClusterAction.java:100)
at org.apache.whirr.ClusterController.launchCluster(ClusterController.java:106)
at org.apache.whirr.cli.command.LaunchClusterCommand.run(LaunchClusterCommand.java:63)
at org.apache.whirr.cli.Main.run(Main.java:64)
at org.apache.whirr.cli.Main.main(Main.java:97)
Caused by: java.lang.NullPointerException: Action handler not found
at com.google.common.base.Preconditions.checkNotNull(Preconditions.java:204)
at org.apache.whirr.HandlerMapFactory$ReturnHandlerByRoleOrPrefix.apply(HandlerMapFactory.java:66)
at org.apache.whirr.HandlerMapFactory$ReturnHandlerByRoleOrPrefix.apply(HandlerMapFactory.java:45)
at com.google.common.collect.ComputingConcurrentHashMap$ComputingValueReference.compute(ComputingConcurrentHashMap.java:355)
at com.google.common.collect.ComputingConcurrentHashMap$ComputingSegment.compute(ComputingConcurrentHashMap.java:184)
at com.google.common.collect.ComputingConcurrentHashMap$ComputingSegment.getOrCompute(ComputingConcurrentHashMap.java:153)
at com.google.common.collect.ComputingConcurrentHashMap.getOrCompute(ComputingConcurrentHashMap.java:69)
at com.google.common.collect.ComputingConcurrentHashMap$ComputingMapAdapter.get(ComputingConcurrentHashMap.java:393)
at org.apache.whirr.actions.ScriptBasedClusterAction.safeGetActionHandler(ScriptBasedClusterAction.java:238)
... 5 more
Unable to load cluster state, assuming it has no running nodes.
mbppatcloudera:bin pat$ pwd
/Users/pat/Workspace/whirr-cm/test/whirr-0.7.1/bin
mbppatcloudera:bin pat$ ls ../lib/whirr-cm-1.1.jar
../lib/whirr-cm-1.1.jar
mbppatcloudera:bin pat$ env | grep PATH
PATH=/opt/local/bin:/opt/local/sbin:/opt/local/bin:/opt/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/usr/local/git/bin:/Users/pat/Workspace/whirr-cm/test/whirr-0.7.1/bin
mbppatcloudera:bin pat$ whirr --help
Unrecognized command '--help'
Usage: whirr COMMAND [ARGS]
where COMMAND may be one of:
launch-cluster Launch a new cluster running a service.
destroy-cluster Terminate and cleanup resources for a running cluster.
destroy-instance Terminate and cleanup resources for a single instance.
list-cluster List the nodes in a cluster.
list-providers Show a list of the supported providers
run-script Run a script on a specific instance or a group of instances matching a role name
version Print the version number and exit.
Available roles for instances:
cassandra
elasticsearch
ganglia-metad
ganglia-monitor
hadoop-datanode
hadoop-jobtracker
hadoop-namenode
hadoop-tasktracker
hama-groomserver
hama-master
hbase-avroserver
hbase-master
hbase-regionserver
hbase-restserver
hbase-thriftserver
mahout-client
noop
puppet-install
voldemort
zookeeper
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment