GitHub user 10110346 opened a pull request:
https://github.com/apache/spark/pull/20801
[SPARK-23651]Add a check for host name
## What changes were proposed in this pull request?
I encountered a error like this:
`org.apache.spark.SparkException: Invalid Spark URL:
spark://HeartbeatReceiver@ci_164:42849
at
org.apache.spark.rpc.RpcEndpointAddress$.apply(RpcEndpointAddress.scala:66)
at
org.apache.spark.rpc.netty.NettyRpcEnv.asyncSetupEndpointRefByURI(NettyRpcEnv.scala:134)
at
org.apache.spark.rpc.RpcEnv.setupEndpointRefByURI(RpcEnv.scala:101)
at org.apache.spark.rpc.RpcEnv.setupEndpointRef(RpcEnv.scala:109)
at org.apache.spark.util.RpcUtils$.makeDriverRef(RpcUtils.scala:32)
at org.apache.spark.executor.Executor.<init>(Executor.scala:155)
at
org.apache.spark.scheduler.local.LocalEndpoint.<init>(LocalSchedulerBackend.scala:59)
at
org.apache.spark.scheduler.local.LocalSchedulerBackend.start(LocalSchedulerBackend.scala:126)
at
org.apache.spark.scheduler.TaskSchedulerImpl.start(TaskSchedulerImpl.scala:164)`
I didn't know why this URL(spark://HeartbeatReceiver@ci_164:42849) is
invalid,
in fact, hostname is only allowed to include 0-9, a-z, A-Z and -, so i
think we should give a clearer reminder for this error.
## How was this patch tested?
Existing unit test
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/10110346/spark hostname
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/20801.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #20801
----
commit 68a44bee378abf5265ff7defb39a1d003d47f69b
Author: liuxian <liu.xian3@...>
Date: 2018-03-12T07:39:59Z
fix
----
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]