JustPaste.it

(indexer-bigquery) ~/data-explorer-indexers/bigquery (mc/initial-bigquery *): vi indexer.py && docker-compose up --build
Building indexer
Step 1/6 : FROM python:2
---> d8690ef56706
Step 2/6 : WORKDIR /app
---> Using cache
---> d5a693d7d3ec
Step 3/6 : ADD requirements.txt /app/
---> Using cache
---> ddcff9796e2c
Step 4/6 : RUN pip install -r requirements.txt
---> Using cache
---> 4c6cf615ab5b
Step 5/6 : ADD . /app/
---> Using cache
---> 4d7c9d377082
Step 6/6 : ENTRYPOINT python indexer.py
---> Using cache
---> 85651be247ee
Successfully built 85651be247ee
Successfully tagged bigquery_indexer:latest
Starting bigquery_elasticsearch_1 ...
Recreating bigquery_indexer_1 ... done
Attaching to bigquery_elasticsearch_1, bigquery_indexer_1
indexer_1 | 2018030823:54:38 base.py:97 WARNING GET http://elasticsearch:9200/_cluster/health?wait_for_status=yellow [status:N/A request:0.001s]
indexer_1 | Traceback (most recent call last):
indexer_1 | File "/usr/local/lib/python2.7/site-packages/elasticsearch/connection/http_urllib3.py", line 149, in perform_request
indexer_1 | response = self.pool.urlopen(method, url, body, retries=False, headers=request_headers, **kw)
indexer_1 | File "/usr/local/lib/python2.7/site-packages/urllib3/connectionpool.py", line 639, in urlopen
indexer_1 | _stacktrace=sys.exc_info()[2])
indexer_1 | File "/usr/local/lib/python2.7/site-packages/urllib3/util/retry.py", line 333, in increment
indexer_1 | raise six.reraise(type(error), error, _stacktrace)
indexer_1 | File "/usr/local/lib/python2.7/site-packages/urllib3/connectionpool.py", line 601, in urlopen
indexer_1 | chunked=chunked)
indexer_1 | File "/usr/local/lib/python2.7/site-packages/urllib3/connectionpool.py", line 357, in _make_request
indexer_1 | conn.request(method, url, **httplib_request_kw)
indexer_1 | File "/usr/local/lib/python2.7/httplib.py", line 1042, in request
indexer_1 | self._send_request(method, url, body, headers)
indexer_1 | File "/usr/local/lib/python2.7/httplib.py", line 1082, in _send_request
indexer_1 | self.endheaders(body)
indexer_1 | File "/usr/local/lib/python2.7/httplib.py", line 1038, in endheaders
indexer_1 | self._send_output(message_body)
indexer_1 | File "/usr/local/lib/python2.7/httplib.py", line 882, in _send_output
indexer_1 | self.send(msg)
indexer_1 | File "/usr/local/lib/python2.7/httplib.py", line 844, in send
indexer_1 | self.connect()
indexer_1 | File "/usr/local/lib/python2.7/site-packages/urllib3/connection.py", line 166, in connect
indexer_1 | conn = self._new_conn()
indexer_1 | File "/usr/local/lib/python2.7/site-packages/urllib3/connection.py", line 150, in _new_conn
indexer_1 | self, "Failed to establish a new connection: %s" % e)
indexer_1 | NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f687e3474d0>: Failed to establish a new connection: [Errno 111] Connection refused
indexer_1 | 2018030823:54:38 base.py:97 WARNING GET http://elasticsearch:9200/_cluster/health?wait_for_status=yellow [status:N/A request:0.000s]
indexer_1 | Traceback (most recent call last):
indexer_1 | File "/usr/local/lib/python2.7/site-packages/elasticsearch/connection/http_urllib3.py", line 149, in perform_request
indexer_1 | response = self.pool.urlopen(method, url, body, retries=False, headers=request_headers, **kw)
indexer_1 | File "/usr/local/lib/python2.7/site-packages/urllib3/connectionpool.py", line 639, in urlopen
indexer_1 | _stacktrace=sys.exc_info()[2])
indexer_1 | File "/usr/local/lib/python2.7/site-packages/urllib3/util/retry.py", line 333, in increment
indexer_1 | raise six.reraise(type(error), error, _stacktrace)
indexer_1 | File "/usr/local/lib/python2.7/site-packages/urllib3/connectionpool.py", line 601, in urlopen
indexer_1 | chunked=chunked)
indexer_1 | File "/usr/local/lib/python2.7/site-packages/urllib3/connectionpool.py", line 357, in _make_request
indexer_1 | conn.request(method, url, **httplib_request_kw)
indexer_1 | File "/usr/local/lib/python2.7/httplib.py", line 1042, in request
indexer_1 | self._send_request(method, url, body, headers)
indexer_1 | File "/usr/local/lib/python2.7/httplib.py", line 1082, in _send_request
indexer_1 | self.endheaders(body)
indexer_1 | File "/usr/local/lib/python2.7/httplib.py", line 1038, in endheaders
indexer_1 | self._send_output(message_body)
indexer_1 | File "/usr/local/lib/python2.7/httplib.py", line 882, in _send_output
indexer_1 | self.send(msg)
indexer_1 | File "/usr/local/lib/python2.7/httplib.py", line 844, in send
indexer_1 | self.connect()
indexer_1 | File "/usr/local/lib/python2.7/site-packages/urllib3/connection.py", line 166, in connect
indexer_1 | conn = self._new_conn()
indexer_1 | File "/usr/local/lib/python2.7/site-packages/urllib3/connection.py", line 150, in _new_conn
indexer_1 | self, "Failed to establish a new connection: %s" % e)
indexer_1 | NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f687e347510>: Failed to establish a new connection: [Errno 111] Connection refused
indexer_1 | 2018030823:54:38 base.py:97 WARNING GET http://elasticsearch:9200/_cluster/health?wait_for_status=yellow [status:N/A request:0.000s]
indexer_1 | Traceback (most recent call last):
indexer_1 | File "/usr/local/lib/python2.7/site-packages/elasticsearch/connection/http_urllib3.py", line 149, in perform_request
indexer_1 | response = self.pool.urlopen(method, url, body, retries=False, headers=request_headers, **kw)
indexer_1 | File "/usr/local/lib/python2.7/site-packages/urllib3/connectionpool.py", line 639, in urlopen
indexer_1 | _stacktrace=sys.exc_info()[2])
indexer_1 | File "/usr/local/lib/python2.7/site-packages/urllib3/util/retry.py", line 333, in increment
indexer_1 | raise six.reraise(type(error), error, _stacktrace)
indexer_1 | File "/usr/local/lib/python2.7/site-packages/urllib3/connectionpool.py", line 601, in urlopen
indexer_1 | chunked=chunked)
indexer_1 | File "/usr/local/lib/python2.7/site-packages/urllib3/connectionpool.py", line 357, in _make_request
indexer_1 | conn.request(method, url, **httplib_request_kw)
indexer_1 | File "/usr/local/lib/python2.7/httplib.py", line 1042, in request
indexer_1 | self._send_request(method, url, body, headers)
indexer_1 | File "/usr/local/lib/python2.7/httplib.py", line 1082, in _send_request
indexer_1 | self.endheaders(body)
indexer_1 | File "/usr/local/lib/python2.7/httplib.py", line 1038, in endheaders
indexer_1 | self._send_output(message_body)
indexer_1 | File "/usr/local/lib/python2.7/httplib.py", line 882, in _send_output
indexer_1 | self.send(msg)
indexer_1 | File "/usr/local/lib/python2.7/httplib.py", line 844, in send
indexer_1 | self.connect()
indexer_1 | File "/usr/local/lib/python2.7/site-packages/urllib3/connection.py", line 166, in connect
indexer_1 | conn = self._new_conn()
indexer_1 | File "/usr/local/lib/python2.7/site-packages/urllib3/connection.py", line 150, in _new_conn
indexer_1 | self, "Failed to establish a new connection: %s" % e)
indexer_1 | NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f687e347490>: Failed to establish a new connection: [Errno 111] Connection refused
indexer_1 | 2018030823:54:38 base.py:97 WARNING GET http://elasticsearch:9200/_cluster/health?wait_for_status=yellow [status:N/A request:0.000s]
indexer_1 | Traceback (most recent call last):
indexer_1 | File "/usr/local/lib/python2.7/site-packages/elasticsearch/connection/http_urllib3.py", line 149, in perform_request
indexer_1 | response = self.pool.urlopen(method, url, body, retries=False, headers=request_headers, **kw)
indexer_1 | File "/usr/local/lib/python2.7/site-packages/urllib3/connectionpool.py", line 639, in urlopen
indexer_1 | _stacktrace=sys.exc_info()[2])
indexer_1 | File "/usr/local/lib/python2.7/site-packages/urllib3/util/retry.py", line 333, in increment
indexer_1 | raise six.reraise(type(error), error, _stacktrace)
indexer_1 | File "/usr/local/lib/python2.7/site-packages/urllib3/connectionpool.py", line 601, in urlopen
indexer_1 | chunked=chunked)
indexer_1 | File "/usr/local/lib/python2.7/site-packages/urllib3/connectionpool.py", line 357, in _make_request
indexer_1 | conn.request(method, url, **httplib_request_kw)
indexer_1 | File "/usr/local/lib/python2.7/httplib.py", line 1042, in request
indexer_1 | self._send_request(method, url, body, headers)
indexer_1 | File "/usr/local/lib/python2.7/httplib.py", line 1082, in _send_request
indexer_1 | self.endheaders(body)
indexer_1 | File "/usr/local/lib/python2.7/httplib.py", line 1038, in endheaders
indexer_1 | self._send_output(message_body)
indexer_1 | File "/usr/local/lib/python2.7/httplib.py", line 882, in _send_output
indexer_1 | self.send(msg)
indexer_1 | File "/usr/local/lib/python2.7/httplib.py", line 844, in send
indexer_1 | self.connect()
indexer_1 | File "/usr/local/lib/python2.7/site-packages/urllib3/connection.py", line 166, in connect
indexer_1 | conn = self._new_conn()
indexer_1 | File "/usr/local/lib/python2.7/site-packages/urllib3/connection.py", line 150, in _new_conn
indexer_1 | self, "Failed to establish a new connection: %s" % e)
indexer_1 | NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f687e347450>: Failed to establish a new connection: [Errno 111] Connection refused
indexer_1 | Traceback (most recent call last):
indexer_1 | File "indexer.py", line 142, in <module>
indexer_1 | main()
indexer_1 | File "indexer.py", line 127, in main
indexer_1 | es = init_elasticsearch(args.elasticsearch_url, index_name)
indexer_1 | File "indexer.py", line 61, in init_elasticsearch
indexer_1 | es.cluster.health(wait_for_status='yellow', request_timeout=30)
indexer_1 | File "/usr/local/lib/python2.7/site-packages/elasticsearch/client/utils.py", line 76, in _wrapped
indexer_1 | return func(*args, params=params, **kwargs)
indexer_1 | File "/usr/local/lib/python2.7/site-packages/elasticsearch/client/cluster.py", line 33, in health
indexer_1 | 'health', index), params=params)
indexer_1 | File "/usr/local/lib/python2.7/site-packages/elasticsearch/transport.py", line 314, in perform_request
indexer_1 | status, headers_response, data = connection.perform_request(method, url, params, body, headers=headers, ignore=ignore, timeout=timeout)
indexer_1 | File "/usr/local/lib/python2.7/site-packages/elasticsearch/connection/http_urllib3.py", line 158, in perform_request
indexer_1 | raise ConnectionError('N/A', str(e), e)
indexer_1 | elasticsearch.exceptions.ConnectionError: ConnectionError(<urllib3.connection.HTTPConnection object at 0x7f687e347450>: Failed to establish a new connection: [Errno 111] Connection refused) caused by: NewConnectionError(<urllib3.connection.HTTPConnection object at 0x7f687e347450>: Failed to establish a new connection: [Errno 111] Connection refused)
bigquery_indexer_1 exited with code 1