Merge "Inject drivers to jars in Ambari Spark engine"
This commit is contained in:
commit
418ec8edbb
@ -103,6 +103,8 @@ class EDPSparkEngine(spark_engine.SparkJobEngine):
|
||||
_get_hadoop_openstack_jar_location(self.master),
|
||||
_get_jackson_core(self.master)]
|
||||
self.plugin_params['driver-class-path'] = ":".join(driver_classpath)
|
||||
self.plugin_params['drivers-to-jars'] = driver_classpath
|
||||
|
||||
return super(EDPSparkEngine, self).run_job(job_execution)
|
||||
|
||||
def validate_job_execution(self, cluster, job, data):
|
||||
|
@ -222,7 +222,8 @@ class SparkJobEngine(base_engine.JobEngine):
|
||||
indep_params["app_jar"] = paths.pop(0)
|
||||
indep_params["job_class"] = (
|
||||
updated_job_configs["configs"]["edp.java.main_class"])
|
||||
|
||||
if self.plugin_params.get('drivers-to-jars', None):
|
||||
paths.extend(self.plugin_params['drivers-to-jars'])
|
||||
# If we uploaded builtins then we are using a wrapper jar. It will
|
||||
# be the first one on the builtin list and the original app_jar needs
|
||||
# to be added to the 'additional' jars
|
||||
|
Loading…
Reference in New Issue
Block a user