File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -165,10 +165,10 @@ public actor SparkSession {
165
165
return config ( " spark.sql.catalogImplementation " , " hive " )
166
166
}
167
167
168
- /// Create a new ``SparkSession``. If `spark.remote` is not given, `sc://localhost :15002` is used.
168
+ /// Create a new ``SparkSession``. If `spark.remote` is not given, `sc://127.0.0.1 :15002` is used.
169
169
/// - Returns: A newly created `SparkSession`.
170
170
func create( ) async throws -> SparkSession {
171
- let session = SparkSession ( sparkConf [ " spark.remote " ] ?? " sc://localhost :15002 " )
171
+ let session = SparkSession ( sparkConf [ " spark.remote " ] ?? " sc://127.0.0.1 :15002 " )
172
172
let response = try await session. client. connect ( session. sessionID)
173
173
await session. setVersion ( response. sparkVersion. version)
174
174
let isSuccess = try await session. client. setConf ( map: sparkConf)
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ struct BuilderTests {
28
28
func builderDefault( ) async throws {
29
29
let spark = try await SparkSession . builder. getOrCreate ( )
30
30
#expect( await spark. client. clientType == " swift " )
31
- #expect( await spark. client. url. host ( ) == " localhost " )
31
+ #expect( await spark. client. url. host ( ) == " 127.0.0.1 " )
32
32
#expect( await spark. client. url. port == 15002 )
33
33
await spark. stop ( )
34
34
}
You can’t perform that action at this time.
0 commit comments