Skip to content

Commit

Permalink
[INLONG-8560][Dashboard] Hive supports filling in username and passwo…
Browse files Browse the repository at this point in the history
…rd (#8569)

(cherry picked from commit dace819)
  • Loading branch information
bluewang authored and vernedeng committed Jul 19, 2023
1 parent 1d93f8b commit ccf040e
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
14 changes: 14 additions & 0 deletions inlong-dashboard/src/plugins/nodes/defaults/Hive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 }],
Expand Down
2 changes: 2 additions & 0 deletions inlong-dashboard/src/ui/locales/cn.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": "地址",
Expand Down
2 changes: 2 additions & 0 deletions inlong-dashboard/src/ui/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit ccf040e

Please sign in to comment.