nikepan / clickhouse-bulk

Collects many small inserts to ClickHouse and send in big inserts
Apache License 2.0
474 stars 86 forks source link

503 when i send quires to 8214 port #45

Closed Uatapatau closed 3 years ago

Uatapatau commented 3 years ago

Hi I cant send quires to clickhouse-bulk I add clickhouse -bulk to my docker compose

clickhouse:
    image: yandex/clickhouse-server:21.1.2
    ports:
      - 8123:8123
      - 9090:9000

clickhouse-bulk:
    image: nikepan/clickhouse-bulk:1.3.3
    ports:
     - "8124:8124"
    environment:
     - CLICKHOUSE_SERVERS=http://0.0.0.0:8123

When i tried to send quires to port 8214 i get 503

*   Trying 127.0.0.1:8124...
* TCP_NODELAY set
* Connected to 127.0.0.1 (127.0.0.1) port 8124 (#0)
> POST /?query=CREATE&DATABASE&IF&NO&EXISTS&test HTTP/1.1
> Host: 127.0.0.1:8124
> User-Agent: curl/7.68.0
> Accept: */*
> 
* Mark bundle as not supporting multiuse
< HTTP/1.1 503 Service Unavailable
< Content-Type: text/plain; charset=UTF-8
< Date: Mon, 26 Jul 2021 23:10:49 GMT
< Content-Length: 0
< 
* Connection #0 to host 127.0.0.1 left intact

Both containers work and i can send curl http://0.0.0.0:8124/metrics | grep "^ch_" What am I doing wrong?