No handlers could be found for logger "elasticsearch"
Traceback (most recent call last):
File "run.py", line 89, in
main()
File "run.py", line 53, in main
annotation.Annotation.create_all()
File "/home/annotator-store/annotator/elasticsearch.py", line 94, in create_all
cls.es.conn.indices.create(cls.es.index)
File "/home/annotator-store/pyenv/lib/python2.6/site-packages/elasticsearch/client/utils.py", line 68, in _wrapped
return func(_args, params=params, *_kwargs)
File "/home/annotator-store/pyenv/lib/python2.6/site-packages/elasticsearch/client/indices.py", line 96, in create
params=params, body=body)
File "/home/annotator-store/pyenv/lib/python2.6/site-packages/elasticsearch/transport.py", line 284, in perform_request
status, headers, data = connection.perform_request(method, url, params, body, ignore=ignore, timeout=timeout)
File "/home/annotator-store/pyenv/lib/python2.6/site-packages/elasticsearch/connection/http_urllib3.py", line 51, in perform_request
raise ConnectionError('N/A', str(e), e)
elasticsearch.exceptions.ConnectionError: ConnectionError(('Connection aborted.', error(111, 'Connection refused'))) caused by: ProtocolError(('Connection aborted.', error(111, 'Connection refused')))
the error log is:
No handlers could be found for logger "elasticsearch" Traceback (most recent call last): File "run.py", line 89, in
main()
File "run.py", line 53, in main
annotation.Annotation.create_all()
File "/home/annotator-store/annotator/elasticsearch.py", line 94, in create_all
cls.es.conn.indices.create(cls.es.index)
File "/home/annotator-store/pyenv/lib/python2.6/site-packages/elasticsearch/client/utils.py", line 68, in _wrapped
return func(_args, params=params, *_kwargs)
File "/home/annotator-store/pyenv/lib/python2.6/site-packages/elasticsearch/client/indices.py", line 96, in create
params=params, body=body)
File "/home/annotator-store/pyenv/lib/python2.6/site-packages/elasticsearch/transport.py", line 284, in perform_request
status, headers, data = connection.perform_request(method, url, params, body, ignore=ignore, timeout=timeout)
File "/home/annotator-store/pyenv/lib/python2.6/site-packages/elasticsearch/connection/http_urllib3.py", line 51, in perform_request
raise ConnectionError('N/A', str(e), e)
elasticsearch.exceptions.ConnectionError: ConnectionError(('Connection aborted.', error(111, 'Connection refused'))) caused by: ProtocolError(('Connection aborted.', error(111, 'Connection refused')))
How can I slove it?