Skip to content
This repository has been archived by the owner on Oct 30, 2022. It is now read-only.

elasticsearch6 6.3.0 使用search guard #134

Open
k8svip opened this issue Aug 14, 2018 · 2 comments
Open

elasticsearch6 6.3.0 使用search guard #134

k8svip opened this issue Aug 14, 2018 · 2 comments

Comments

@k8svip
Copy link

k8svip commented Aug 14, 2018

WARN org.elasticsearch.action.bulk.BulkRequestHandler - Failed to execute bulk request 1.
org.elasticsearch.client.transport.NoNodeAvailableException: None of the configured nodes are available

配置如下,不加user和passpord,没有问题;
outputs:
- Elasticsearch:
cluster: accesslayer_log
hosts:
- 100.1xxx
- 100.xxxx
- 100.xxx
- 100.xxx
- 100.xxx
index: 'webaccess-%{+YYYY-MM-dd}'
user: admin
password: JnKtaCb1
index_type: accesslayer
bulk_actions: 20000
bulk_size: 15
flush_interval: 15
concurrent_requests: 0

这里应该使用哪个版本的hangout,我使用了最新的hangout-dist-0.3.0-release-bin.zip,报错如开头和下面

ERROR com.ctrip.ops.sysdev.outputs.Elasticsearch - bulk got exception: None of the configured nodes are available: [{#transport#-1}{VpWaPb50Rqe9LySgZptWBQ}{192.168.1.10}{192.168.1.10:9300},

@childe
Copy link
Owner

childe commented Aug 15, 2018

使用了SG之后, transport 端口的通讯都是ssl加密的, 我还不知道在hangout里面怎么走transport写数据. 试试HTTP?

   - ElasticsearchHTTP:
        cluster: accesslayer_log
        hosts:
          - 192.168.145.128
        index: 'webaccess-%{+YYYY-MM-dd}'
        user: admin
        password: 123456
        index_type: accesslayer
        bulk_actions: 20000
        bulk_size: 15
        flush_interval: 15

@k8svip
Copy link
Author

k8svip commented Aug 16, 2018 via email

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants