fast-data-dev icon indicating copy to clipboard operation
fast-data-dev copied to clipboard

Could not intialize type registry

Open djoker911 opened this issue 6 years ago • 2 comments

Hi all, I used docker-compose.yml to run landoop/fast-data-dev like this

version: '2' services: kafka-cluster: image: landoop/fast-data-dev:1.1 environment: ADV_HOST: 127.0.0.1 RUNTESTS: 0 volumes: - /home/user/hatchery/log_test/event.log:/var/log/myapp/event.log - /home/user/hatchery/log_test/click.log:/var/log/myapp/click.log ports: - 2181:2181 - 3030:3030 - 8081-8083:8081-8083 - 9581-9585:9581-9585 - 9092:9092

After that , I wanna create a new Postgresconnector by 127.0.0.1:3030/kafka-connect-ui/#/cluster/fast-data-dev

the config is like this

name=PostgresConnector connector.class=io.debezium.connector.postgresql.PostgresConnector tasks.max=1 database.dbname=db_name database.hostname=10.1.xx.xx database.user=test_user database.password=testpwd

but the error message shows "Could not intialize type registry"

Any help would be greatly appreciated, Thanks

djoker911 avatar Nov 28 '18 06:11 djoker911

@djoker911, Happy to see you using our docker image. The error you gave comes from Debezium connector and therefore is not directly related to fast data dev: https://github.com/debezium/debezium/blob/9c81e54b9d6ac98f6899bdabe9ce3b6d3916fd72/debezium-connector-postgres/src/main/java/io/debezium/connector/postgresql/connection/PostgresConnection.java#L88 The error(and the part you left out) points to connectivity issue. Now you connect to your postgress on 10.1.x.x. you are accessing from within your network external services. When you run docker i expect you didn't use a docker network bridge or gave docker full acess to the host network. The last option is the easiest docker --network host ...

stheppi avatar Nov 28 '18 08:11 stheppi

@stheppi Thanks for your reply You mean running docker run --rm --net=host landoop/fast-data-dev like README? I ran this command at MacBook(macOs 10.12.3) and got blank page at http://localhost:3030 I'll finding solution about connectivity issue in docker Thanks for help~

djoker911 avatar Nov 28 '18 16:11 djoker911