Open tal705 opened 2 years ago
FYI:#1513
bin/pulsar initialize-cluster-metadata
looks like the command to initialize cluster metadata for Pulsar cluster.
As in bin/pulsar
script ipv6 support is explicitly disabled: https://github.com/apache/pulsar/blob/3f109d6cb7f128a5f8331e33477fd69c3c26d531/bin/pulsar#L275
But we can override it by using env var export PULSAR_EXTRA_OPTS=-Djava.net.preferIPv4Stack=false
Also if you were having trouble with bk metadata init we can useexport BOOKIE_EXTRA_OPTS=-Djava.net.preferIPv4Stack=false
BUG REPORT
Describe the bug when I use pulsar script and run initialize-cluster-metadata, logs show an error that ipv6 ip is Invalid hostname.
logs (I use x to replace some character):
To Reproduce Pulsar Version:2.9.2 (it use bookkeeper 4.14.4) Zk can be connected. Use Pulsar script
bin/pulsar
, then run command:Expected behavior Solve this problem.