IntelliJ IDEA中Elasticsearch 6.1.0調試環境搭建

環境:Windows(注:很多ES調試環境的搭建都是Mac,可惜沒錢買macbook pro)
1、我的目的:閱讀分析ES的源碼。
2、搭建debug環境需要的軟件爲:
2.1、git
2.2、IntelliJ IDEA
2.3、gradle
2.4、elasticsearch 6.1.0源碼。

      2.5、elasticsearch 6.1.0官方發佈的可運行版本。

3、搭建步驟(爲了有IDE閱讀代碼,有沒有蘋果機,所以只能在windows上搭建環境)。
3.1、下載安裝git(.exe文件,雙擊安裝即可);創建文件夾src;打開cmd,在src文件夾下執行命令git init;然後執行命令 git clone -b v5.5.0 https://github.com/elastic/elasticsearch.git下載源碼(注:此處注意指定版本下載)
3.2、下載gradle,放置到自行指定的位置,並設定環境變量(參見此篇博文:https://blog.csdn.net/wellplaying/article/details/78616520)。
3.3、在src/elasticsearch 根目錄下執行 gradle idea 命令;漫長的build時間。
4、更進一步參見:文檔

環境爲ios的一個很不錯的參考文章:https://blog.csdn.net/nisxiya/article/details/79110247

Elasticsearch is quite a cool project. This post introduces how to setup Elasticsearch in IntelliJ Idea locally. After this, we are able to :

  • read Elasticsearch source code within an IDE
  • debug Elasticsearch
  • modify & develop new features of Elasticsearch

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章