天天看點

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

繼續閱讀