首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Akka集群配置

Akka集群配置
EN

Stack Overflow用户
提问于 2018-05-04 17:29:20
回答 1查看 324关注 0票数 3

我得到了这个错误:

代码语言:javascript
复制
[ERROR] [05/04/2018 11:21:26.747] [default-akka.actor.default-dispatcher-19] 
[akka://default/system/cluster/core/daemon/joinSeedNodeProcess-1] bug 
in method caller: not valid to create ConfigValue from: ConfigString("")
com.typesafe.config.ConfigException$BugOrBroken: bug in method caller: not valid to create ConfigValue from: ConfigString("")
at com.typesafe.config.impl.ConfigImpl.fromAnyRef(ConfigImpl.java:275)
at com.typesafe.config.impl.PropertiesParser.fromPathMap(PropertiesParser.java:152)
at com.typesafe.config.impl.PropertiesParser.fromPathMap(PropertiesParser.java:82)
at com.typesafe.config.impl.ConfigImpl.fromAnyRef(ConfigImpl.java:260)
at com.typesafe.config.impl.ConfigImpl.fromPathMap(ConfigImpl.java:200)
at com.typesafe.config.ConfigFactory.parseMap(ConfigFactory.java:855)
at com.typesafe.config.ConfigFactory.parseMap(ConfigFactory.java:866)
at akka.cluster.JoinConfigCompatChecker$.filterWithKeys(JoinConfigCompatChecker.scala:104)
at akka.cluster.JoinSeedNodeProcess$$anonfun$receive$4.applyOrElse(ClusterDaemon.scala:1514)
at akka.actor.Actor.aroundReceive(Actor.scala:517)
at akka.actor.Actor.aroundReceive$(Actor.scala:515)
at akka.cluster.JoinSeedNodeProcess.aroundReceive(ClusterDaemon.scala:1490)
at akka.actor.ActorCell.receiveMessage(ActorCell.scala:588)
at akka.actor.ActorCell.invoke(ActorCell.scala:557)
at akka.dispatch.Mailbox.processMailbox(Mailbox.scala:258)
at akka.dispatch.Mailbox.run(Mailbox.scala:225)
at akka.dispatch.Mailbox.exec(Mailbox.scala:235)
at akka.dispatch.forkjoin.ForkJoinTask.doExec(ForkJoinTask.java:260)
at akka.dispatch.forkjoin.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1339)
at akka.dispatch.forkjoin.ForkJoinPool.runWorker(ForkJoinPool.java:1979)
at akka.dispatch.forkjoin.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:107)

当尝试创建(仅限本地) akka集群时。我在application.conf中将我的配置精简为几行:

代码语言:javascript
复制
akka {
    actor {
        provider = "akka.cluster.ClusterActorRefProvider"
    }
    cluster {
        seed-nodes = ["akka.tcp://ClusterSystem@127.0.0.1:2552"]
    }
}

并在启动ActorSystem时出现错误:

代码语言:javascript
复制
fun main(args: Array<String>) {
    ActorSystem.create()
}

我使用的是akka版本2.5.12和scala版本2.12。

EN

回答 1

Stack Overflow用户

发布于 2018-05-04 19:38:38

所以我在我的maven pom中加入了com.twitter chill-akka版本的0.9.2。这包括com.typesage config版本的1.2.1com.typesafe.akka akka-actor-typed version 2.5.12需要的版本是1.3.2

所以现在我的maven include看起来像这样:

代码语言:javascript
复制
<dependency>
    <groupId>com.twitter</groupId>
    <artifactId>chill-akka_${scala.version}</artifactId>
    <version>0.9.2</version>
    <exclusions>
        <exclusion>
            <groupId>com.typesafe</groupId>
            <artifactId>config</artifactId>
        </exclusion>
    </exclusions>
</dependency>
票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/50171638

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档