You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flink.apache.org by ja...@apache.org on 2020/03/05 03:44:23 UTC

[flink] 01/02: [FLINK-16133][docs-zh] Translate /ops/filesystems/azure.zh.md

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

jark pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/flink.git

commit 59b65844e285009b60dd9481dd2aec0458dd7094
Author: Qingsheng Ren <re...@gmail.com>
AuthorDate: Thu Feb 27 15:54:33 2020 +0800

    [FLINK-16133][docs-zh] Translate /ops/filesystems/azure.zh.md
    
    This closes #11232
---
 docs/ops/filesystems/azure.md    |  4 ++--
 docs/ops/filesystems/azure.zh.md | 40 +++++++++++++++++-----------------------
 2 files changed, 19 insertions(+), 25 deletions(-)

diff --git a/docs/ops/filesystems/azure.md b/docs/ops/filesystems/azure.md
index d63c9d6..e24b112 100644
--- a/docs/ops/filesystems/azure.md
+++ b/docs/ops/filesystems/azure.md
@@ -53,7 +53,7 @@ env.setStateBackend(new FsStateBackend("wasb://<your-container>@$<your-azure-acc
 
 ### Shaded Hadoop Azure Blob Storage file system
 
-To use `flink-azure-fs-hadoop,` copy the respective JAR file from the `opt` directory to the `plugins` directory of your Flink distribution before starting Flink, e.g.
+To use `flink-azure-fs-hadoop`, copy the respective JAR file from the `opt` directory to the `plugins` directory of your Flink distribution before starting Flink, e.g.
 
 {% highlight bash %}
 mkdir ./plugins/azure-fs-hadoop
@@ -74,7 +74,7 @@ in `flink-conf.yaml` via:
 fs.azure.account.key.<account_name>.blob.core.windows.net: <azure_storage_key>
 {% endhighlight %}
 
-Alternatively, the the filesystem can be configured to read the Azure Blob Storage key from an 
+Alternatively, the filesystem can be configured to read the Azure Blob Storage key from an 
 environment variable `AZURE_STORAGE_KEY` by setting the following configuration keys in 
 `flink-conf.yaml`.  
 
diff --git a/docs/ops/filesystems/azure.zh.md b/docs/ops/filesystems/azure.zh.md
index 4d81b55..0257bd8 100644
--- a/docs/ops/filesystems/azure.zh.md
+++ b/docs/ops/filesystems/azure.zh.md
@@ -1,6 +1,6 @@
 ---
-title: "Azure Blob Storage"
-nav-title: Azure Blob Storage
+title: "Azure Blob 存储"
+nav-title: Azure Blob 存储
 nav-parent_id: filesystems
 nav-pos: 3
 ---
@@ -23,60 +23,54 @@ specific language governing permissions and limitations
 under the License.
 -->
 
-[Azure Blob Storage](https://docs.microsoft.com/en-us/azure/storage/) is a Microsoft-managed service providing cloud storage for a variety of use cases.
-You can use Azure Blob Storage with Flink for **reading** and **writing data** as well in conjunction with the [streaming **state backends**]({{ site.baseurl }}/ops/state/state_backends.html)  
+[Azure Blob 存储](https://docs.microsoft.com/en-us/azure/storage/) 是一项由 Microsoft 管理的服务,能提供多种应用场景下的云存储。
+Azure Blob 存储可与 Flink 一起使用以**读取**和**写入数据**,以及与[流 State Backend]({{ site.baseurl }}/zh/ops/state/state_backends.html) 结合使用。
 
 * This will be replaced by the TOC
 {:toc}
 
-You can use Azure Blob Storage objects like regular files by specifying paths in the following format:
+通过以下格式指定路径,Azure Blob 存储对象可类似于普通文件使用:
 
 {% highlight plain %}
 wasb://<your-container>@$<your-azure-account>.blob.core.windows.net/<object-path>
 
-// SSL encrypted access
+// SSL 加密访问
 wasbs://<your-container>@$<your-azure-account>.blob.core.windows.net/<object-path>
 {% endhighlight %}
 
-See below for how to use Azure Blob Storage in a Flink job:
+参见以下代码了解如何在 Flink 作业中使用 Azure Blob 存储:
 
 {% highlight java %}
-// Read from Azure Blob storage
+// 读取 Azure Blob 存储
 env.readTextFile("wasb://<your-container>@$<your-azure-account>.blob.core.windows.net/<object-path>");
 
-// Write to Azure Blob storage
+// 写入 Azure Blob 存储
 stream.writeAsText("wasb://<your-container>@$<your-azure-account>.blob.core.windows.net/<object-path>")
 
-// Use Azure Blob Storage as FsStatebackend
+// 将 Azure Blob 存储用作 FsStatebackend
 env.setStateBackend(new FsStateBackend("wasb://<your-container>@$<your-azure-account>.blob.core.windows.net/<object-path>"));
 {% endhighlight %}
 
-### Shaded Hadoop Azure Blob Storage file system
+### Shaded Hadoop Azure Blob 存储文件系统
 
-To use `flink-azure-fs-hadoop,` copy the respective JAR file from the `opt` directory to the `plugins` directory of your Flink distribution before starting Flink, e.g.
+为使用 flink-azure-fs-hadoop,在启动 Flink 之前,将对应的 JAR 文件从 opt 目录复制到 Flink 发行版中的 plugin 目录下的一个文件夹中,例如:
 
 {% highlight bash %}
 mkdir ./plugins/azure-fs-hadoop
 cp ./opt/flink-azure-fs-hadoop-{{ site.version }}.jar ./plugins/azure-fs-hadoop/
 {% endhighlight %}
 
-`flink-azure-fs-hadoop` registers default FileSystem wrappers for URIs with the *wasb://* and *wasbs://* (SSL encrypted access) scheme.
+`flink-azure-fs-hadoop` 为使用 *wasb://* 和 *wasbs://* (SSL 加密访问) 的 URI 注册了默认的文件系统包装器。
 
-### Credentials Configuration
-
-Hadoop's Azure Filesystem supports configuration of credentials via the Hadoop configuration as
-outlined in the [Hadoop Azure Blob Storage documentation](https://hadoop.apache.org/docs/current/hadoop-azure/index.html#Configuring_Credentials).
-For convenience Flink forwards all Flink configurations with a key prefix of `fs.azure` to the
-Hadoop configuration of the filesystem. Consequentially, the azure blob storage key can be configured
-in `flink-conf.yaml` via:
+### 凭据配置
+Hadoop 的 Azure 文件系统支持通过 Hadoop 配置来配置凭据,如 [Hadoop Azure Blob Storage 文档](https://hadoop.apache.org/docs/current/hadoop-azure/index.html#Configuring_Credentials) 所述。
+为方便起见,Flink 将所有的 Flink 配置添加 `fs.azure` 键前缀后转发至文件系统的 Hadoop 配置中。因此,可通过以下方法在 `flink-conf.yaml` 中配置 Azure Blob 存储密钥:
 
 {% highlight yaml %}
 fs.azure.account.key.<account_name>.blob.core.windows.net: <azure_storage_key>
 {% endhighlight %}
 
-Alternatively, the the filesystem can be configured to read the Azure Blob Storage key from an
-environment variable `AZURE_STORAGE_KEY` by setting the following configuration keys in
-`flink-conf.yaml`.
+或者通过在 `flink-conf.yaml` 中设置以下配置键,将文件系统配置为从环境变量 `AZURE_STORAGE_KEY` 读取 Azure Blob 存储密钥:
 
 {% highlight yaml %}
 fs.azure.account.keyprovider.<account_name>.blob.core.windows.net: org.apache.flink.fs.azurefs.EnvironmentVariableKeyProvider