This is an automated email from the ASF dual-hosted git repository. vernedeng pushed a commit to branch branch-1.8 in repository https://gitbox.apache.org/repos/asf/inlong.git
commit ccf040eba1d869a0599ec619a9ecdfad09fcb2b5 Author: Lizhen <88174078+bluew...@users.noreply.github.com> AuthorDate: Wed Jul 19 18:51:34 2023 +0800 [INLONG-8560][Dashboard] Hive supports filling in username and password (#8569) (cherry picked from commit dace81941e7da0c02c65d50d39df08624b763c17) --- inlong-dashboard/src/plugins/nodes/defaults/Hive.ts | 14 ++++++++++++++ inlong-dashboard/src/ui/locales/cn.json | 2 ++ inlong-dashboard/src/ui/locales/en.json | 2 ++ 3 files changed, 18 insertions(+) diff --git a/inlong-dashboard/src/plugins/nodes/defaults/Hive.ts b/inlong-dashboard/src/plugins/nodes/defaults/Hive.ts index c507ad06ed..3ad9d8c287 100644 --- a/inlong-dashboard/src/plugins/nodes/defaults/Hive.ts +++ b/inlong-dashboard/src/plugins/nodes/defaults/Hive.ts @@ -27,6 +27,20 @@ const { I18n } = DataWithBackend; const { FieldDecorator } = RenderRow; export default class HiveNode extends NodeInfo implements DataWithBackend, RenderRow, RenderList { + @FieldDecorator({ + type: 'input', + rules: [{ required: true }], + }) + @I18n('meta.Nodes.Hive.Username') + username: string; + + @FieldDecorator({ + type: 'password', + rules: [{ required: true }], + }) + @I18n('meta.Nodes.Hive.Password') + token: string; + @FieldDecorator({ type: 'input', rules: [{ required: true }], diff --git a/inlong-dashboard/src/ui/locales/cn.json b/inlong-dashboard/src/ui/locales/cn.json index 67d8004dc8..a99c7705fb 100644 --- a/inlong-dashboard/src/ui/locales/cn.json +++ b/inlong-dashboard/src/ui/locales/cn.json @@ -491,6 +491,8 @@ "meta.Nodes.StarRocks.Username": "用户名", "meta.Nodes.StarRocks.Password": "密码", "meta.Nodes.StarRocks.Url": "地址", + "meta.Nodes.Hive.Username": "用户名", + "meta.Nodes.Hive.Password": "密码", "meta.Nodes.Hudi.Username": "用户名", "meta.Nodes.Hudi.Password": "密码", "meta.Nodes.Hudi.Url": "地址", diff --git a/inlong-dashboard/src/ui/locales/en.json b/inlong-dashboard/src/ui/locales/en.json index 60e49aa8df..3700bac566 100644 --- a/inlong-dashboard/src/ui/locales/en.json +++ b/inlong-dashboard/src/ui/locales/en.json @@ -491,6 +491,8 @@ "meta.Nodes.StarRocks.Username": "Username", "meta.Nodes.StarRocks.Password": "Password", "meta.Nodes.StarRocks.Url": "URL", + "meta.Nodes.Hive.Username": "Username", + "meta.Nodes.Hive.Password": "Password", "meta.Nodes.Redis.Database": "Database", "meta.Nodes.Redis.clusterMode": "ClusterMode", "meta.Nodes.Redis.Host": "Host",