spark-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Akhil Das <ak...@sigmoidanalytics.com>
Subject Re: Forbidded : Error Code: 403
Date Sun, 17 May 2015 15:21:19 GMT
I think you can try this way also:

DataFrame df = sqlContext.load("s3n://ACCESS-KEY:SECRET-KEY@bucket-name/file.avro",
"com.databricks.spark.avro");


Thanks
Best Regards

On Sat, May 16, 2015 at 2:02 AM, Mohammad Tariq <dontariq@gmail.com> wrote:

> Thanks for the suggestion Steve. I'll try that out.
>
> Read the long story last night while struggling with this :). I made sure
> that I don't have any '/' in my key.
>
> On Saturday, May 16, 2015, Steve Loughran <stevel@hortonworks.com> wrote:
>
>>
>> > On 15 May 2015, at 21:20, Mohammad Tariq <dontariq@gmail.com> wrote:
>> >
>> > Thank you Ayan and Ted for the prompt response. It isn't working with
>> s3n either.
>> >
>> > And I am able to download the file. In fact I am able to read the same
>> file using s3 API without any issue.
>> >
>>
>>
>> sounds like an S3n config problem. Check your configurations - you can
>> test locally via the hdfs dfs command without even starting spark
>>
>>  Oh, and if there is a "/" in your secret key, you're going to to need to
>> generate new one. Long story
>>
>
>
> --
>
> [image: http://]
> Tariq, Mohammad
> about.me/mti
> [image: http://]
> <http://about.me/mti>
>
>
>

Mime
View raw message