小编fpe*_*all的帖子

为什么我的Zookeeper服务器无法重新加入Quorum?

我的法定人数中有三台服务器.他们正在运行ZooKeeper 3.4.5.根据输出结果,其中两个似乎运行正常mntr.其中一个由于部署而在几天前重新启动,从那时起就无法加入法定人数.日志中突出的一些行是:

2014-03-03 18:44:40,995 [myid:1] - INFO  [main:QuorumPeer@429] - currentEpoch not found! Creating with a reasonable default of 0. This should only happen when you are upgrading your installation
Run Code Online (Sandbox Code Playgroud)

和:

2014-03-03 18:44:41,233 [myid:1] - INFO  [QuorumPeer[myid=1]/0.0.0.0:2181:QuorumCnxManager@190] - Have smaller server identifier, so dropping the connection: (2, 1)
2014-03-03 18:44:41,234 [myid:1] - INFO  [QuorumPeer[myid=1]/0.0.0.0:2181:QuorumCnxManager@190] - Have smaller server identifier, so dropping the connection: (3, 1)
2014-03-03 18:44:41,235 [myid:1] - INFO  [QuorumPeer[myid=1]/0.0.0.0:2181:FastLeaderElection@774] - Notification time out: 400
Run Code Online (Sandbox Code Playgroud)

谷歌搜索第一个('currentEpoch not found!')让我去了JIRA …

apache-zookeeper

14
推荐指数
1
解决办法
6141
查看次数

如何为sbt test指定sbt 0.12.2的配置文件?

我玩了!使用单元测试的项目,我正在尝试使用sbt在我的临时环境中运行测试.在我升级到Play 2.1之前,当我使用Play 2.0.4和sbt 0.11.3时,我可以做到$ sbt -Dconfig.file=conf/staging.conf test.现在sbt test似乎使用默认的application.conf,无论我为-Dconfig.file指定了什么.

sbt start -Dconfig.file=conf/staging.conf仍然很好.这种行为是sbt 0.12.2的错误还是我应该以不同的方式指定运行测试的配置文件?

sbt playframework playframework-2.0 playframework-2.1

13
推荐指数
2
解决办法
9573
查看次数

Scala Play框架:编译的css文件的重复映射

我完成了todolist教程并试图通过在app/assets/stylesheets中添加一个main.less样式表来扩展它.但是,当我尝试使用main.less中的任何规则或没有规则在浏览器中查看项目时,我得到此错误,浏览器很好地显示:

意外的异常

RuntimeException:重复映射:/Users/franklinpearsall/Documents/Programming/play-2.0.4/todolist/target/scala-2.9.1/classes/public/stylesheets/main.css

/Users/franklinpearsall/Documents/Programming/play-2.0.4/todolist/public/stylesheets/main.css

/Users/franklinpearsall/Documents/Programming/play-2.0.4/todolist/target/scala-2.9.1/resource_managed/main/public/stylesheets/main.css

首先,在target/scala-2.9.1/classes中的css文件似乎很奇怪.为什么会这样?我用Google搜索,找不到任何相关内容.任何帮助深表感谢!

css scala less sbt playframework-2.0

12
推荐指数
1
解决办法
2896
查看次数