This method will copy the given jar to Spark root directory and then it will add the same jar to Spark.
This method will copy the given jar to Spark root directory and then it will add the same jar to Spark. This ensures class & jar isolation although it might be repetitive.
prefix to be given to the jar name
original path of the jar
An utility class to store jar file reference with their individual class loaders. This is to reflect class changes at driver side. e.g. If an UDF definition changes the driver should pick up the correct UDF class. This class can not initialize itself after a driver failure. So the callers will have to make sure that the classloader gets initialized after a driver startup. Usually it can be achieved by adding classloader at query time.