Shared Java and Scala APIs
Once you have a SparkSession
object created, it will serve as your main entry point. In the next chapter, you will learn how to use the SparkSession
object to load and save data. You can also use SparkSession.SparkContext
to launch more Spark jobs and add or remove dependencies. Some of the non-data-driven methods you can use on the SparkSession.SparkContext
object are shown here:
Method |
Use |
|
This method adds the JAR file for all the future jobs that would run through the |
|
This method downloads the file to all the nodes on the cluster. |
|
This method shows the list of all the currently added files/JARs. |
|
This method shuts down |
|
This method removes the files so that new nodes will not download them. |
|
This method removes the JARs from being required for future jobs. |