Merge "Add a common Hive and Pig config in workflow_factory"
This commit is contained in:
commit
8f6df19921
@ -316,15 +316,13 @@ def get_possible_job_config(job_type):
|
||||
|
||||
if edp.compare_job_type(job_type,
|
||||
edp.JOB_TYPE_MAPREDUCE, edp.JOB_TYPE_PIG):
|
||||
# TODO(nmakhotkin): Here we need return config based on specific plugin
|
||||
cfg = xmlutils.load_hadoop_xml_defaults(
|
||||
'plugins/vanilla/v2_6_0/resources/mapred-default.xml')
|
||||
'service/edp/resources/mapred-default.xml')
|
||||
if edp.compare_job_type(job_type, edp.JOB_TYPE_MAPREDUCE):
|
||||
cfg += get_possible_mapreduce_configs()
|
||||
elif edp.compare_job_type(job_type, edp.JOB_TYPE_HIVE):
|
||||
# TODO(nmakhotkin): Here we need return config based on specific plugin
|
||||
cfg = xmlutils.load_hadoop_xml_defaults(
|
||||
'plugins/vanilla/v2_6_0/resources/hive-default.xml')
|
||||
'service/edp/resources/hive-default.xml')
|
||||
|
||||
config = {'configs': cfg}
|
||||
if edp.compare_job_type(job_type, edp.JOB_TYPE_PIG, edp.JOB_TYPE_HIVE):
|
||||
|
1873
sahara/service/edp/resources/hive-default.xml
Normal file
1873
sahara/service/edp/resources/hive-default.xml
Normal file
File diff suppressed because it is too large
Load Diff
1955
sahara/service/edp/resources/mapred-default.xml
Normal file
1955
sahara/service/edp/resources/mapred-default.xml
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user