Github user pwendell commented on a diff in the pull request:

    https://github.com/apache/spark/pull/2298#discussion_r17220905
  
    --- Diff: docs/storage-openstack-swift.md ---
    @@ -0,0 +1,152 @@
    +---
    +layout: global
    +title: Accessing OpenStack Swift from Spark
    +---
    +
    +Spark's support for Hadoop InputFormat allows it to process data in 
OpenStack Swift using the
    +same URI formats as in Hadoop. You can specify a path in Swift as input 
through a 
    +URI of the form <code>swift://container.PROVIDER/path</code>. You will 
also need to set your 
    +Swift security credentials, through <code>core-site.xml</code> or via
    +<code>SparkContext.hadoopConfiguration</code>.
    +Current Swift driver requires Swift to use Keystone authentication method.
    +
    +# Configuring Swift for Better Data Locality
    +
    +Although not mandatory, it is recommended to configure the proxy server of 
Swift with
    +<code>list_endpoints</code> to have better data locality. More information 
is
    +[available 
here](https://github.com/openstack/swift/blob/master/swift/common/middleware/list_endpoints.py).
    +
    +
    +# Dependencies
    +
    +The Spark application should include <code>hadoop-openstack</code> 
dependency.
    +For example, for Maven support, add the following to the 
<code>pom.xml</code> file:
    +
    +{% highlight xml %}
    +<dependencyManagement>
    +  ...
    +  <dependency>
    +    <groupId>org.apache.hadoop</groupId>
    +    <artifactId>hadoop-openstack</artifactId>
    +    <version>2.3.0</version>
    +  </dependency>
    +  ...
    +</dependencyManagement>
    +{% endhighlight %}
    +
    +
    +# Configuration Parameters
    +
    +Create <code>core-site.xml</code> and place it inside 
<code>/spark/conf</code> directory.
    --- End diff --
    
    i agree


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to