插件通过代理安装

时间:2017-05-10 14:49:21

标签: elasticsearch neo4j proxy graphaware

我正在尝试安装图形辅助搜索以将Neo4j与ElasticSearch(2.3.1)集成,如图here所示。但是当我尝试这个命令行时:

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天了,它花了我所有的时间,如果没有成功整合就无法工作。

我非常感谢您解决此错误的任何帮助或澄清。谢谢。

[UPDATE]

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

  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

2 个答案:

答案 0 :(得分:1)

您可以从MavenRepository手动下载插件

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

答案 1 :(得分:0)

正确的语法是这个:

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

现在正在运作!