-
Notifications
You must be signed in to change notification settings - Fork 588
HDDS-4076. Translate CSI.md into Chinese #1299
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
cxorm
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @maobaolong for the translation work.
Overall looks good, some suggestions are added inline.
| 首先,我们需要一个带有S3Gateway的Ozone集群,并且它的OM和S3Gateway的端口都可以对CSI pod可见, | ||
| 因为CSIServer 将会访问 OM 来创建或者删除篮子,并且,CSIServer将会通过goofys创建到s3g的挂载点的方式来发布桶。 | ||
|
|
||
| 如果你没有一个运行在kubernetes上的Ozone集群,你可以参考[Kubernetes]({{< ref "start/Kubernetes.zh.md" >}}) 来创建一个。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| 如果你没有一个运行在kubernetes上的Ozone集群,你可以参考[Kubernetes]({{< ref "start/Kubernetes.zh.md" >}}) 来创建一个。 | |
| 如果你没有一个运行在kubernetes上的Ozone集群,你可以参考[Kubernetes](https://github.com/apache/hadoop-ozone/blob/master/hadoop-hdds/docs/content/start/Kubernetes.zh.md) 来创建一个。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@cxorm I don't think we should hard-code URLs like that. What's the problem with the Hugo ref shortcode?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you @adoroszlai for the reminder.
Yeah the URL here could be not hard-code by Hugo. (I just show it in other .md editor and not consider Hugo)
No problem here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@cxorm https://ci-hadoop.apache.org/view/Hadoop%20Ozone/job/ozone-doc-master/lastSuccessfulBuild/artifact/hadoop-hdds/docs/public/interface/csi.html
This is the English version of CSI.md, I don't catch the point why you suggest me to change [Kubernetes]({{< ref "start/Kubernetes.zh.md" >}}) into (https://github.com/apache/hadoop-ozone/blob/master/hadoop-hdds/docs/content/start/Kubernetes.zh.md), I think it can works like my origin way, If there are something wrong with me, please correct me.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you @maobaolong for the reply.
No problem here, it's my carelessness.
Although this is only a documentation change, I don't agree that tests can be skipped. Some ideas for testing:
Hope that helps. |
Co-authored-by: Yi-Sheng Lien <[email protected]>
Co-authored-by: Yi-Sheng Lien <[email protected]>
|
@adoroszlai Thanks for tell me how to test the docs changes locally. It works good, the link can works also. PTAL. |
Codecov Report
@@ Coverage Diff @@
## master #1299 +/- ##
============================================
- Coverage 74.55% 74.43% -0.12%
+ Complexity 10280 10260 -20
============================================
Files 979 979
Lines 50282 50282
Branches 4909 4909
============================================
- Hits 37488 37428 -60
- Misses 10452 10494 +42
- Partials 2342 2360 +18 Continue to review full report at Codecov.
|
|
|
||
| 容器存储接口 `Container Storage Interface` (CSI) 使存储供应商(SP)能够一次性开发一个插件,并让它跨多个容器编排工作。 | ||
|
|
||
| 获取更多CSI的信息,可以参考[SCI spec](https://github.com/container-storage-interface/spec/blob/master/spec.md) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How about add one space before/after the English words? Like that 多CSI的 -> 多 CSI 的.
Would you please to keep above style consistent in the whole article?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @runitao for your suggestion, it make this document much pretty. Now, i addressed your comment, PTAL.
| --- | ||
| title: CSI 协议 | ||
| weight: 3 | ||
| summary: Ozone 支持 容器存储接口(CSI) 协议。你可以通过Ozone CSI 挂载 Ozone 桶的方式使用 Ozone。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
接口(CSI) 协 -> 接口 (CSI) 协
通过Ozone CSI 挂 -> 通过 Ozone CSI 挂
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
|
|
||
| ## 入门 | ||
|
|
||
| 首先,我们需要一个带有 S3Gateway 的 Ozone 集群,并且它的 OM 和 S3Gateway 的端口都可以对 CSI pod 可见, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In the original English doc, the s3gateway is used.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done. I should keep consistent with the English version, thanks, I've corrected it.
| ## 入门 | ||
|
|
||
| 首先,我们需要一个带有 S3Gateway 的 Ozone 集群,并且它的 OM 和 S3Gateway 的端口都可以对 CSI pod 可见, | ||
| 因为 CSIServer 将会访问 OM 来创建或者删除篮子,并且,CSIServer 将会通过 goofys 创建到 s3g 的挂载点的方式来发布桶。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
bucket shoud be translated to 桶
I think also, CSIServer will publish volume by creating a mount point to s3g through goofys. shoud be translate to 同时 CSIServer 通过 goofys 创建一个可以访问 s3g 的挂载点来发布卷。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
|
|
||
| 如果你没有一个运行在 kubernetes 上的 Ozone 集群,你可以参考[Kubernetes]({{< ref "start/Kubernetes.zh.md" >}}) 来创建一个。 | ||
| 使用来自 `kubernetes/examples/ozone`的资源,你可以找到所有需要的kubernetes资源来和指定的CSI运行在一起 | ||
| (参考 `kubernetes/examples/ozone/csi`) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
miss spaces around kubernetes and CSI. kubernetes资源来和指定的CSI运行
I think we shoud use K in Kubernetes, although kubernetes is sometimes used in original doc.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done. Thanks for point it for me.
| kubectl create -f /ozone/kubernetes/examples/ozone/pv-test | ||
| ``` | ||
|
|
||
| 连接 pod scm-0 并且 创建一个键到桶 /s3v/pvc* 。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
并在 /s3v/pvc* 桶中创建一个键值。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
| [hadoop@scm-0 ~]$ ozone sh key put /s3v/pvc-861e2d8b-2232-4cd1-b43c-c0c26697ab6b/A LICENSE.txt | ||
| ``` | ||
|
|
||
| 现在,通过映射 `ozone-csi-test-webserver-7cbdc5d65c-h5mnn` 的端口来通过浏览器看到 web 页面. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
端口来通过浏览器看到 web 页面. -> 端口,我们可以使用浏览器展示其 UI 页面。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
runitao
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I comment inline, @maobaolong could you please to check them?
runitao
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1 LGTM
|
@runitao Thanks for you review and improve my Chinese 😄 |
|
LGTM. +1. |
|
Thanks @maobaolong for the translation, and @cxorm and @runitao for the review. |
* master: (28 commits) HDDS-4037. Incorrect container numberOfKeys and usedBytes in SCM after key deletion (apache#1295) HDDS-3232. Include the byteman scripts in the distribution tar file (apache#1309) HDDS-4095. Byteman script to debug HCFS performance (apache#1311) HDDS-4057. Failed acceptance test missing from bundle (apache#1283) HDDS-4040. [OFS] BasicRootedOzoneFileSystem to support batchDelete (apache#1286) HDDS-4061. Pending delete blocks are not always included in #BLOCKCOUNT metadata (apache#1288) HDDS-4067. Implement toString for OMTransactionInfo (apache#1300) HDDS-3878. Make OMHA serviceID optional if one (but only one) is defined in the config (apache#1149) HDDS-3833. Use Pipeline choose policy to choose pipeline from exist pipeline list (apache#1096) HDDS-3979. Make bufferSize configurable for stream copy (apache#1212) HDDS-4048. Show more information while SCM version info mismatch (apache#1278) HDDS-4078. Use HDDS InterfaceAudience/Stability annotations (apache#1302) HDDS-4034. Add Unit Test for HadoopNestedDirGenerator. (apache#1266) HDDS-4076. Translate CSI.md into Chinese (apache#1299) HDDS-4046. Extensible subcommands for CLI applications (apache#1276) HDDS-4051. Remove whitelist/blacklist terminology from Ozone (apache#1306) HDDS-4055. Cleanup GitHub workflow (apache#1282) HDDS-4042. Update documentation for the GA release (apache#1269) HDDS-4066. Add core-site.xml to intellij configuration (apache#1292) HDDS-4073. Remove leftover robot.robot (apache#1297) ...

What changes were proposed in this pull request?
Translate CSI.md into Chinese
What is the link to the Apache JIRA
HDDS-4076
How was this patch tested?
No need