You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Xin Ren (JIRA)" <ji...@apache.org> on 2016/01/27 19:47:39 UTC

[jira] [Updated] (SPARK-13044) saveAsTextFile() failed to save file to AWS S3 EU-Frankfort

     [ https://issues.apache.org/jira/browse/SPARK-13044?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Xin Ren updated SPARK-13044:
----------------------------
    Description: 
I have two clusters deployed: US and EU-Frankfort with the same configs on AWS. 

And the application in EU-Frankfort cannot save data to EU-Frankfort-s3, but US one can save to US-s3.

And I checked and found that EU-Frankfort supports Signature Version 4 only: http://docs.aws.amazon.com/general/latest/gr/rande.html#s3_region

Code I'm using:
{code:java}
val s3WriteEndpoint = "s3n://access_key:secret_key@bucket_name/data/12345"
rdd.saveAsTextFile(s3WriteEndpoint)
{code}

So from my issue I guess saveAsTextFile() is using Signature Version 2? How to support Version 4?

I tried to dig into code
https://github.com/apache/spark/blob/f14922cff84b1e0984ba4597d764615184126bdc/core/src/main/scala/org/apache/spark/rdd/RDD.scala

  was:
I have two clusters deployed: US and EU-Frankfort with the same configs on AWS. 

And the application in EU-Frankfort cannot save data to EU-s3, but US one can save to US-s3.

And we checked and found that EU-Frankfort supports Signature Version 4 only: http://docs.aws.amazon.com/general/latest/gr/rande.html#s3_region

Code I'm using:
{code:java}
val s3WriteEndpoint = "s3n://access_key:secret_key@bucket_name/data/12345"
rdd.saveAsTextFile(s3WriteEndpoint)
{code}

So from my issue I guess saveAsTextFile() is using Signature Version 2? How to support Version 4?

I tried to dig into code
https://github.com/apache/spark/blob/f14922cff84b1e0984ba4597d764615184126bdc/core/src/main/scala/org/apache/spark/rdd/RDD.scala


> saveAsTextFile() failed to save file to AWS S3 EU-Frankfort
> -----------------------------------------------------------
>
>                 Key: SPARK-13044
>                 URL: https://issues.apache.org/jira/browse/SPARK-13044
>             Project: Spark
>          Issue Type: Bug
>    Affects Versions: 1.4.0
>         Environment: CentOS
>            Reporter: Xin Ren
>              Labels: aws-s3
>
> I have two clusters deployed: US and EU-Frankfort with the same configs on AWS. 
> And the application in EU-Frankfort cannot save data to EU-Frankfort-s3, but US one can save to US-s3.
> And I checked and found that EU-Frankfort supports Signature Version 4 only: http://docs.aws.amazon.com/general/latest/gr/rande.html#s3_region
> Code I'm using:
> {code:java}
> val s3WriteEndpoint = "s3n://access_key:secret_key@bucket_name/data/12345"
> rdd.saveAsTextFile(s3WriteEndpoint)
> {code}
> So from my issue I guess saveAsTextFile() is using Signature Version 2? How to support Version 4?
> I tried to dig into code
> https://github.com/apache/spark/blob/f14922cff84b1e0984ba4597d764615184126bdc/core/src/main/scala/org/apache/spark/rdd/RDD.scala



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org