зеркало из https://github.com/microsoft/pai.git
Add a notice if user still wants to use yarn version (#4340)
* init * fix * fix
This commit is contained in:
Родитель
a0b18ff94b
Коммит
51a6e1fa16
|
@ -44,6 +44,14 @@ class serivce_management_start:
|
|||
self.service_list = service_management_configuration.get_service_list(self.cluster_type)
|
||||
else:
|
||||
self.service_list = service_list
|
||||
if self.cluster_type == 'yarn':
|
||||
user_input = raw_input(
|
||||
"Cluster type `yarn` is not well tested. We recommend you to use `k8s` version or " +
|
||||
"stick to 0.14.0 if you prefer yarn version. " +
|
||||
"If you still want to continue, please input Y. " +
|
||||
"Other inputs will stop installation immediately: ")
|
||||
if user_input != "Y":
|
||||
sys.exit(1)
|
||||
self.logger.info("Get the service-list to manage : {0}".format(str(self.service_list)))
|
||||
|
||||
self.retry_times = 5
|
||||
|
|
|
@ -49,5 +49,5 @@ echo "Y" | python paictl.py cluster k8s-bootup -p /cluster-configuration
|
|||
echo "pai" | python paictl.py config push -p /cluster-configuration
|
||||
|
||||
# 3. start PAI services
|
||||
echo "pai" | python paictl.py service start
|
||||
echo -e "pai\nY\n" | python paictl.py service start
|
||||
EOF_DEV_BOX
|
||||
|
|
Загрузка…
Ссылка в новой задаче