我正在爲我的公司升級ElasticSearch。爲了開始這個,我需要運行我的機器上運行OSX Sierra(10.12.6)的舊版本(1.1.2)。我從我公司的存儲庫下載了[email protected]
,但沒有正確啓動。我得到這個:ElasticSearch 1.1.2無法正常啓動
$ brew services list
Name Status User Plist
[email protected] started pjscopeland /Users/pjscopeland/Library/LaunchAgents/[email protected]
...但自制的地位「started
」是黃色的,在這裏他們的休息是綠色的,如果我手動運行它,我得到這個:
$ elasticsearch
Java HotSpot(TM) 64-Bit Server VM warning: Option UseParNewGC was deprecated in version 9.0 and will likely be removed in a future release.
Java HotSpot(TM) 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.
Exception in thread "main" java.lang.ExceptionInInitializerError
at org.elasticsearch.bootstrap.Bootstrap.main(Bootstrap.java:190)
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:32)
Caused by: java.lang.UnsupportedOperationException: Boot class path mechanism is not supported
at java.management/sun.management.RuntimeImpl.getBootClassPath(RuntimeImpl.java:99)
at org.elasticsearch.monitor.jvm.JvmInfo.<clinit>(JvmInfo.java:77)
... 2 more
NB。請記住,我的Java技能處於我可能只能讀取它的級別,但可能無法解決任何可能需要更改的內容。
黃色是好的。在ES 2.4黃色意味着你只有1個數據節點。你有沒有嘗試連接到服務器?順便說一句:如果您在生產計算機上安裝副本時遇到問題(爲HTTP和二進制協議提供不同的端口) – bato3
這不是ElasticSearch黃色,這是自制黃色。該服務尚未正常啓動。我在我的文章中澄清了這一點。 – PJSCopeland