일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | 7 |
8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 | 16 | 17 | 18 | 19 | 20 | 21 |
22 | 23 | 24 | 25 | 26 | 27 | 28 |
29 | 30 | 31 |
Tags
- token filter test
- 파이썬
- TensorFlow
- aggregation
- licence delete curl
- API
- license delete
- sort
- Test
- aggs
- Python
- flask
- Kafka
- matplotlib
- zip 파일 암호화
- springboot
- high level client
- 차트
- License
- Elasticsearch
- docker
- ELASTIC
- query
- MySQL
- 900gle
- Mac
- analyzer test
- plugin
- Java
- zip 암호화
Archives
- Today
- Total
개발잡부
[python] python elasticsearch client 본문
반응형
파이썬 Elasticsearch client 생성
회사 ES 계속 에러남 .. 3번째로 시도해 봐야겠음
client = Elasticsearch([{'host': config.elastic_host, 'port': config.elastic_port}])
client = Elasticsearch(http_auth=('elastic', 'dlengus'))
client = Elasticsearch(["http://elastic:dlengus@localhost:9200"])
client = Elasticsearch("https://elastic:password@회사.co.kr:443/", ca_certs=False )
당췌 뭐가 문제인지..
File "/Users/doo/opt/anaconda3/envs/doo/lib/python3.7/site-packages/elasticsearch/_sync/client/__init__.py", line 379, in __init__
**transport_kwargs,
File "/Users/doo/opt/anaconda3/envs/doo/lib/python3.7/site-packages/elastic_transport/_transport.py", line 233, in __init__
**node_pool_kwargs,
File "/Users/doo/opt/anaconda3/envs/doo/lib/python3.7/site-packages/elastic_transport/_node_pool.py", line 188, in __init__
self._all_nodes[node_config] = self._node_class(node_config)
File "/Users/doo/opt/anaconda3/envs/doo/lib/python3.7/site-packages/elastic_transport/_node/_http_urllib3.py", line 98, in __init__
"Root certificates are missing for certificate "
ValueError: Root certificates are missing for certificate validation. Either pass them in using the ca_certs parameter or install certifi to use it automatically.
반응형
'Python' 카테고리의 다른 글
Comments