2014-10-30 39 views
1

我正面臨着Elasticsearch的問題。 我無法得到結果。我在日誌文件檢查我得到了以下錯誤:Elasticsearch服務器由於java.io.IOException而中斷

ERROR: 
2014-10-30 08:52:46,971][DEBUG][action.search.type  ] [Lianda] [135] Failed to execute fetch phase 
[Error: Runtime.getRuntime().exec("cd").getInputStream(): Cannot run program "cd": java.io.IOException: error=2, No such file or directory] 
[Near : {... w InputStreamReader(Runtime.getRuntime().exec("cd" ....}] 

下面是我使用的版本:

  • 彈性搜索版本:0.90.5
  • Java版本:1.6.0_33 64位
  • 插件安裝:語音

奇怪的是,每當我得到這個錯誤,我重啓elasti c搜索服務器及其作品。

所以我認爲有些東西會越來越重。

回答

2

基於看到Runtime.getRuntime().exec()調用,它可能與版本1.2之前的彈性搜索默認值中的動態腳本漏洞有關。請參閱scripting security上的此文檔。

如果這是問題的根源,則可以在當前版本中進行修復(或升級到更新版本)。從上面的鏈接:

If you are running an Elasticsearch node prior to the 1.2.x release, you can make this change on your system by putting the following setting into elasticsearch.yml:

script.disable_dynamic: true 

Then restart each node in your cluster. Dynamic scripting will now be disabled. If you are running Elasticsearch 1.2.x or later, dynamic scripting is already disabled by default.

相關問題