0

我正在尝试安装 Graph-Aided Search 以将 Neo4j 与 ElasticSearch (2.3.1) 集成,如此处所示。但是当我尝试这个命令行时:

plugin install com.graphaware.es/graph-aided-search/2.3.2.0

我收到错误:

plugin install com.graphaware.es/graph-aided-search/2.3.2.0
-> Installing com.graphaware.es/graph-aided-search/2.3.2.0...
Trying https://download.elastic.co/com.graphaware.es/graph-aided-search/graph-aided-search-2.3.2.0.zip ...
Trying https://search.maven.org/remotecontent?filepath=com/graphaware/es/graph-aided-search/2.3.2.0/graph-aided-search-2.3.2.0.zip ...
Trying https://oss.sonatype.org/service/local/repositories/releases/content/com/graphaware/es/graph-aided-search/2.3.2.0/graph-aided-search-2.3.2.0.zip ...
Trying https://github.com/com.graphaware.es/graph-aided-search/archive/2.3.2.0.zip ...
Trying https://github.com/com.graphaware.es/graph-aided-search/archive/master.zip ...
ERROR: failed to download out of all possible locations..., use --verbose to get detailed information

当我添加--verbose更多详细信息时:

plugin install com.graphaware.es/graph-aided-search/2.3.2.0 --verbose
-> Installing com.graphaware.es/graph-aided-search/2.3.2.0...
Trying https://download.elastic.co/com.graphaware.es/graph-aided-search/graph-aided-search-2.3.2.0.zip ...
Failed: SocketTimeoutException[connect timed out]
Trying https://search.maven.org/remotecontent?filepath=com/graphaware/es/graph-aided-search/2.3.2.0/graph-aided-search-2.3.2.0.zip ...
Failed: SocketTimeoutException[connect timed out]
Trying https://oss.sonatype.org/service/local/repositories/releases/content/com/graphaware/es/graph-aided-search/2.3.2.0/graph-aided-search-2.3.2.0.zip ...
Failed: SocketTimeoutException[connect timed out]
Trying https://github.com/com.graphaware.es/graph-aided-search/archive/2.3.2.0.zip ...
Failed: SocketTimeoutException[connect timed out]
Trying https://github.com/com.graphaware.es/graph-aided-search/archive/master.zip ...
Failed: SocketTimeoutException[connect timed out]
ERROR: failed to download out of all possible locations..., use --verbose to get detailed information

我在谷歌上查找了那个错误,我发现这可能是因为代理,因为我在代理后面工作,所以我尝试了一些基本上对其他人有用的东西。这是我尝试通过代理安装插件的命令行:

C:\dev\elasticsearch-2.3.1\bin> plugin -Dhttps.proxyHost=http://example.test.fr -Dhttps.proxyPort=3128 -Dhttps.proxyUser=SomeUser -Dhttps.proxyPassword=Password install com.graphaware.es/graph-aided-search/2.3.2.0

但它仍然没有用,我仍然遇到同样的错误。我强制对 Internet Explorer 上的代理进行身份验证,这在我安装带有Maven. 但是,在那种情况下它不起作用。

我正在努力将我的 Neo4j 数据库与 ElasticSearch 集成,我已经尝试了 4 天,这花费了我所有的时间,如果不成功集成就无法工作。

我非常感谢解决此错误的任何帮助或说明。谢谢你。

[更新]

当我尝试替换路径时,它仍然无法正常工作。我试过这个命令行:

  plugin install C:\dev\graph-aided-search-master\target\releases\graph-aided‌​-search-2.4.1.4-SNAP‌​SHOT.zip

我收到了这个错误信息:

 -> Installing C:\dev\graph-aided-search-master\target\releases\graph-aided‌​-search-2.4.1.4-SNAP‌​SHOT.zip... 
 ERROR: Invalid prefix or suffix

我将图形辅助搜索 Zip 文件放在与插件文件相同的文件夹中,因此在C:\dev\elasticsearch-2.3.1\bin. 然后我尝试了相对路径,我收到了这条消息:

> plugin install graph-aided-search-2.4.1.4-SNAPSHOT.zip --verbose
-> Installing graph-aided-search-2.4.1.4-SNAPSHOT.zip...
Trying https://download.elastic.co/elasticsearch/release/org/elasticsearch/plugin/graph-aided-search-2.4.1.4-SNAPSHOT.zip/2.3.1/graph-aided-search-2.4.1.4-SNAPSHOT.zip-2.3.1.zip ...
Failed: SocketTimeoutException[connect timed out]
ERROR: failed to download out of all possible locations..., use --verbose to get detailed information

4

2 回答 2

1

您可以从 MavenRepository 手动下载插件

https://mvnrepository.com/artifact/com.graphaware.es/graph-aided-search

于 2017-05-12T09:28:09.857 回答
0

正确的语法是这样的:

plugin install com.graphaware.es/graph-aided-search/2.3.2.0 -DproxyHost=exampleHost -DproxyPort=portNumber

它现在正在工作!

于 2017-06-19T13:43:45.580 回答