Search before asking
Linkis Component
linkis-cg-manager
What happened + What you expected to happen
insert into `linkis_cg_rm_external_resource_provider`(`id`,`resource_type`,`name`,`labels`,`config`) values
(1,'Yarn','sit',NULL,'{\r\n\"rmWebAddress\": \"@YARN_RESTFUL_URL\",\r\n\"hadoopVersion\": \"2.7.2\",\r\n\"authorEnable\":true,\r\n\"user\":\"hadoop\",\r\n\"pwd\":\"123456\"\r\n}');
The name in linkis_cg_rm_external_resource_provider is sit, but the config value of DEFAULT_YARN_CLUSTER_NAME is default, so it is It triggers the following exception:
No suitable ExternalResourceProvider found for cluster: default
The value in the linkis_cg_rm_external_resource_provider table has changed greatly from version 1.0.3, and the yarn rest authentication logic has not been modified
表linkis_cg_rm_external_resource_provider中的值与1.0.3版本变化较大,且这块yarn rest 认证逻辑无修改
Relevent platform
centos7
Reproduction script
insert into `linkis_cg_rm_external_resource_provider`(`id`,`resource_type`,`name`,`labels`,`config`) values
(1,'Yarn','sit',NULL,'{\r\n\"rmWebAddress\": \"@YARN_RESTFUL_URL\",\r\n\"hadoopVersion\": \"2.7.2\",\r\n\"authorEnable\":true,\r\n\"user\":\"hadoop\",\r\n\"pwd\":\"123456\"\r\n}');
change to
insert into `linkis_cg_rm_external_resource_provider`(`id`,`resource_type`,`name`,`labels`,`config`) values
(1,'Yarn','default',NULL,'{\r\n\"rmWebAddress\": \"@YARN_RESTFUL_URL\",\r\n\"hadoopVersion\": \"2.7.2\",\r\n\"authorEnable\":false,\r\n\"user\":\"hadoop\",\r\n\"pwd\":\"123456\",\r\n\"kerberosEnable\":@KERBEROS_ENABLE,\r\n\"principalName\":\"@PRINCIPAL_NAME\",\r\n\"keytabPath\":\"@KEYTAB_PATH\",\r\n\"krb5Path\":\"@KRB5_PATH\"\r\n}');
db/upgrade/1.1.0_schema/mysql/linkis_dml.sql
update `linkis_cg_rm_external_resource_provider` set `name` = 'default' where name = 'sit' and `resource_type` = 'Yarn';

Anything else
No response
Are you willing to submit a PR?