Zeppelin 中的 Elasticsearch 解释器不响应请求
The Elasticsearch interpreter in Zeppelin does not respond to requests
我在一台机器上有一个 运行ning Elasticsearch 节点。它很健康,工作正常。我可以 运行 浏览器上的任何请求都没有问题。我有一个飞艇笔记本,我在其中设置了弹性解释器。下面是解释器的样子。
elasticsearch.basicauth.password
elasticsearch.basicauth.username
elasticsearch.client.type transport
elasticsearch.cluster.name elasticsearch
elasticsearch.host 127.0.0.1
elasticsearch.port 9300
elasticsearch.result.size 10
zeppelin.interpreter.localRepo /path/to/repo
打开笔记本后,我写:
%elasticsearch
GET /
结果是这样的
Bad URL (it should be /index/type/id)
或
%elasticsearch
GET /
Error : None of the configured nodes are available: [{#transport#-1}{ip}{ip:port}]
尽管
GET host:port/
在浏览器中工作正常。
我做错了什么?
编辑:
此外,我正在使用 Zeppelin 0.7.1 和 Elastic 5.4
Zeppelin 中的 elasticSearch interpreter 与浏览器 URL 查询相比工作方式不同。
您可以将elasticsearch 解释器视为使用自己语言的DSL 转换器。例如,要发送 GET
查询文档,您需要指定索引、类型和 ID。
这是 Zeppelin 0.7.1 中 elasticsearch 解释器的文档
尝试进入 elasticsearch 解释器的配置(在右上角菜单下)并更改参数值
elasticsearch.client.type 到 http
同时检查集群名称是否正确。
然后您可以在此处找到有关如何创建请求的示例:https://zeppelin.apache.org/docs/0.6.1/interpreter/elasticsearch.html
我在一台机器上有一个 运行ning Elasticsearch 节点。它很健康,工作正常。我可以 运行 浏览器上的任何请求都没有问题。我有一个飞艇笔记本,我在其中设置了弹性解释器。下面是解释器的样子。
elasticsearch.basicauth.password
elasticsearch.basicauth.username
elasticsearch.client.type transport
elasticsearch.cluster.name elasticsearch
elasticsearch.host 127.0.0.1
elasticsearch.port 9300
elasticsearch.result.size 10
zeppelin.interpreter.localRepo /path/to/repo
打开笔记本后,我写:
%elasticsearch
GET /
结果是这样的
Bad URL (it should be /index/type/id)
或
%elasticsearch
GET /
Error : None of the configured nodes are available: [{#transport#-1}{ip}{ip:port}]
尽管
GET host:port/
在浏览器中工作正常。
我做错了什么?
编辑:
此外,我正在使用 Zeppelin 0.7.1 和 Elastic 5.4
Zeppelin 中的 elasticSearch interpreter 与浏览器 URL 查询相比工作方式不同。
您可以将elasticsearch 解释器视为使用自己语言的DSL 转换器。例如,要发送 GET
查询文档,您需要指定索引、类型和 ID。
这是 Zeppelin 0.7.1 中 elasticsearch 解释器的文档
尝试进入 elasticsearch 解释器的配置(在右上角菜单下)并更改参数值
elasticsearch.client.type 到 http
同时检查集群名称是否正确。
然后您可以在此处找到有关如何创建请求的示例:https://zeppelin.apache.org/docs/0.6.1/interpreter/elasticsearch.html