We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1243a1e commit f979808Copy full SHA for f979808
spark-connect-client/stackable/spark-connect-examples/python/simple-connect-app.py
@@ -1,9 +1,12 @@
1
+import sys
2
+
3
from pyspark.sql import SparkSession
4
5
if __name__ == "__main__":
6
+ remote: str = sys.argv[1]
7
spark = (
- SparkSession.builder.appName("SampleConnectApp")
- .remote("sc://localhost")
8
+ SparkSession.builder.appName("SimpleSparkConnectApp")
9
+ .remote(remote)
10
.getOrCreate()
11
)
12
0 commit comments