Elasticsearch 解释器无法连接到数据库
Elasticsearch Interpreter can not connect to Database
我正在使用通过 Homebrew 安装的 Zeppelin 版本 0.62。
我尝试使用 Elasticsearch 解释器连接到本地 ES 实例(版本 2.3.5),该实例 运行 在本地端口 9209 上连接。如果我 运行
%elasticsearch
index /test/test/123 {name:"test"}
我得到:
None of the configured nodes are available: [{#transport#-1}{127.0.0.1}{localhost/127.0.0.1:9209}]
但是,使用 Shell-Interpreter 是可行的:
%sh
curl -XGET localhost:9209
我找不到解释器应该与哪个版本兼容的任何信息(也尝试过实际的 5.2,结果相同)。
您能检查一下您是否正在使用 TransportClient
的端口吗? (默认为 9300)
ElasticSearch 支持 2 种类型的客户端,但 Zeppelin 0.6.2 仅支持 TransportClient
。所以你必须为此使用端口。 (仅供参考,Zeppelin 0.7.0 支持这两种客户端)
也可以看看
我正在使用通过 Homebrew 安装的 Zeppelin 版本 0.62。
我尝试使用 Elasticsearch 解释器连接到本地 ES 实例(版本 2.3.5),该实例 运行 在本地端口 9209 上连接。如果我 运行
%elasticsearch
index /test/test/123 {name:"test"}
我得到:
None of the configured nodes are available: [{#transport#-1}{127.0.0.1}{localhost/127.0.0.1:9209}]
但是,使用 Shell-Interpreter 是可行的:
%sh
curl -XGET localhost:9209
我找不到解释器应该与哪个版本兼容的任何信息(也尝试过实际的 5.2,结果相同)。
您能检查一下您是否正在使用 TransportClient
的端口吗? (默认为 9300)
ElasticSearch 支持 2 种类型的客户端,但 Zeppelin 0.6.2 仅支持 TransportClient
。所以你必须为此使用端口。 (仅供参考,Zeppelin 0.7.0 支持这两种客户端)