CCweixiao opened a new issue #1899: URL: https://github.com/apache/incubator-linkis/issues/1899
### Search before asking - [X] I searched the [issues](https://github.com/apache/incubator-linkis/issues) and found no similar issues. ### Linkis Component linkis-cg-manager ### What happened + What you expected to happen ```sql 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 ```sql 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 ```sql 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\":true,\r\n\"user\":\"hadoop\",\r\n\"pwd\":\"123456\"\r\n}'); ``` db/upgrade/1.1.0_schema/mysql/linkis_dml.sql ```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? - [X] Yes I am willing to submit a PR! -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: dev-unsubscr...@linkis.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@linkis.apache.org For additional commands, e-mail: dev-h...@linkis.apache.org