Open max420max opened 1 year ago
some tables are required that doesn't exist in database please help me with this
Did you modify the docker compose file?
yeah i have modified
below is the modified docker compose file
`version: "3.6"
services: pinpoint-hbase: build: context: ./pinpoint-hbase/ dockerfile: Dockerfile args:
PINPOINT_VERSION=${PINPOINT_VERSION}
container_name: "${PINPOINT_HBASE_NAME}" image: "pinpointdocker/pinpoint-hbase:${PINPOINT_VERSION}" networks:
pinpoint-mysql: build: context: ./pinpoint-mysql/ dockerfile: Dockerfile args:
PINPOINT_VERSION=${PINPOINT_VERSION}
container_name: pinpoint-mysql restart: always image: "pinpointdocker/pinpoint-mysql:${PINPOINT_VERSION}" hostname: pinpoint-mysql ports:
volumes:
pinpoint-web: build: context: ./pinpoint-web dockerfile: Dockerfile-metric args:
PINPOINT_VERSION=${PINPOINT_VERSION} container_name: "${PINPOINT_WEB_NAME}" image: "pinpointdocker/pinpoint-web:${PINPOINT_VERSION}-metric" depends_on:
pinpoint-collector: build: context: ./pinpoint-collector dockerfile: Dockerfile-metric args:
PINPOINT_VERSION=${PINPOINT_VERSION} container_name: "${PINPOINT_COLLECTOR_NAME}" image: "pinpointdocker/pinpoint-collector:${PINPOINT_VERSION}-metric" depends_on:
pinpoint-kafka: image: ubuntu/kafka:3.1-22.04_beta restart: unless-stopped hostname: pinpoint-kafka command: /etc/kafka/server.properties --override advertised.listeners=PLAINTEXT://pinpoint-kafka:9092 depends_on:
pinpoint-kafka-init: image: ubuntu/kafka:3.1-22.04_beta restart: "no" depends_on:
pinot-controller: image: apachepinot/pinot:latest restart: unless-stopped command: StartController -zkAddress pinot-zoo depends_on:
pinot-broker-0: image: apachepinot/pinot:latest restart: unless-stopped command: StartBroker -zkAddress pinot-zoo depends_on:
pinot-server-0: image: apachepinot/pinot:latest restart: unless-stopped command: StartServer -zkAddress pinot-zoo depends_on:
pinot-init: image: apachepinot/pinot:latest restart: "no" entrypoint: > sh -c " curl https://raw.githubusercontent.com/pinpoint-apm/pinpoint/v${PINPOINT_VERSION}/metric-module/metric/src/main/pinot/pinot-uriStat-table.json > uriStatTable.json && curl https://raw.githubusercontent.com/pinpoint-apm/pinpoint/v${PINPOINT_VERSION}/metric-module/metric/src/main/pinot/pinot-uriStat-schema.json > uriStatSchema.json && curl https://raw.githubusercontent.com/pinpoint-apm/pinpoint/v${PINPOINT_VERSION}/metric-module/metric/src/main/pinot/pinot-tag-table.json > tagTable.json && curl https://raw.githubusercontent.com/pinpoint-apm/pinpoint/v${PINPOINT_VERSION}/metric-module/metric/src/main/pinot/pinot-tag-schema.json > tagSchema.json && curl https://raw.githubusercontent.com/pinpoint-apm/pinpoint/v${PINPOINT_VERSION}/metric-module/metric/src/main/pinot/pinot-double-table.json > doubleTable.json && curl https://raw.githubusercontent.com/pinpoint-apm/pinpoint/v${PINPOINT_VERSION}/metric-module/metric/src/main/pinot/pinot-double-schema.json > doubleSchema.json && curl https://raw.githubusercontent.com/pinpoint-apm/pinpoint/v${PINPOINT_VERSION}/metric-module/metric/src/main/pinot/pinot-dataType-table.json > dataTypeTable.json && curl https://raw.githubusercontent.com/pinpoint-apm/pinpoint/v${PINPOINT_VERSION}/metric-module/metric/src/main/pinot/pinot-dataType-schema.json > dataTypeSchema.json &&
sed -i 's/localhost:19092/pinpoint-kafka:9092/g' uriStatTable.json tagTable.json doubleTable.json dataTypeTable.json && sed -i 's/uri-stat/url-stat/g' uriStatTable.json && sed -i '3,$$s/Double/DOUBLE/' doubleSchema.json &&
sleep 30 && /opt/pinot/bin/pinot-admin.sh AddTable -schemaFile uriStatSchema.json -realtimeTableConfigFile uriStatTable.json -controllerHost pinot-controller -controllerPort 9000 -exec && /opt/pinot/bin/pinot-admin.sh AddTable -schemaFile tagSchema.json -realtimeTableConfigFile tagTable.json -controllerHost pinot-controller -controllerPort 9000 -exec && /opt/pinot/bin/pinot-admin.sh AddTable -schemaFile doubleSchema.json -realtimeTableConfigFile doubleTable.json -controllerHost pinot-controller -controllerPort 9000 -exec && /opt/pinot/bin/pinot-admin.sh AddTable -schemaFile dataTypeSchema.json -realtimeTableConfigFile dataTypeTable.json -controllerHost pinot-controller -controllerPort 9000 -exec" depends_on:
pinot-zoo: image: zookeeper:3.8.0-temurin restart: always expose:
telegraf: image: telegraf:1.25.0 networks:
zoo1: image: zookeeper:3.4.13 restart: always hostname: zoo1 expose:
zoo2: image: zookeeper:3.4.13 restart: always hostname: zoo2 expose:
zoo3: image: zookeeper:3.4.13 restart: always hostname: zoo3 expose:
jobmanager: build: context: pinpoint-flink dockerfile: Dockerfile args:
PINPOINT_VERSION=${PINPOINT_VERSION}
container_name: "${PINPOINT_FLINK_NAME}-jobmanager" image: "pinpointdocker/pinpoint-flink:${PINPOINT_VERSION}" expose:
taskmanager: build: context: pinpoint-flink dockerfile: Dockerfile args:
PINPOINT_VERSION=${PINPOINT_VERSION}
container_name: "${PINPOINT_FLINK_NAME}-taskmanager" image: "pinpointdocker/pinpoint-flink:${PINPOINT_VERSION}" expose:
pinpoint-quickstart: build: context: ./pinpoint-quickstart/ dockerfile: Dockerfile
container_name: "pinpoint-quickstart" image: "pinpointdocker/pinpoint-quickstart" ports:
pinpoint-batch: build: context: ./pinpoint-batch/ dockerfile: Dockerfile args:
PINPOINT_VERSION=${PINPOINT_VERSION}
container_name: "${PINPOINT_BATCH_NAME}" image: "pinpointdocker/pinpoint-batch:${PINPOINT_VERSION}" depends_on:
pinpoint-agent: build: context: ./pinpoint-agent/ dockerfile: Dockerfile args:
PINPOINT_VERSION=${PINPOINT_VERSION}
container_name: "${PINPOINT_AGENT_NAME}" image: "pinpointdocker/pinpoint-agent:${PINPOINT_VERSION}" restart: unless-stopped networks:
volumes: data-volume: mysql_data: hbase_data:
networks: pinpoint: driver: bridge ipam: config:
or if u have an quick and easy steps to deploy please share with me.
https://github.com/pinpoint-apm/pinpoint-docker/pull/156#issue-1514275114 https://github.com/pinpoint-apm/pinpoint-docker/issues/158#issuecomment-1383326090
Please check if your pinot is up and running, and if mentioned tables are created. After adding pinot into pinpoint cluster, it seems like it is too resource-heavy for one machine. Any ideas or commits to improve current docker compose files are always welcome.