You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@inlong.apache.org by he...@apache.org on 2022/05/07 06:18:19 UTC

[incubator-inlong] branch master updated: [INLONG-4102][Dashboard] Add tooltip for dataPath of the Hive sink (#4103)

This is an automated email from the ASF dual-hosted git repository.

healchow pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-inlong.git


The following commit(s) were added to refs/heads/master by this push:
     new 786a2bf9a [INLONG-4102][Dashboard] Add tooltip for dataPath of the Hive sink (#4103)
786a2bf9a is described below

commit 786a2bf9aaeebd53cd8cb971544925c69587bcb3
Author: healchow <he...@gmail.com>
AuthorDate: Sat May 7 14:18:15 2022 +0800

    [INLONG-4102][Dashboard] Add tooltip for dataPath of the Hive sink (#4103)
---
 inlong-dashboard/src/components/MetaData/StorageHive.tsx | 3 ++-
 inlong-dashboard/src/locales/cn.json                     | 1 +
 inlong-dashboard/src/locales/en.json                     | 1 +
 3 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/inlong-dashboard/src/components/MetaData/StorageHive.tsx b/inlong-dashboard/src/components/MetaData/StorageHive.tsx
index a89999d15..eee1118a4 100644
--- a/inlong-dashboard/src/components/MetaData/StorageHive.tsx
+++ b/inlong-dashboard/src/components/MetaData/StorageHive.tsx
@@ -159,8 +159,9 @@ const getForm: GetStorageFormFieldsType = (
       label: i18n.t('components.AccessHelper.StorageMetaData.Hive.DataPath'),
       name: 'dataPath',
       rules: [{ required: true }],
+      tooltip: i18n.t('components.AccessHelper.StorageMetaData.DataPathHelp'),
       props: {
-        placeholder: 'hdfs://127.0.0.1:9000/user/hive/warehouse',
+        placeholder: 'hdfs://127.0.0.1:9000/user/hive/warehouse/default',
         disabled: isEdit && [110, 130].includes(currentValues?.status),
       },
     },
diff --git a/inlong-dashboard/src/locales/cn.json b/inlong-dashboard/src/locales/cn.json
index 91f65efd7..a6db70428 100644
--- a/inlong-dashboard/src/locales/cn.json
+++ b/inlong-dashboard/src/locales/cn.json
@@ -58,6 +58,7 @@
   "components.AccessHelper.StorageMetaData.Hive.ConnectionSucceeded": "连接成功",
   "components.AccessHelper.StorageMetaData.Hive.ConnectionFailed": "连接失败",
   "components.AccessHelper.StorageMetaData.Hive.DataPath": "数据路径",
+  "components.AccessHelper.StorageMetaData.DataPathHelp": "DB的存储路径,不包括表名,如:hdfs://127.0.0.1:9000/warehouse/inlong.db",
   "components.AccessHelper.StorageMetaData.Hive.FieldName": "字段名",
   "components.AccessHelper.StorageMetaData.Hive.FieldType": "字段类型",
   "components.AccessHelper.StorageMetaData.Hive.FieldDescription": "字段描述",
diff --git a/inlong-dashboard/src/locales/en.json b/inlong-dashboard/src/locales/en.json
index 3b94f370a..469cd3bae 100644
--- a/inlong-dashboard/src/locales/en.json
+++ b/inlong-dashboard/src/locales/en.json
@@ -58,6 +58,7 @@
   "components.AccessHelper.StorageMetaData.Hive.ConnectionSucceeded": "Connection succeeded",
   "components.AccessHelper.StorageMetaData.Hive.ConnectionFailed": "Connection failed",
   "components.AccessHelper.StorageMetaData.Hive.DataPath": "DataPath",
+  "components.AccessHelper.StorageMetaData.DataPathHelp": "Storage path of the DB, excluding the table name, such as: hdfs://127.0.0.1:9000/warehouse/inlong.db",
   "components.AccessHelper.StorageMetaData.Hive.FieldName": "FieldName",
   "components.AccessHelper.StorageMetaData.Hive.FieldType": "FieldType",
   "components.AccessHelper.StorageMetaData.Hive.FieldDescription": "Field description",