@@ -79,7 +79,7 @@ def create_component(self, staged_component_path, application_name, user_name, c
79
79
raise Exception ('properties.json must contain "main_jar or main_py" for %s flink %s' % (application_name , component ['component_name' ]))
80
80
81
81
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 )
83
83
service_script = 'flink.systemd.service.tpl' if java_app else 'flink.systemd.service.py.tpl'
84
84
service_script_install_path = '/usr/lib/systemd/system/%s.service' % service_name
85
85
if 'component_respawn_type' not in properties :
@@ -98,7 +98,7 @@ def create_component(self, staged_component_path, application_name, user_name, c
98
98
99
99
self ._fill_properties (os .path .join (staged_component_path , service_script ), properties )
100
100
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 )
102
102
103
103
mkdircommands = []
104
104
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
111
111
commands = []
112
112
commands .append ('sudo cp %s/%s %s' % (remote_component_tmp_path , service_script , service_script_install_path ))
113
113
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 ))
115
115
116
116
if 'component_main_jar' in properties :
117
117
commands .append ('cd %s && sudo jar uf %s application.properties' % (remote_component_install_path , properties ['component_main_jar' ]))
0 commit comments