You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by GitBox <gi...@apache.org> on 2021/02/04 09:26:13 UTC
[GitHub] [skywalking] rola0411 opened a new issue #6320: The problem of pass parameter exception in docker compose startup
rola0411 opened a new issue #6320:
URL: https://github.com/apache/skywalking/issues/6320
Please answer these questions before submitting your issue.
- Why do you submit this issue?
- [ ] Bug
___
### Bug
- Which version of SkyWalking, OS, and JRE?
8.3.0, centos7.7, jdk8
- What happened?
when I used kafka in skywalking,There's a problem
error : CONSUME_PARTITION="2" docker-compose -f ./oap-server.yml up -d
success:CONSUME_PARTITION="2,3" docker-compose -f ./oap-server.yml up -d
supplement:english is poor。I don't know what the problem is, docker or skywalking。
The configuration:
version: '3.8'
services:
oap:
environment:
SW_KAFKA_FETCHER_CONSUME_PARTITIONS: ${CONSUME_PARTITION}
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [skywalking] wu-sheng commented on issue #6320: The problem of pass parameter exception in docker compose startup
Posted by GitBox <gi...@apache.org>.
wu-sheng commented on issue #6320:
URL: https://github.com/apache/skywalking/issues/6320#issuecomment-773164226
Could you share your full configuration? And error stack?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [skywalking] rola0411 commented on issue #6320: The problem of pass parameter exception in docker compose startup
Posted by GitBox <gi...@apache.org>.
rola0411 commented on issue #6320:
URL: https://github.com/apache/skywalking/issues/6320#issuecomment-773719654
Docker-compose.yml
```yaml
version: '3.8'
services:
oap:
image: 10.249.58.10:8081/skywalking/skywalking-oap-server:8.3.0-es7
container_name: oap-server-1
restart: always
ports:
- 11800:11800
- 12800:12800
healthcheck:
test: ["CMD-SHELL", "/skywalking/bin/swctl ch"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
environment:
SW_STORAGE: elasticsearch7
SW_STORAGE_ES_CLUSTER_NODES: 10.249.58.4:9200,10.249.58.5:9200,10.249.58.6:9200
SW_STORAGE_ES_INDEX_SHARDS_NUMBER: 2
SW_STORAGE_ES_INDEX_REPLICAS_NUMBER: 2
SW_HEALTH_CHECKER: default
SW_TELEMETRY: prometheus
SW_KAFKA_FETCHER: default
SW_KAFKA_FETCHER_SERVERS: 10.249.58.4:9092,10.249.58.5:9092,10.249.58.6:9092
SW_KAFKA_FETCHER_PARTITIONS: 3
SW_KAFKA_FETCHER_PARTITIONS_FACTOR: 2
SW_KAFKA_FETCHER_ENABLE_METER_SYSTEM: "false"
SW_KAFKA_FETCHER_IS_SHARDING: "false"
SW_KAFKA_FETCHER_CONSUME_PARTITIONS: ${CONSUME_PARTITION}
SW_KAFKA_HANDLER_THREAD_POOL_SIZE: -1
SW_KAFKA_HANDLER_THREAD_POOL_QUEUE_SIZE: -1
TZ: "Asia/Shanghai"
volumes:
- /etc/timezone:/etc/timezone
- /etc/localtime:/etc/localtime
- /usr/share/zoneinfo/Asia:/usr/share/zoneinfo/Asia
```
![error-sw](https://user-images.githubusercontent.com/46880610/106977320-11b82180-6795-11eb-9c86-1dacb715ac86.jpg)
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [skywalking] rola0411 edited a comment on issue #6320: The problem of pass parameter exception in docker compose startup
Posted by GitBox <gi...@apache.org>.
rola0411 edited a comment on issue #6320:
URL: https://github.com/apache/skywalking/issues/6320#issuecomment-773719654
Docker-compose.yml
```yaml
version: '3.8'
services:
oap:
image: 10.249.58.10:8081/skywalking/skywalking-oap-server:8.3.0-es7
container_name: oap-server-1
restart: always
ports:
- 11800:11800
- 12800:12800
healthcheck:
test: ["CMD-SHELL", "/skywalking/bin/swctl ch"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
environment:
SW_STORAGE: elasticsearch7
SW_STORAGE_ES_CLUSTER_NODES: 10.249.58.4:9200,10.249.58.5:9200,10.249.58.6:9200
SW_STORAGE_ES_INDEX_SHARDS_NUMBER: 2
SW_STORAGE_ES_INDEX_REPLICAS_NUMBER: 2
SW_HEALTH_CHECKER: default
SW_TELEMETRY: prometheus
SW_KAFKA_FETCHER: default
SW_KAFKA_FETCHER_SERVERS: 10.249.58.4:9092,10.249.58.5:9092,10.249.58.6:9092
SW_KAFKA_FETCHER_PARTITIONS: 3
SW_KAFKA_FETCHER_PARTITIONS_FACTOR: 2
SW_KAFKA_FETCHER_ENABLE_METER_SYSTEM: "false"
SW_KAFKA_FETCHER_IS_SHARDING: "false"
SW_KAFKA_FETCHER_CONSUME_PARTITIONS: ${CONSUME_PARTITION}
SW_KAFKA_HANDLER_THREAD_POOL_SIZE: -1
SW_KAFKA_HANDLER_THREAD_POOL_QUEUE_SIZE: -1
TZ: "Asia/Shanghai"
volumes:
- /etc/timezone:/etc/timezone
- /etc/localtime:/etc/localtime
- /usr/share/zoneinfo/Asia:/usr/share/zoneinfo/Asia
```
![error-sw](https://user-images.githubusercontent.com/46880610/106977320-11b82180-6795-11eb-9c86-1dacb715ac86.jpg)
docker version 19.03
docker-comose version 1.28.2
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [skywalking] wu-sheng commented on issue #6320: The problem of pass parameter exception in docker compose startup
Posted by GitBox <gi...@apache.org>.
wu-sheng commented on issue #6320:
URL: https://github.com/apache/skywalking/issues/6320#issuecomment-773164226
Could you share your full configuration? And error stack?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [skywalking] rola0411 commented on issue #6320: The problem of pass parameter exception in docker compose startup
Posted by GitBox <gi...@apache.org>.
rola0411 commented on issue #6320:
URL: https://github.com/apache/skywalking/issues/6320#issuecomment-773719654
Docker-compose.yml
```yaml
version: '3.8'
services:
oap:
image: 10.249.58.10:8081/skywalking/skywalking-oap-server:8.3.0-es7
container_name: oap-server-1
restart: always
ports:
- 11800:11800
- 12800:12800
healthcheck:
test: ["CMD-SHELL", "/skywalking/bin/swctl ch"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
environment:
SW_STORAGE: elasticsearch7
SW_STORAGE_ES_CLUSTER_NODES: 10.249.58.4:9200,10.249.58.5:9200,10.249.58.6:9200
SW_STORAGE_ES_INDEX_SHARDS_NUMBER: 2
SW_STORAGE_ES_INDEX_REPLICAS_NUMBER: 2
SW_HEALTH_CHECKER: default
SW_TELEMETRY: prometheus
SW_KAFKA_FETCHER: default
SW_KAFKA_FETCHER_SERVERS: 10.249.58.4:9092,10.249.58.5:9092,10.249.58.6:9092
SW_KAFKA_FETCHER_PARTITIONS: 3
SW_KAFKA_FETCHER_PARTITIONS_FACTOR: 2
SW_KAFKA_FETCHER_ENABLE_METER_SYSTEM: "false"
SW_KAFKA_FETCHER_IS_SHARDING: "false"
SW_KAFKA_FETCHER_CONSUME_PARTITIONS: ${CONSUME_PARTITION}
SW_KAFKA_HANDLER_THREAD_POOL_SIZE: -1
SW_KAFKA_HANDLER_THREAD_POOL_QUEUE_SIZE: -1
TZ: "Asia/Shanghai"
volumes:
- /etc/timezone:/etc/timezone
- /etc/localtime:/etc/localtime
- /usr/share/zoneinfo/Asia:/usr/share/zoneinfo/Asia
```
![error-sw](https://user-images.githubusercontent.com/46880610/106977320-11b82180-6795-11eb-9c86-1dacb715ac86.jpg)
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [skywalking] wu-sheng closed issue #6320: The problem of pass parameter exception in docker compose startup
Posted by GitBox <gi...@apache.org>.
wu-sheng closed issue #6320:
URL: https://github.com/apache/skywalking/issues/6320
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [skywalking] JaredTan95 commented on issue #6320: The problem of pass parameter exception in docker compose startup
Posted by GitBox <gi...@apache.org>.
JaredTan95 commented on issue #6320:
URL: https://github.com/apache/skywalking/issues/6320#issuecomment-773970294
> SW_KAFKA_FETCHER_CONSUME_PARTITIONS: ${CONSUME_PARTITION}
`CONSUME_PARTITION` env should be set, or you can chenge to `SW_KAFKA_FETCHER_CONSUME_PARTITIONS: 1`.
More details can be referred to [kafka-fetcher configuration docs](https://github.com/apache/skywalking/blob/master/docs/en/setup/backend/backend-fetcher.md#kafka-fetcher )
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [skywalking] rola0411 edited a comment on issue #6320: The problem of pass parameter exception in docker compose startup
Posted by GitBox <gi...@apache.org>.
rola0411 edited a comment on issue #6320:
URL: https://github.com/apache/skywalking/issues/6320#issuecomment-773719654
Docker-compose.yml
```yaml
version: '3.8'
services:
oap:
image: 10.249.58.10:8081/skywalking/skywalking-oap-server:8.3.0-es7
container_name: oap-server-1
restart: always
ports:
- 11800:11800
- 12800:12800
healthcheck:
test: ["CMD-SHELL", "/skywalking/bin/swctl ch"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
environment:
SW_STORAGE: elasticsearch7
SW_STORAGE_ES_CLUSTER_NODES: 10.249.58.4:9200,10.249.58.5:9200,10.249.58.6:9200
SW_STORAGE_ES_INDEX_SHARDS_NUMBER: 2
SW_STORAGE_ES_INDEX_REPLICAS_NUMBER: 2
SW_HEALTH_CHECKER: default
SW_TELEMETRY: prometheus
SW_KAFKA_FETCHER: default
SW_KAFKA_FETCHER_SERVERS: 10.249.58.4:9092,10.249.58.5:9092,10.249.58.6:9092
SW_KAFKA_FETCHER_PARTITIONS: 3
SW_KAFKA_FETCHER_PARTITIONS_FACTOR: 2
SW_KAFKA_FETCHER_ENABLE_METER_SYSTEM: "false"
SW_KAFKA_FETCHER_IS_SHARDING: "false"
SW_KAFKA_FETCHER_CONSUME_PARTITIONS: ${CONSUME_PARTITION}
SW_KAFKA_HANDLER_THREAD_POOL_SIZE: -1
SW_KAFKA_HANDLER_THREAD_POOL_QUEUE_SIZE: -1
TZ: "Asia/Shanghai"
volumes:
- /etc/timezone:/etc/timezone
- /etc/localtime:/etc/localtime
- /usr/share/zoneinfo/Asia:/usr/share/zoneinfo/Asia
```
![error-sw](https://user-images.githubusercontent.com/46880610/106977320-11b82180-6795-11eb-9c86-1dacb715ac86.jpg)
docker version 19.03
docker-comose version 1.28.2
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [skywalking] JaredTan95 edited a comment on issue #6320: The problem of pass parameter exception in docker compose startup
Posted by GitBox <gi...@apache.org>.
JaredTan95 edited a comment on issue #6320:
URL: https://github.com/apache/skywalking/issues/6320#issuecomment-773970294
> SW_KAFKA_FETCHER_CONSUME_PARTITIONS: ${CONSUME_PARTITION}
`CONSUME_PARTITION` env should be set, or you can chenge to `SW_KAFKA_FETCHER_CONSUME_PARTITIONS: 1`.
More details can be referred to [kafka-fetcher configuration docs](https://github.com/apache/skywalking/blob/master/docs/en/setup/backend/backend-fetcher.md#kafka-fetcher )
And This Is a docker-compose usage issue, you can follow `docker-compose` docs.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [skywalking] kezhenxu94 commented on issue #6320: The problem of pass parameter exception in docker compose startup
Posted by GitBox <gi...@apache.org>.
kezhenxu94 commented on issue #6320:
URL: https://github.com/apache/skywalking/issues/6320#issuecomment-774027548
@rola0411 this is a problem of YAML file, simple string `"3"` is considered number, and SkyWalking only accepts string for this field, so you need to prevent the YAML parser from parsing `"3"` as number, you can use `SW_KAFKA_FETCHER_CONSUME_PARTITIONS: "'${CONSUME_PARTITION}'"` or `SW_KAFKA_FETCHER_CONSUME_PARTITIONS: '"${CONSUME_PARTITION}"'`, in another word, quote them twice
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org