橡皮、老虎皮、狮子皮哪一个最不好?

求助连接elasticsearch

Elasticsearch | 作者 zixiangtingyu | 发布于2018年01月18日 | 阅读数:1423

在github上学习这个flare项目,其中的“beacon”功能需要连接elasticsearch
按照作者教程执行命令“eb = elasticBeacon(es_host='localhost')”时报错:
'elasticBeacon' object has no attribute 'auth_user'
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python2.7/dist-packages/Flare-0.3-py2.7.egg/flare/analytics/command_control.py", line 145, in __init__
    "Could not connect to ElasticSearch -- Please verify your settings are correct and try again.")
Exception: Could not connect to ElasticSearch -- Please verify your settings are correct and try again.
 
是不是因为我没有设置好端口隧道?作者在教程中给了一句ssh命令“ssh -NfL 9200:localhost:9200 user@x.x.x.x”,我不知道怎么使用这个命令,求大神帮看看
 
项目:https://github.com/austin-taylor/flare
文章:http://www.austintaylor.io/det ... tems/
翻译:https://www.anquanke.com/post/id/86285
 
已邀请:

xinfanwang

赞同来自:

你curl localhost:9200,看看连的上不。
如果需要认证用户,看是哪儿配置,或是通过设置参数传过去。

要回复问题请先登录注册