You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pulsar.apache.org by GitBox <gi...@apache.org> on 2022/08/23 14:20:41 UTC

[GitHub] [pulsar] abcMH1966 created a discussion: I encountered a port error when using pulsar to integrate etcd

GitHub user abcMH1966 created a discussion: I encountered a port error when using pulsar to integrate etcd

When I execute the following command:

./bin/pulsar initialize-cluster-metadata \
-c pulsar-cluster \
-md etcd:node01:2379,node02:2379,node03:2379 \
-cms etcd:node01:2379,node02:2379,node03:2379 \
-uw http://node01:8080,node02:8080,node03:8080 \
-tw https://node01:8443,node02:8443,node03:8443 \
-ub pulsar://node01:6650,node02:6650,node03:6650 \
-tb pulsar+ssl://node01:6651,node02:6651,node03:6651

A port exception occurred:
2022-08-23T10:13:27,784-0400 [grpc-default-executor-0] WARN  io.etcd.jetcd.resolver.IPNameResolver - Error wile getting list of servers
java.lang.IllegalArgumentException: port out of range:-1
	at java.net.InetSocketAddress.checkPort(InetSocketAddress.java:143) ~[?:1.8.0_322]
	at java.net.InetSocketAddress.<init>(InetSocketAddress.java:224) ~[?:1.8.0_322]
	at io.etcd.jetcd.resolver.IPNameResolver$HostAndPort.toAddressGroup(IPNameResolver.java:162) ~[io.etcd-jetcd-core-0.5.11.jar:?]
	at io.etcd.jetcd.resolver.IPNameResolver.lambda$doResolve$1(IPNameResolver.java:133) ~[io.etcd-jetcd-core-0.5.11.jar:?]
	at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193) ~[?:1.8.0_322]
	at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1384) ~[?:1.8.0_322]
	at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:482) ~[?:1.8.0_322]
	at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:472) ~[?:1.8.0_322]
	at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:708) ~[?:1.8.0_322]
	at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) ~[?:1.8.0_322]
	at java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:566) ~[?:1.8.0_322]
	at io.etcd.jetcd.resolver.IPNameResolver.doResolve(IPNameResolver.java:134) ~[io.etcd-jetcd-core-0.5.11.jar:?]
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_322]
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_322]
	at java.lang.Thread.run(Thread.java:750) [?:1.8.0_322]

I set the port to 2379, why the pulsar report this exception: 
port out of range: -1
where is the -1 port?



GitHub link: https://github.com/apache/pulsar/discussions/17240

----
This is an automatically sent email for dev@pulsar.apache.org.
To unsubscribe, please send an email to: dev-unsubscribe@pulsar.apache.org


[GitHub] [pulsar] liangyuanpeng added a comment to the discussion: I encountered a port error when using pulsar to integrate etcd

Posted by GitBox <gi...@apache.org>.
GitHub user liangyuanpeng added a comment to the discussion: I encountered a port error when using pulsar to integrate etcd

What's your pulsar version?

GitHub link: https://github.com/apache/pulsar/discussions/17240#discussioncomment-3457256

----
This is an automatically sent email for dev@pulsar.apache.org.
To unsubscribe, please send an email to: dev-unsubscribe@pulsar.apache.org


[GitHub] [pulsar] abcMH1966 added a comment to the discussion: I encountered a port error when using pulsar to integrate etcd

Posted by GitBox <gi...@apache.org>.
GitHub user abcMH1966 added a comment to the discussion: I encountered a port error when using pulsar to integrate etcd

It doesn't work. Occur the same error!

![image](https://user-images.githubusercontent.com/59676485/186428980-8648bb8f-fdfb-42d3-91c7-7a63e76e3406.png)

My JDK version is 18.0.2.1

GitHub link: https://github.com/apache/pulsar/discussions/17240#discussioncomment-3465717

----
This is an automatically sent email for dev@pulsar.apache.org.
To unsubscribe, please send an email to: dev-unsubscribe@pulsar.apache.org


[GitHub] [pulsar] liangyuanpeng edited a comment on the discussion: I encountered a port error when using pulsar to integrate etcd

Posted by GitBox <gi...@apache.org>.
GitHub user liangyuanpeng edited a comment on the discussion: I encountered a port error when using pulsar to integrate etcd

[This PR](https://github.com/apache/pulsar/pull/16309) had resolve pulsar working with etcd cluster and seems like have not  any release version of pulsar include it. and i have build a version of  pulsar from master, could you try it? `docker pull ghcr.io/pulsar-sigs/pulsar:2022-08-23` or `docker pull lypgcs/pulsar:2022-08-23`

GitHub link: https://github.com/apache/pulsar/discussions/17240#discussioncomment-3457354

----
This is an automatically sent email for dev@pulsar.apache.org.
To unsubscribe, please send an email to: dev-unsubscribe@pulsar.apache.org


[GitHub] [pulsar] liangyuanpeng added a comment to the discussion: I encountered a port error when using pulsar to integrate etcd

Posted by GitBox <gi...@apache.org>.
GitHub user liangyuanpeng added a comment to the discussion: I encountered a port error when using pulsar to integrate etcd

If you can see some log like `Cluster metadata for 'xxx' setup correctly` , your cluster metadata is init successed. Then you can ignore this log.

GitHub link: https://github.com/apache/pulsar/discussions/17240#discussioncomment-3500139

----
This is an automatically sent email for dev@pulsar.apache.org.
To unsubscribe, please send an email to: dev-unsubscribe@pulsar.apache.org


[GitHub] [pulsar] abcMH1966 added a comment to the discussion: I encountered a port error when using pulsar to integrate etcd

Posted by GitBox <gi...@apache.org>.
GitHub user abcMH1966 added a comment to the discussion: I encountered a port error when using pulsar to integrate etcd

> [This PR](https://github.com/apache/pulsar/pull/16309) had resolve pulsar working with etcd cluster and seems like have not any release version of pulsar include it. and i have build a version of pulsar from master, could you try it? `docker pull ghcr.io/pulsar-sigs/pulsar:2022-08-23` or `docker pull lypgcs/pulsar:2022-08-23`

I'll have a try. Thanks!

GitHub link: https://github.com/apache/pulsar/discussions/17240#discussioncomment-3462479

----
This is an automatically sent email for dev@pulsar.apache.org.
To unsubscribe, please send an email to: dev-unsubscribe@pulsar.apache.org


[GitHub] [pulsar] liangyuanpeng added a comment to the discussion: I encountered a port error when using pulsar to integrate etcd

Posted by GitBox <gi...@apache.org>.
GitHub user liangyuanpeng added a comment to the discussion: I encountered a port error when using pulsar to integrate etcd


I have tests on the docker image of  `docker pull lypgcs/pulsar:2022-08-23` and it's working for etcd cluster.

You need Change `etcd:node01:2379,node02:2379,node03:2379` to `etcd:http://node01:2379,http://node02:2379,http://node03:2379`

GitHub link: https://github.com/apache/pulsar/discussions/17240#discussioncomment-3471019

----
This is an automatically sent email for dev@pulsar.apache.org.
To unsubscribe, please send an email to: dev-unsubscribe@pulsar.apache.org


[GitHub] [pulsar] abcMH1966 added a comment to the discussion: I encountered a port error when using pulsar to integrate etcd

Posted by GitBox <gi...@apache.org>.
GitHub user abcMH1966 added a comment to the discussion: I encountered a port error when using pulsar to integrate etcd

> I have tests on the docker image of `docker pull lypgcs/pulsar:2022-08-23` and it's working for etcd cluster.
> 
> You need Change `etcd:node01:2379,node02:2379,node03:2379` to `etcd:http://node01:2379,http://node02:2379,http://node03:2379`

Thanks for your reply! I'll try it later.

GitHub link: https://github.com/apache/pulsar/discussions/17240#discussioncomment-3479257

----
This is an automatically sent email for dev@pulsar.apache.org.
To unsubscribe, please send an email to: dev-unsubscribe@pulsar.apache.org


[GitHub] [pulsar] abcMH1966 added a comment to the discussion: I encountered a port error when using pulsar to integrate etcd

Posted by GitBox <gi...@apache.org>.
GitHub user abcMH1966 added a comment to the discussion: I encountered a port error when using pulsar to integrate etcd

The port exception  is resolved. But occur the thread pool exception. It seems that the thread pool configuration is wrong. Do you konw how to resolve it?
![image](https://user-images.githubusercontent.com/59676485/187008919-37bf3430-423b-4e55-9539-57f42a9957e2.png)


GitHub link: https://github.com/apache/pulsar/discussions/17240#discussioncomment-3487576

----
This is an automatically sent email for dev@pulsar.apache.org.
To unsubscribe, please send an email to: dev-unsubscribe@pulsar.apache.org


[GitHub] [pulsar] abcMH1966 added a comment to the discussion: I encountered a port error when using pulsar to integrate etcd

Posted by GitBox <gi...@apache.org>.
GitHub user abcMH1966 added a comment to the discussion: I encountered a port error when using pulsar to integrate etcd

> What's your pulsar version?

the latest version: 2.10.1

GitHub link: https://github.com/apache/pulsar/discussions/17240#discussioncomment-3462438

----
This is an automatically sent email for dev@pulsar.apache.org.
To unsubscribe, please send an email to: dev-unsubscribe@pulsar.apache.org


[GitHub] [pulsar] liangyuanpeng added a comment to the discussion: I encountered a port error when using pulsar to integrate etcd

Posted by GitBox <gi...@apache.org>.
GitHub user liangyuanpeng added a comment to the discussion: I encountered a port error when using pulsar to integrate etcd

If you can see some log like `Cluster metadata for 'xxx' setup correctly` , your cluster metadata is init successed. Then you can ignore this log.

GitHub link: https://github.com/apache/pulsar/discussions/17240#discussioncomment-3500145

----
This is an automatically sent email for dev@pulsar.apache.org.
To unsubscribe, please send an email to: dev-unsubscribe@pulsar.apache.org


[GitHub] [pulsar] liangyuanpeng added a comment to the discussion: I encountered a port error when using pulsar to integrate etcd

Posted by GitBox <gi...@apache.org>.
GitHub user liangyuanpeng added a comment to the discussion: I encountered a port error when using pulsar to integrate etcd

This PR had resolve pulsar working with etcd cluster and seems like have not  any release version of pulsar include it. and i have build a version of  pulsar from master, could you try it? `docker pull ghcr.io/pulsar-sigs/pulsar:2022-08-23` or `docker pull lypgcs/pulsar:2022-08-23`

GitHub link: https://github.com/apache/pulsar/discussions/17240#discussioncomment-3457354

----
This is an automatically sent email for dev@pulsar.apache.org.
To unsubscribe, please send an email to: dev-unsubscribe@pulsar.apache.org


[GitHub] [pulsar] abcMH1966 added a comment to the discussion: I encountered a port error when using pulsar to integrate etcd

Posted by GitBox <gi...@apache.org>.
GitHub user abcMH1966 added a comment to the discussion: I encountered a port error when using pulsar to integrate etcd

> [This PR](https://github.com/apache/pulsar/pull/16309) had resolve pulsar working with etcd cluster and seems like have not any release version of pulsar include it. and i have build a version of pulsar from master, could you try it? `docker pull ghcr.io/pulsar-sigs/pulsar:2022-08-23` or `docker pull lypgcs/pulsar:2022-08-23`

**something goes wrong:**
Error: LinkageError occurred while loading main class org.apache.pulsar.PulsarClusterMetadataSetup
	java.lang.UnsupportedClassVersionError: org/apache/pulsar/PulsarClusterMetadataSetup has been compiled by a more recent version of the Java Runtime (class file version 61.0), this version of the Java Runtime only recognizes class file versions up to 55.0

Can you tell me what's your jdk version?

GitHub link: https://github.com/apache/pulsar/discussions/17240#discussioncomment-3465565

----
This is an automatically sent email for dev@pulsar.apache.org.
To unsubscribe, please send an email to: dev-unsubscribe@pulsar.apache.org