I am trying to get my akka cluster up and running on my localhost with below configuration. My language is Java.
It works all good in eclipse, however, it gives me an error when I build my fat jar and try to run it from the command line.
Error: Caused by: com.typesafe.config.ConfigException$Missing: No configuration setting found for key 'enabled'
I am pretty sure that it finds following conf file as I confirmed that any changes I do in the file take effect in next run.
Master {
akka {
actor {
provider = "cluster"
}
remote {
maximum-payload-bytes = 30000000 bytes
log-remote-lifecycle-events = off
netty.tcp {
hostname = "127.0.0.1"
port = 0
message-frame-size = 30000000b
send-buffer-size = 30000000b
receive-buffer-size = 30000000b
maximum-frame-size = 30000000b
}
}
cluster {
roles = ["Master"]
seed-nodes = [
"akka.tcp://GyanClusterSystem@127.0.0.1:2556"]
# auto downing is NOT safe for production deployments.
# you may want to use it during development, read more about it in the docs.
#
#auto-down-unreachable-after = 10s
}
}
}
Worker {
akka {
actor {
provider = "cluster"
}
remote {
maximum-payload-bytes = 30000000 bytes
log-remote-lifecycle-events = off
netty.tcp {
hostname = "127.0.0.1"
port = 0
message-frame-size = 30000000b
send-buffer-size = 30000000b
receive-buffer-size = 30000000b
maximum-frame-size = 30000000b
}
}
cluster {
roles = ["Worker"]
seed-nodes = [
"akka.tcp://GyanClusterSystem@127.0.0.1:2556"]
# auto downing is NOT safe for production deployments.
# you may want to use it during development, read more about it in the docs.
# auto-down-unreachable-after = 10s
}
}
}
Also, I have only one conf file. application.conf So I am guessing I don’t need any other reference.conf files?
Also, I guess I need to Maven Shade plug-in instead of Assembly?
For simplicity sake and testing purposes, I kept my application.conf file outside of my codebase for now. Please see below.
Also, I have only one conf file. application.conf So I am guessing I don’t need any other reference.conf files?
You do have have tons of them actually
Each akka-* library defines its own reference.conf, so they have to be merged using the shading as documented.
Please configure the plugin the as it is shown in the documentation – the things around reference.conf specifically. In the piece you pasted you did not configure it.