ES版本更新那么快,文檔鏈接你也倒是跟上啊,
插件zip包下載,都是error link。。。難不成是我網絡原因?
下載zip頁面報錯信息:
This XML file does not appear to have any style information associated with it. The document tree is shown below. <Error> <Code>NoSuchKey</Code> <Message>The specified key does not exist.</Message> <Key> elasticsearch/elasticsearch-mapper-attachments/elasticsearch-mapper-attachments-2.3.4.zip </Key> <RequestId>21414E3A79B20BFA</RequestId> <HostId> Q82J5X0ILFDrLp0GxILBboBvluJx5wMpxP3lKx/lTag6ov5vUY9FV55FGjzygfl6BFu27FVaHjA= </HostId> </Error>
-------------------------------------------------------------------------------------
官方給的什么鏈接啊,都是失效的:
找了好久,終於找到elasticsearch-mapper-attachments-2.3.4.zip的正確下載鏈接,其他版本的只需把2.3.4替換成對應版本即可:
然后,輸入下面的命令離線安裝。
bin/plugin install file:///path/to/mapper-attachments-2.3.4.zip
--------------------------------------------------------------------------------------------------
后來發現有一種更快捷的方式,就是直接輸入:-)
bin/plugin install mapper-attachments
然后后面就回出現:
-> Installing mapper-attachments... Trying https://download.elastic.co/elasticsearch/release/org/elasticsearch/plugin/mapper-attachments/2.3.4/mapper-attachments-2.3.4.zip ... ERROR: failed to download out of all possible locations..., use --verbose to get detailed information
把那個鏈接直接下載就行
參考信息:
https://discuss.elastic.co/t/mapper-attachments-doesnt-work/58104/2