File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed
docs/source/user_guide/apachespark Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -25,14 +25,16 @@ followed by the spark version, 3.2.1.
2525 with open (os.path.join(td, " script.py" ), " w" ) as f:
2626 f.write(
2727 """
28- import pyspark
28+ import pyspark
2929
30- def main():
31- print("Hello World")
32- print("Spark version is", pyspark.__version__)
30+ def main():
31+ print("Hello World")
32+ print("Spark version is", pyspark.__version__)
3333
34- if __name__ == "__main__":
35- main()
34+ if __name__ == "__main__":
35+ main()
36+ """
37+ )
3638
3739 name = f " dataflow-app- { str (uuid4())} "
3840 dataflow_configs = (
@@ -53,8 +55,6 @@ followed by the spark version, 3.2.1.
5355 df = Job(name = name, infrastructure = dataflow_configs, runtime = runtime_config)
5456 df.create()
5557 df_run = df.run()
56- """
57- )
5858
5959 From the Command Line
6060---------------------
You can’t perform that action at this time.
0 commit comments