首页 文章

Lagom嵌入了Cassandra

提问于
浏览
0

运行 sbt runAll 会产生以下结果:

[info] Starting Cassandra
.
[info] Cassandra server is not yet started.
[info] 
[info] The value assigned to
[info] `lagomCassandraMaxBootWaitingTime`
[info] is either too short, or this may indicate another
[info] process is already running on port 4000

没有在端口4000上运行 . 我尝试配置不同的端口,但消息仍然存在(使用不同的端口) .
默认情况下,20秒就足够了,我强烈怀疑这是问题所在 .

不知道如何调试这个或者原因可能是什么 .
我意识到我可以运行一个本地的Cassandra服务器,但我希望能让它工作 .
有什么建议?

1 回答

  • 0

    事实证明,增加超时实际上如文档中所述:

    import scala.concurrent.duration._ // Mind that the import is needed.
    lagomCassandraMaxBootWaitingTime in ThisBuild := 50000.seconds
    

    这可能是我的电脑的一个问题,构建速度非常慢 .
    我会进一步研究这个问题 .

相关问题