Created
September 2, 2015 04:28
-
-
Save nielsonsantana/2c079cd623fcf9eda528 to your computer and use it in GitHub Desktop.
Verificando conexão com o ElasticSearch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from elasticsearch import Elasticsearch, RequestsHttpConnection | |
es = Elasticsearch(['domain:port'], connection_class=RequestsHttpConnection, | |
http_auth=('username', 'password'), | |
use_ssl=False, verify_certs=False) | |
es.info() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment