This is an automated email from the ASF dual-hosted git repository.
yao pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/spark.git
The following commit(s) were added to refs/heads/master by this push:
new 985417c9f206 [SPARK-46829][CORE] Remove createExecutorEnv from SparkEnv
985417c9f206 is described below
commit 985417c9f20624d14868c86badc6c4521fb1cd3c
Author: huangxiaoping <[email protected]>
AuthorDate: Thu Jan 25 14:29:38 2024 +0800
[SPARK-46829][CORE] Remove createExecutorEnv from SparkEnv
### What changes were proposed in this pull request?
Remove `createExecutorEnv` from `SparkEnv`.
### Why are the changes needed?
Code clean up.
### Does this PR introduce _any_ user-facing change?
No
### How was this patch tested?
### Was this patch authored or co-authored using generative AI tooling?
Closes #44870 from huangxiaopingRD/SPARK-46829.
Authored-by: huangxiaoping <[email protected]>
Signed-off-by: Kent Yao <[email protected]>
---
core/src/main/scala/org/apache/spark/SparkEnv.scala | 11 -----------
1 file changed, 11 deletions(-)
diff --git a/core/src/main/scala/org/apache/spark/SparkEnv.scala
b/core/src/main/scala/org/apache/spark/SparkEnv.scala
index 94a4debd0263..ca07c276fbff 100644
--- a/core/src/main/scala/org/apache/spark/SparkEnv.scala
+++ b/core/src/main/scala/org/apache/spark/SparkEnv.scala
@@ -280,17 +280,6 @@ object SparkEnv extends Logging {
env
}
- private[spark] def createExecutorEnv(
- conf: SparkConf,
- executorId: String,
- hostname: String,
- numCores: Int,
- ioEncryptionKey: Option[Array[Byte]],
- isLocal: Boolean): SparkEnv = {
- createExecutorEnv(conf, executorId, hostname,
- hostname, numCores, ioEncryptionKey, isLocal)
- }
-
/**
* Helper method to create a SparkEnv for a driver or an executor.
*/
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]