0
回答
Windows下启动和初始化SonarQube报错
华为云4核8G,高性能云服务器,免费试用   

最近在学习使用sonar代码检查工具,Windows版本,解压,打开文件,执行StartSonar.bat,然后,命令行出现的情况是这样的:

没有其他报错信息。

JDK版本1.8

然后 检查的es.log

看到的结果是这样:

理论上,成功的log应该是这样:

为什么从第二次initializing ...开始就没有了?求大神指点~

为各位方便,附上日志文字:

------------------------------------------------------------------

成功log:

2017.08.24 14:33:09 INFO  es[][o.s.p.ProcessEntryPoint] Starting es
2017.08.24 14:33:09 INFO  es[][o.s.s.EsSettings] Elasticsearch listening on /127.0.0.1:9001
2017.08.24 14:33:09 INFO  es[][o.elasticsearch.node] [sonarqube] version[2.4.4], pid[5244], build[fcbb46d/2017-01-03T11:33:16Z]
2017.08.24 14:33:09 INFO  es[][o.elasticsearch.node] [sonarqube] initializing ...
2017.08.24 14:33:09 INFO  es[][o.e.plugins] [sonarqube] modules [], plugins [], sites []
2017.08.24 14:33:09 INFO  es[][o.elasticsearch.env] [sonarqube] using [1] data paths, mounts [[(D:)]], net usable_space [250.8gb], net total_space [365.7gb], spins? [unknown], types [NTFS]
2017.08.24 14:33:09 INFO  es[][o.elasticsearch.env] [sonarqube] heap size [998.4mb], compressed ordinary object pointers [unknown]
2017.08.24 14:33:11 INFO  es[][o.elasticsearch.node] [sonarqube] initialized
2017.08.24 14:33:11 INFO  es[][o.elasticsearch.node] [sonarqube] starting ...
2017.08.24 14:33:11 INFO  es[][o.e.transport] [sonarqube] publish_address {127.0.0.1:9001}, bound_addresses {127.0.0.1:9001}
2017.08.24 14:33:11 INFO  es[][o.e.discovery] [sonarqube] sonarqube/T0tW1dGdRseK8oGiEbvcmA
2017.08.24 14:33:15 INFO  es[][o.e.cluster.service] [sonarqube] new_master {sonarqube}{T0tW1dGdRseK8oGiEbvcmA}{127.0.0.1}{127.0.0.1:9001}{rack_id=sonarqube, master=true}, reason: zen-disco-join(elected_as_master, [0] joins received)
2017.08.24 14:33:15 INFO  es[][o.elasticsearch.node] [sonarqube] started
2017.08.24 14:33:15 INFO  es[][o.e.gateway] [sonarqube] recovered [7] indices into cluster_state
2017.08.24 14:33:19 INFO  es[][o.e.c.r.allocation] [sonarqube] Cluster health status changed from [RED] to [GREEN] (reason: [shards started [[components][2]] ...]).
-----------------------------

失败log:


2017.08.24 15:03:09 INFO  es[][o.s.p.ProcessEntryPoint] Starting es
2017.08.24 15:03:09 INFO  es[][o.s.s.EsSettings] Elasticsearch listening on /127.0.0.1:9001
2017.08.24 15:03:09 INFO  es[][o.elasticsearch.node] [sonarqube] version[2.4.4], pid[17156], build[fcbb46d/2017-01-03T11:33:16Z]
2017.08.24 15:03:09 INFO  es[][o.elasticsearch.node] [sonarqube] initializing ...
2017.08.24 15:03:09 INFO  es[][o.e.plugins] [sonarqube] modules [], plugins [], sites []
2017.08.24 15:03:09 INFO  es[][o.elasticsearch.env] [sonarqube] using [1] data paths, mounts [[(C:)]], net usable_space [50.9gb], net total_space [100gb], spins? [unknown], types [NTFS]
2017.08.24 15:03:09 INFO  es[][o.elasticsearch.env] [sonarqube] heap size [989.8mb], compressed ordinary object pointers [unknown]
 

 

<无标签>
举报
SunnyLeeTwo
发帖于11个月前 0回/179阅
顶部