klion26 commented on a change in pull request #13279:
URL: https://github.com/apache/flink/pull/13279#discussion_r482906413
##########
File path: docs/ops/deployment/local.zh.md
##########
@@ -122,38 +121,38 @@ INFO ... - Recovering all persisted jobs.
INFO ... - Registering TaskManager ... at ResourceManager
{% endhighlight %}
-#### Windows Cygwin Users
+#### Windows Cygwin 用户
-If you are installing Flink from the git repository and you are using the
Windows git shell, Cygwin can produce a failure similar to this one:
+如果你使用 Windows 的 git shell 从 git 仓库安装 Flink,Cygwin 可能会产生类似如下的错误:
{% highlight bash %}
c:/flink/bin/start-cluster.sh: line 30: $'\r': command not found
{% endhighlight %}
-This error occurs because git is automatically transforming UNIX line endings
to Windows style line endings when running in Windows. The problem is that
Cygwin can only deal with UNIX style line endings. The solution is to adjust
the Cygwin settings to deal with the correct line endings by following these
three steps:
+这个错误是因为当 git 运行在 Windows 上时,它会自动地将 UNIX 的行结束符转换成 Windows 风格的行结束符,但是 Cygwin
只能处理 Unix 风格的行结束符。解决方案是通过以下三步调整 Cygwin 的配置,使其能够正确处理行结束符:
-1. Start a Cygwin shell.
+1. 启动 Cygwin shell。
-2. Determine your home directory by entering
+2. 输入以下命令进入你的家目录
{% highlight bash %}
cd; pwd
{% endhighlight %}
- This will return a path under the Cygwin root path.
+ 这个命令会在 Cygwin 的根目录下返回路径地址。
-3. Using NotePad, WordPad or a different text editor open the file
`.bash_profile` in the home directory and append the following: (If the file
does not exist you will have to create it)
+3. 使用 NotePad、WordPad 或其他的文本编辑器在家目录下打开 `.bash_profile`
文件并添加以下内容:(如果这个文件不存在则需要创建)
{% highlight bash %}
export SHELLOPTS
set -o igncr
{% endhighlight %}
-Save the file and open a new bash shell.
+保存文件并打开一个新的 bash shell。
-### Stop a Local Flink Cluster
+### 关闭 Flink 本地集群
Review comment:
标题翻译后,需要添加一些 `<a>` 的标签[1],这样还可以继续使用原来的链接链到当前位置。
对于添加的 `<a>` 标签有个小技巧,可以打开英文版的,然后点击到对应标题,然后根据 url 中的字符来更新对应的 `<a>` 标签
[1]
https://cwiki.apache.org/confluence/display/FLINK/Flink+Translation+Specifications
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]