[
https://issues.apache.org/jira/browse/FLINK-10865?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16699319#comment-16699319
]
ASF GitHub Bot commented on FLINK-10865:
----------------------------------------
StefanRRichter commented on a change in pull request #7123: [FLINK-10865] Add
Aliyun OSS file systems without Hadoop dependencies
URL: https://github.com/apache/flink/pull/7123#discussion_r236345238
##########
File path: docs/ops/deployment/oss.md
##########
@@ -0,0 +1,233 @@
+---
+title: "Aliyun Open Storage Service (OSS)"
+nav-title: Aliyun OSS
+nav-parent_id: deployment
+nav-pos: 9
+---
+<!--
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements. See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership. The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing,
+software distributed under the License is distributed on an
+"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+KIND, either express or implied. See the License for the
+specific language governing permissions and limitations
+under the License.
+-->
+
+* ToC
+{:toc}
+
+
+## OSS: Open Storage Service
+
+[Aliyun Open Storage Service](https://www.aliyun.com/product/oss) (Aliyun OSS)
is widely used especially among China’s cloud users, and it provides cloud
object storage for a variety of use cases.
+
+[Hadoop file
system](http://hadoop.apache.org/docs/current/hadoop-aliyun/tools/hadoop-aliyun/index.html)
supports OSS since version 2.9.1. Now, you can also use OSS with Fink for
**reading** and **writing data**.
+
+You can access OSS objects like this:
+
+{% highlight plain %}
+oss://<your-bucket>/<object-name>
+{% endhighlight %}
+
+Below shows how to use OSS with Flink:
+
+{% highlight java %}
+// Read from OSS bucket
+env.readTextFile("oss://<your-bucket>/<object-name>");
+
+// Write to OSS bucket
+dataSet.writeAsText("oss://<your-bucket>/<object-name>")
+
+{% endhighlight %}
+
+There are two ways to use OSS with Flink, our shaded `flink-oss-fs-hadoop`
will cover most scenarios. However, you may need to set up a specific Hadoop
OSS FileSystem implementation if you want use OSS as YARN's resource storage
dir([This patch](https://issues.apache.org/jira/browse/HADOOP-15919) enables
YARN to use OSS). Both ways are described below.
+
+### Shaded Hadoop OSS file system (recommended)
+
+In order to use `flink-oss-fs-hadoop`, copy the respective JAR file from the
opt directory to the lib directory of your Flink distribution before starting
Flink, e.g.
+
+{% highlight bash %}
+cp ./opt/flink-oss-fs-hadoop-{{ site.version }}.jar ./lib/
+{% endhighlight %}
+
+`flink-oss-fs-hadoop` registers default FileSystem wrappers for URIs with the
oss:// scheme.
+
+#### Configurations setup
+After setting up the OSS FileSystem wrapper, you need to add some
configurations to make sure that Flink is allowed to access your OSS buckets.
+
+In order to use OSS with Flink more easily, you can use the same configuration
keys in `flink-conf.yaml` with which in Hadoop's `core-site.xml`
Review comment:
the same configuration keys ... **as in** Hadoop's ...
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
> Implement Flink's own Aliyun OSS filesystem
> -------------------------------------------
>
> Key: FLINK-10865
> URL: https://issues.apache.org/jira/browse/FLINK-10865
> Project: Flink
> Issue Type: New Feature
> Components: filesystem-connector
> Affects Versions: 1.6.2
> Reporter: wujinhu
> Priority: Major
> Labels: pull-request-available
>
> Aliyun OSS is widely used among China’s cloud users, and Hadoop supports
> Aliyun OSS since 2.9.1.
> Open this jira to wrap AliyunOSSFileSystem in flink(similar to s3 support),
> so that user can read from & write to OSS more easily in flink.
>
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)