@@ -93,7 +93,7 @@ def stage_flink_components(self, application_name, component_name, properties, s
93
93
self .exec_cmds (mkdir_commands )
94
94
95
95
os .system ("cp -r %s %s"
96
- % (staged_component_path + '/lib/*' , component_install_path ))
96
+ % (staged_component_path + '/lib/*' , component_install_path ))
97
97
98
98
copy_commands = []
99
99
copy_commands .append ('sudo mv %s/%s %s/execute.sh' % (component_install_path , service_script , component_install_path ))
@@ -120,7 +120,7 @@ def destroy_component(self, application_name, create_data):
120
120
# stop flink job and delete component from local
121
121
if "flink_staged_path" in create_data :
122
122
destroy_commands = ["python %s/flink-stop.py" % create_data ["flink_staged_path" ],
123
- "sudo rm -rf %s\n " % create_data ["flink_staged_path" ]]
123
+ "sudo rm -rf %s\n " % create_data ["flink_staged_path" ]]
124
124
self .exec_cmds (destroy_commands )
125
125
126
126
def start_component (self , application_name , create_data ):
@@ -160,7 +160,7 @@ def create_component(self, staged_component_path, application_name, user_name, c
160
160
properties ['deployment_end' ] = end .strftime ("%Y-%m-%dT%H:%MZ" )
161
161
162
162
# for flink jobs, code need to be staged locally because both ssh action and flink client requires code to be present in local
163
- if properties .get ('component_job_type' ,'' ) == 'flink' :
163
+ if properties .get ('component_job_type' , '' ) == 'flink' :
164
164
self .stage_flink_components (application_name , component ['component_name' ], properties , staged_component_path )
165
165
166
166
# insert required oozie properties
@@ -199,8 +199,8 @@ def create_component(self, staged_component_path, application_name, user_name, c
199
199
ret_data ["flink_staged_path" ] = properties ["component_staged_path" ]
200
200
201
201
ret_data .update ({'job_handle' : undeploy ['id' ],
202
- 'component_hdfs_root' : properties ['component_hdfs_root' ],
203
- 'application_user' : properties ['application_user' ]})
202
+ 'component_hdfs_root' : properties ['component_hdfs_root' ],
203
+ 'application_user' : properties ['application_user' ]})
204
204
return ret_data
205
205
206
206
def _setup_queue_config (self , component , staged_component_path , properties ):
0 commit comments