Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I am very new to akka and would like to use Akka-cluster to build a cluster composed of two kinds of nodes, one with the role "front-end" and another with the role "back-end. Both these nodes will form part of the same cluster and messages will be exchanged between the actors. using the the page provided on http://doc.akka.io/docs/akka/2.1.2/cluster/cluster-usage-scala.html, i came across a few problem when running my code in sbt console. my src/main/resources/application.conf file is defined as follows:

akka { actor { provider = "akka.cluster.ClusterActorRefProvider" } remote { transport = "akka.remote.netty.NettyRemoteTransport" log-remote-lifecycle-events = off netty { hostname = "" port = 0 } }

cluster {
seed-nodes = [

auto-down = on

And I have added this path in the classpath varible within my .bashrc file. when I type "run-main sample.cluster.simple.SimpleClusterApp 2551" (without quotes) in the sbt this is the error I get:

[error] (run-main) akka.ConfigurationException: ActorSystem [akka://ClusterSystem] needs to have a 'ClusterActorRefProvider' enabled in the configuration, currently uses [akka.actor.LocalActorRefProvider] akka.ConfigurationException: ActorSystem [akka://ClusterSystem] needs to have a 'ClusterActorRefProvider' enabled in the configuration, currently uses [akka.actor.LocalActorRefProvider] at akka.cluster.Cluster.(Cluster.scala:66) at akka.cluster.Cluster$.createExtension(Cluster.scala:41) at akka.cluster.Cluster$.createExtension(Cluster.scala:36) at akka.actor.ActorSystemImpl.registerExtension(ActorSystem.scala:657) at akka.actor.ExtensionId$class.apply(Extension.scala:36) at akka.cluster.Cluster$.apply(Cluster.scala:36) at sample.cluster.simple.SimpleClusterApp$.main(cluster.scala:19) at sample.cluster.simple.SimpleClusterApp.main(cluster.scala) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) [trace] Stack trace suppressed: run last compile:run-main for the full output.

How do I get my sbt to read my aplication.conf file so that I could be able to start my cluster node?... I have Thanks in advance.

share|improve this question
add comment

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.