You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Xiaochen Ouyang (JIRA)" <ji...@apache.org> on 2018/09/03 03:06:01 UTC

[jira] [Commented] (SPARK-25311) `SPARK_LOCAL_HOSTNAME` unsupport IPV6 when do host checking

    [ https://issues.apache.org/jira/browse/SPARK-25311?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16601751#comment-16601751 ] 

Xiaochen Ouyang commented on SPARK-25311:
-----------------------------------------

IPV6, IPV4 regular expression can be used to solve this problem, but `checkHost` is revoked more frequently, and there is a certain loss in performance. I don't know if anyone else has a recommended solution?

> `SPARK_LOCAL_HOSTNAME` unsupport IPV6 when do host checking
> -----------------------------------------------------------
>
>                 Key: SPARK-25311
>                 URL: https://issues.apache.org/jira/browse/SPARK-25311
>             Project: Spark
>          Issue Type: Bug
>          Components: Spark Core
>    Affects Versions: 2.2.1, 2.2.2
>            Reporter: Xiaochen Ouyang
>            Priority: Major
>
> IPV4 can pass the flowing check
> {code:java}
>   def checkHost(host: String, message: String = "") {
>     assert(host.indexOf(':') == -1, message)
>   }
> {code}
> But IPV6 check failed.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org