Skip to content

[Bug] init connector can not approve ipv6 FE #304

@zhangfangkai

Description

@zhangfangkai

Search before asking

  • I had searched in the issues and found no similar issues.

Version

spark-doris-connector-spark-3.2 25.0.1

What's Wrong?

my doris fe node is ipv6 address, when i init connector, i config
.option("doris.fenodes", "[aaaa:bbbb:11:22::33]:8030")
but it throw an exception

py4j.protocol.Py4JJavaError: An error occurred while calling o775.save.
: java.lang.NumberFormatException: For input string: "bbbb"
	at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
	at java.lang.Integer.parseInt(Integer.java:580)
	at java.lang.Integer.parseInt(Integer.java:615)
	at org.apache.doris.spark.client.DorisFrontendClient.lambda$initFrontends$1(DorisFrontendClient.java:145)
	at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193)

What You Expected?

connector support ipv6 fe nodes

How to Reproduce?

No response

Anything Else?

No response

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions