Add a jar path to SparkContext and the classloader.
Add a jar path to SparkContext and the classloader.
Note: this method seems not access any session state, but a Hive based SessionState
needs
to add the jar to its hive client for the current session. Hence, it still needs to be in
SessionState.
Session shared FunctionResourceLoader.