[oozie] Fix Oozie action Sqoop job failed to execute
@@ -367,7 +367,7 @@ STORED AS TEXTFILE %s""" % (self.properties.get('send_result_path'), '\n\n\n'.jo
self._create_file(deployment_dir, action.data['name'] + '.pig', statements)
elif action.data['type'] in ('spark', 'spark-document') or (
- action.data['type'] in ('sqoop', 'sqoop-document') and action.data['properties']['statement'] in '--hive-import'):
+ action.data['type'] in ('sqoop', 'sqoop-document') and '--hive-import' in action.data['properties']['command']):
if not [f for f in action.data.get('properties').get('files', []) if f.get('value').endswith('hive-site.xml')]:
hive_site_lib = Hdfs.join(deployment_dir + '/lib/', 'hive-site.xml')
hive_site_content = get_hive_site_content()
