amazon web services - error using Python Elasticserarch-py package -


so trying create connection aws es. have connected s3 bucket in same zone. however, when try connect es, message every time.

please install requests use requestshttpconnection. 

i have imported correct module nothing seems fix issue. here code

import elasticsearch elasticsearch import elasticsearch, requestshttpconnection boto3 import client, logging, s3, session  host = 'search-esdomain-t3rfr4trerdgfdh6t4t43ef.us-east-1.es.amazonaws.com'  es = elasticsearch(     hosts = host,     connection_class = requestshttpconnection,     http_auth = ('user', 'password'),     use_ssl = true,     verify_certs = false) 

this looks same every example can find reason not connect.

this python 3.5 , dev environment vs 2015.

as per documentation elasticsearch-py.

note requestshttpconnection requires requests installed.

there need explictly install requests module if not exist in pythonpath


Comments

Popular posts from this blog

javascript - Thinglink image not visible until browser resize -

firebird - Error "invalid transaction handle (expecting explicit transaction start)" executing script from Delphi -

mongodb - How to keep track of users making Stripe Payments -