You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@spark.apache.org by Nicholas Chammas <ni...@gmail.com> on 2015/05/07 18:25:41 UTC
Spark 1.3.1 / Hadoop 2.6 package has broken S3 access
Details are here: https://issues.apache.org/jira/browse/SPARK-7442
It looks like something specific to building against Hadoop 2.6?
Nick
Re: Spark 1.3.1 / Hadoop 2.6 package has broken S3 access
Posted by Imran Rashid <ir...@cloudera.com>.
On Fri, May 8, 2015 at 4:16 AM, Steve Loughran <st...@hortonworks.com>
wrote:
> Would there be a place in the code tree for some tests to run against
> things like this? They're cloud integration tests rather than unit tests
> and nobody would want them to be on by default, but it could be good for
> regression testing hadoop s3 support & spark integration
we could re-open https://issues.apache.org/jira/browse/SPARK-4746
part of the point of going with tags instead of just unit / integration
dichotomy was to give us flexibility to add things like this
the basic prototyping for it is done, needs to be brought up to date and
polished.
Re: Spark 1.3.1 / Hadoop 2.6 package has broken S3 access
Posted by Steve Loughran <st...@hortonworks.com>.
> 2. I can add a hadoop-2.6 profile that sets things up for s3a, azure and openstack swift.
Added:
https://issues.apache.org/jira/browse/SPARK-7481
One thing to consider here is testing; the s3x clients themselves have some tests that individuals/orgs can run against different S3 installations & private versions; people publish their results to see that there's been good coverage of the different S3 installations with their different consistency models & auth mechanisms.
There's also some scale tests that take time & don't get run so often but which throw up surprises (RAX UK throttling DELETE, intermittent ConnectionReset exceptions reading multi-GB s3 files).
Amazon have some public datasets that could be used to verify that spark can read files off S3, and maybe even find some of the scale problems.
In particular, http://datasets.elasticmapreduce.s3.amazonaws.com/ publishes ngrams as a set of .gz files free for all to read
Would there be a place in the code tree for some tests to run against things like this? They're cloud integration tests rather than unit tests and nobody would want them to be on by default, but it could be good for regression testing hadoop s3 support & spark integration
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@spark.apache.org
For additional commands, e-mail: dev-help@spark.apache.org
Re: Spark 1.3.1 / Hadoop 2.6 package has broken S3 access
Posted by Steve Loughran <st...@hortonworks.com>.
> On 7 May 2015, at 18:02, Matei Zaharia <ma...@gmail.com> wrote:
>
> We should make sure to update our docs to mention s3a as well, since many people won't look at Hadoop's docs for this.
>
> Matei
>
1. to use s3a you'll also need an amazon toolkit JAR on the cp
2. I can add a hadoop-2.6 profile that sets things up for s3a, azure and openstack swift.
3. TREAT S3A on HADOOP 2.6 AS BETA-RELEASE
For anyone thinking putting that in all-caps seems excessive, consult
https://issues.apache.org/jira/browse/HADOOP-11571
in particular, anything that queries for the block size of a file before dividing work up is dead in the water due to
HADOOP-11584 : s3a file block size set to 0 in getFileStatus. There's also thread pooling problems if too many
writes are going on in the same JVM; this may hit output operations
Hadoop 2.7 fixes all the phase I issues, leaving those in HADOOP-11694 to look at
>> On May 7, 2015, at 12:57 PM, Nicholas Chammas <ni...@gmail.com> wrote:
>>
>> Ah, thanks for the pointers.
>>
>> So as far as Spark is concerned, is this a breaking change? Is it possible
>> that people who have working code that accesses S3 will upgrade to use
>> Spark-against-Hadoop-2.6 and find their code is not working all of a sudden?
>>
>> Nick
>>
>> On Thu, May 7, 2015 at 12:48 PM Peter Rudenko <petro.rudenko@gmail.com <ma...@gmail.com>>
>> wrote:
>>
>>> Yep it's a Hadoop issue:
>>> https://issues.apache.org/jira/browse/HADOOP-11863
>>>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@spark.apache.org
For additional commands, e-mail: dev-help@spark.apache.org
Re: Spark 1.3.1 / Hadoop 2.6 package has broken S3 access
Posted by Matei Zaharia <ma...@gmail.com>.
We should make sure to update our docs to mention s3a as well, since many people won't look at Hadoop's docs for this.
Matei
> On May 7, 2015, at 12:57 PM, Nicholas Chammas <ni...@gmail.com> wrote:
>
> Ah, thanks for the pointers.
>
> So as far as Spark is concerned, is this a breaking change? Is it possible
> that people who have working code that accesses S3 will upgrade to use
> Spark-against-Hadoop-2.6 and find their code is not working all of a sudden?
>
> Nick
>
> On Thu, May 7, 2015 at 12:48 PM Peter Rudenko <petro.rudenko@gmail.com <ma...@gmail.com>>
> wrote:
>
>> Yep it's a Hadoop issue:
>> https://issues.apache.org/jira/browse/HADOOP-11863
>>
>>
>> http://mail-archives.apache.org/mod_mbox/hadoop-user/201504.mbox/%3CCA+XUwYxPxLkfhOxn1jNkoUKEQQMcPWFzvXJ=u+kP28KDEjO4GQ@mail.gmail.com%3E
>> http://stackoverflow.com/a/28033408/3271168
>>
>>
>> So for now need to manually add that jar to classpath on hadoop-2.6.
>>
>> Thanks,
>> Peter Rudenko
>>
>> On 2015-05-07 19:41, Nicholas Chammas wrote:
>>
>> I can try that, but the issue is I understand this is supposed to work out
>> of the box (like it does with all the other Spark/Hadoop pre-built
>> packages).
>>
>> On Thu, May 7, 2015 at 12:35 PM Peter Rudenko <pe...@gmail.com>
>> wrote:
>>
>>> Try to download this jar:
>>>
>>> http://search.maven.org/remotecontent?filepath=org/apache/hadoop/hadoop-aws/2.6.0/hadoop-aws-2.6.0.jar <http://search.maven.org/remotecontent?filepath=org/apache/hadoop/hadoop-aws/2.6.0/hadoop-aws-2.6.0.jar>
>>>
>>> And add:
>>>
>>> export CLASSPATH=$CLASSPATH:hadoop-aws-2.6.0.jar
>>>
>>> And try to relaunch.
>>>
>>> Thanks,
>>> Peter Rudenko
>>>
>>>
>>> On 2015-05-07 19:30, Nicholas Chammas wrote:
>>>
>>> Hmm, I just tried changing s3n to s3a:
>>>
>>> py4j.protocol.Py4JJavaError: An error occurred while calling z:org.apache.spark.api.python.PythonRDD.collectAndServe.
>>> : java.lang.RuntimeException: java.lang.ClassNotFoundException: Class org.apache.hadoop.fs.s3a.S3AFileSystem not found
>>>
>>> Nick
>>>
>>>
>>> On Thu, May 7, 2015 at 12:29 PM Peter Rudenko <petro.rudenko@gmail.com <ma...@gmail.com>>
>>> wrote:
>>>
>>>> Hi Nick, had the same issue.
>>>> By default it should work with s3a protocol:
>>>>
>>>> sc.textFile('s3a://bucket/file_*').count()
>>>>
>>>>
>>>> If you want to use s3n protocol you need to add hadoop-aws.jar to
>>>> spark's classpath. Wich hadoop vendor (Hortonworks, Cloudera, MapR) do you
>>>> use?
>>>>
>>>> Thanks,
>>>> Peter Rudenko
>>>>
>>>> On 2015-05-07 19:25, Nicholas Chammas wrote:
>>>>
>>>> Details are here: https://issues.apache.org/jira/browse/SPARK-7442
>>>>
>>>> It looks like something specific to building against Hadoop 2.6?
>>>>
>>>> Nick
Re: Spark 1.3.1 / Hadoop 2.6 package has broken S3 access
Posted by Nicholas Chammas <ni...@gmail.com>.
Ah, thanks for the pointers.
So as far as Spark is concerned, is this a breaking change? Is it possible
that people who have working code that accesses S3 will upgrade to use
Spark-against-Hadoop-2.6 and find their code is not working all of a sudden?
Nick
On Thu, May 7, 2015 at 12:48 PM Peter Rudenko <pe...@gmail.com>
wrote:
> Yep it's a Hadoop issue:
> https://issues.apache.org/jira/browse/HADOOP-11863
>
>
> http://mail-archives.apache.org/mod_mbox/hadoop-user/201504.mbox/%3CCA+XUwYxPxLkfhOxn1jNkoUKEQQMcPWFzvXJ=u+kP28KDEjO4GQ@mail.gmail.com%3E
> http://stackoverflow.com/a/28033408/3271168
>
>
> So for now need to manually add that jar to classpath on hadoop-2.6.
>
> Thanks,
> Peter Rudenko
>
> On 2015-05-07 19:41, Nicholas Chammas wrote:
>
> I can try that, but the issue is I understand this is supposed to work out
> of the box (like it does with all the other Spark/Hadoop pre-built
> packages).
>
> On Thu, May 7, 2015 at 12:35 PM Peter Rudenko <pe...@gmail.com>
> wrote:
>
>> Try to download this jar:
>>
>> http://search.maven.org/remotecontent?filepath=org/apache/hadoop/hadoop-aws/2.6.0/hadoop-aws-2.6.0.jar
>>
>> And add:
>>
>> export CLASSPATH=$CLASSPATH:hadoop-aws-2.6.0.jar
>>
>> And try to relaunch.
>>
>> Thanks,
>> Peter Rudenko
>>
>>
>> On 2015-05-07 19:30, Nicholas Chammas wrote:
>>
>> Hmm, I just tried changing s3n to s3a:
>>
>> py4j.protocol.Py4JJavaError: An error occurred while calling z:org.apache.spark.api.python.PythonRDD.collectAndServe.
>> : java.lang.RuntimeException: java.lang.ClassNotFoundException: Class org.apache.hadoop.fs.s3a.S3AFileSystem not found
>>
>> Nick
>>
>>
>> On Thu, May 7, 2015 at 12:29 PM Peter Rudenko <pe...@gmail.com>
>> wrote:
>>
>>> Hi Nick, had the same issue.
>>> By default it should work with s3a protocol:
>>>
>>> sc.textFile('s3a://bucket/file_*').count()
>>>
>>>
>>> If you want to use s3n protocol you need to add hadoop-aws.jar to
>>> spark's classpath. Wich hadoop vendor (Hortonworks, Cloudera, MapR) do you
>>> use?
>>>
>>> Thanks,
>>> Peter Rudenko
>>>
>>> On 2015-05-07 19:25, Nicholas Chammas wrote:
>>>
>>> Details are here: https://issues.apache.org/jira/browse/SPARK-7442
>>>
>>> It looks like something specific to building against Hadoop 2.6?
>>>
>>> Nick
>>>
>>>
>>>
>>>
>>
>
Re: Spark 1.3.1 / Hadoop 2.6 package has broken S3 access
Posted by Peter Rudenko <pe...@gmail.com>.
Yep it's a Hadoop issue: https://issues.apache.org/jira/browse/HADOOP-11863
http://mail-archives.apache.org/mod_mbox/hadoop-user/201504.mbox/%3CCA+XUwYxPxLkfhOxn1jNkoUKEQQMcPWFzvXJ=u+kP28KDEjO4GQ@mail.gmail.com%3E
http://stackoverflow.com/a/28033408/3271168
So for now need to manually add that jar to classpath on hadoop-2.6.
Thanks,
Peter Rudenko
On 2015-05-07 19:41, Nicholas Chammas wrote:
> I can try that, but the issue is I understand this is supposed to work
> out of the box (like it does with all the other Spark/Hadoop pre-built
> packages).
>
> On Thu, May 7, 2015 at 12:35 PM Peter Rudenko <petro.rudenko@gmail.com
> <ma...@gmail.com>> wrote:
>
> Try to download this jar:
> http://search.maven.org/remotecontent?filepath=org/apache/hadoop/hadoop-aws/2.6.0/hadoop-aws-2.6.0.jar
>
> And add:
>
> export CLASSPATH=$CLASSPATH:hadoop-aws-2.6.0.jar
>
> And try to relaunch.
>
> Thanks,
> Peter Rudenko
>
>
> On 2015-05-07 19:30, Nicholas Chammas wrote:
>>
>> Hmm, I just tried changing |s3n| to |s3a|:
>>
>> |py4j.protocol.Py4JJavaError: An error occurred while calling
>> z:org.apache.spark.api.python.PythonRDD.collectAndServe. :
>> java.lang.RuntimeException: java.lang.ClassNotFoundException:
>> Class org.apache.hadoop.fs.s3a.S3AFileSystem not found |
>>
>> Nick
>>
>>
>>
>> On Thu, May 7, 2015 at 12:29 PM Peter Rudenko
>> <petro.rudenko@gmail.com <ma...@gmail.com>> wrote:
>>
>> Hi Nick, had the same issue.
>> By default it should work with s3a protocol:
>>
>> sc.textFile('s3a://bucket/file_*').count()
>>
>>
>> If you want to use s3n protocol you need to add
>> hadoop-aws.jar to spark's classpath. Wich hadoop vendor
>> (Hortonworks, Cloudera, MapR) do you use?
>>
>> Thanks,
>> Peter Rudenko
>>
>> On 2015-05-07 19:25, Nicholas Chammas wrote:
>>> Details are here:https://issues.apache.org/jira/browse/SPARK-7442
>>>
>>> It looks like something specific to building against Hadoop 2.6?
>>>
>>> Nick
>>>
>>
>
Re: Spark 1.3.1 / Hadoop 2.6 package has broken S3 access
Posted by Nicholas Chammas <ni...@gmail.com>.
I can try that, but the issue is I understand this is supposed to work out
of the box (like it does with all the other Spark/Hadoop pre-built
packages).
On Thu, May 7, 2015 at 12:35 PM Peter Rudenko <pe...@gmail.com>
wrote:
> Try to download this jar:
>
> http://search.maven.org/remotecontent?filepath=org/apache/hadoop/hadoop-aws/2.6.0/hadoop-aws-2.6.0.jar
>
> And add:
>
> export CLASSPATH=$CLASSPATH:hadoop-aws-2.6.0.jar
>
> And try to relaunch.
>
> Thanks,
> Peter Rudenko
>
>
> On 2015-05-07 19:30, Nicholas Chammas wrote:
>
> Hmm, I just tried changing s3n to s3a:
>
> py4j.protocol.Py4JJavaError: An error occurred while calling z:org.apache.spark.api.python.PythonRDD.collectAndServe.
> : java.lang.RuntimeException: java.lang.ClassNotFoundException: Class org.apache.hadoop.fs.s3a.S3AFileSystem not found
>
> Nick
>
>
> On Thu, May 7, 2015 at 12:29 PM Peter Rudenko <pe...@gmail.com>
> wrote:
>
>> Hi Nick, had the same issue.
>> By default it should work with s3a protocol:
>>
>> sc.textFile('s3a://bucket/file_*').count()
>>
>>
>> If you want to use s3n protocol you need to add hadoop-aws.jar to spark's
>> classpath. Wich hadoop vendor (Hortonworks, Cloudera, MapR) do you use?
>>
>> Thanks,
>> Peter Rudenko
>>
>> On 2015-05-07 19:25, Nicholas Chammas wrote:
>>
>> Details are here: https://issues.apache.org/jira/browse/SPARK-7442
>>
>> It looks like something specific to building against Hadoop 2.6?
>>
>> Nick
>>
>>
>>
>>
>
Re: Spark 1.3.1 / Hadoop 2.6 package has broken S3 access
Posted by Peter Rudenko <pe...@gmail.com>.
Try to download this jar:
http://search.maven.org/remotecontent?filepath=org/apache/hadoop/hadoop-aws/2.6.0/hadoop-aws-2.6.0.jar
And add:
export CLASSPATH=$CLASSPATH:hadoop-aws-2.6.0.jar
And try to relaunch.
Thanks,
Peter Rudenko
On 2015-05-07 19:30, Nicholas Chammas wrote:
>
> Hmm, I just tried changing |s3n| to |s3a|:
>
> |py4j.protocol.Py4JJavaError: An error occurred while calling
> z:org.apache.spark.api.python.PythonRDD.collectAndServe. :
> java.lang.RuntimeException: java.lang.ClassNotFoundException: Class
> org.apache.hadoop.fs.s3a.S3AFileSystem not found |
>
> Nick
>
>
>
> On Thu, May 7, 2015 at 12:29 PM Peter Rudenko <petro.rudenko@gmail.com
> <ma...@gmail.com>> wrote:
>
> Hi Nick, had the same issue.
> By default it should work with s3a protocol:
>
> sc.textFile('s3a://bucket/file_*').count()
>
>
> If you want to use s3n protocol you need to add hadoop-aws.jar to
> spark's classpath. Wich hadoop vendor (Hortonworks, Cloudera,
> MapR) do you use?
>
> Thanks,
> Peter Rudenko
>
> On 2015-05-07 19:25, Nicholas Chammas wrote:
>> Details are here:https://issues.apache.org/jira/browse/SPARK-7442
>>
>> It looks like something specific to building against Hadoop 2.6?
>>
>> Nick
>>
>
Re: Spark 1.3.1 / Hadoop 2.6 package has broken S3 access
Posted by Nicholas Chammas <ni...@gmail.com>.
Hmm, I just tried changing s3n to s3a:
py4j.protocol.Py4JJavaError: An error occurred while calling
z:org.apache.spark.api.python.PythonRDD.collectAndServe.
: java.lang.RuntimeException: java.lang.ClassNotFoundException: Class
org.apache.hadoop.fs.s3a.S3AFileSystem not found
Nick
On Thu, May 7, 2015 at 12:29 PM Peter Rudenko <pe...@gmail.com>
wrote:
> Hi Nick, had the same issue.
> By default it should work with s3a protocol:
>
> sc.textFile('s3a://bucket/file_*').count()
>
>
> If you want to use s3n protocol you need to add hadoop-aws.jar to spark's
> classpath. Wich hadoop vendor (Hortonworks, Cloudera, MapR) do you use?
>
> Thanks,
> Peter Rudenko
>
> On 2015-05-07 19:25, Nicholas Chammas wrote:
>
> Details are here: https://issues.apache.org/jira/browse/SPARK-7442
>
> It looks like something specific to building against Hadoop 2.6?
>
> Nick
>
>
>
>
Re: Spark 1.3.1 / Hadoop 2.6 package has broken S3 access
Posted by Peter Rudenko <pe...@gmail.com>.
Hi Nick, had the same issue.
By default it should work with s3a protocol:
sc.textFile('s3a://bucket/file_*').count()
If you want to use s3n protocol you need to add hadoop-aws.jar to
spark's classpath. Wich hadoop vendor (Hortonworks, Cloudera, MapR) do
you use?
Thanks,
Peter Rudenko
On 2015-05-07 19:25, Nicholas Chammas wrote:
> Details are here: https://issues.apache.org/jira/browse/SPARK-7442
>
> It looks like something specific to building against Hadoop 2.6?
>
> Nick
>
Re: Spark 1.3.1 / Hadoop 2.6 package has broken S3 access
Posted by Reynold Xin <rx...@databricks.com>.
Is this related to s3a update in 2.6?
On Thursday, May 7, 2015, Nicholas Chammas <ni...@gmail.com>
wrote:
> Details are here: https://issues.apache.org/jira/browse/SPARK-7442
>
> It looks like something specific to building against Hadoop 2.6?
>
> Nick
>