@@ -79,7 +79,7 @@ def create_component(self, staged_component_path, application_name, user_name, c
7979 raise Exception ('properties.json must contain "main_jar or main_py" for %s flink %s' % (application_name , component ['component_name' ]))
8080
8181 this_dir = os .path .dirname (os .path .realpath (__file__ ))
82- copy (os .path .join (this_dir , 'yarn-kill .py' ), staged_component_path )
82+ copy (os .path .join (this_dir , 'flink-stop .py' ), staged_component_path )
8383 service_script = 'flink.systemd.service.tpl' if java_app else 'flink.systemd.service.py.tpl'
8484 service_script_install_path = '/usr/lib/systemd/system/%s.service' % service_name
8585 if 'component_respawn_type' not in properties :
@@ -98,7 +98,7 @@ def create_component(self, staged_component_path, application_name, user_name, c
9898
9999 self ._fill_properties (os .path .join (staged_component_path , service_script ), properties )
100100 self ._fill_properties (os .path .join (staged_component_path , 'application.properties' ), properties )
101- self ._fill_properties (os .path .join (staged_component_path , 'yarn-kill .py' ), properties )
101+ self ._fill_properties (os .path .join (staged_component_path , 'flink-stop .py' ), properties )
102102
103103 mkdircommands = []
104104 mkdircommands .append ('mkdir -p %s' % remote_component_tmp_path )
@@ -111,7 +111,7 @@ def create_component(self, staged_component_path, application_name, user_name, c
111111 commands = []
112112 commands .append ('sudo cp %s/%s %s' % (remote_component_tmp_path , service_script , service_script_install_path ))
113113 commands .append ('sudo cp %s/* %s' % (remote_component_tmp_path , remote_component_install_path ))
114- commands .append ('sudo chmod a+x %s/yarn-kill .py' % (remote_component_install_path ))
114+ commands .append ('sudo chmod a+x %s/flink-stop .py' % (remote_component_install_path ))
115115
116116 if 'component_main_jar' in properties :
117117 commands .append ('cd %s && sudo jar uf %s application.properties' % (remote_component_install_path , properties ['component_main_jar' ]))
0 commit comments