配置elasticsearch的存儲路徑為hdfs需要兩步,安裝插件 elasticsearch-hadoop,在聯網的情況下在命令窗口運行:plugin -install elasticsearch/elasticsearch-hadoop/1.2.0即可。
如果沒有聯網解壓插件到plugins中即可,目錄為/hadoop。。。。。
在配置文件elasticsearch.yml中要配置如下:
gateway:
type: hdfs
gateway:
hdfs:
uri: hdfs://localhost:9000
參考:https://github.com/elasticsearch/elasticsearch-hadoop/commit/8436c77749961c71142d7b576f07372d686ad75b