druid icon indicating copy to clipboard operation
druid copied to clipboard

Consider including hadoop-aws in the lib folder

Open priteshwatch opened this issue 10 years ago • 20 comments

https://mvnrepository.com/artifact/org.apache.hadoop/hadoop-aws/2.6.0

S3 ingestion does not work without this library in the lib folder, as far as I can tell.

priteshwatch avatar Sep 06 '16 23:09 priteshwatch

One year later same issue. Is there any reason for that? It's just 123 Kb.

artmoskvin avatar Oct 27 '17 16:10 artmoskvin

This appears to still be the case.

Can anyone shed any light on why it's not there?

wooly avatar Jan 18 '18 23:01 wooly

+1

shaharck avatar Aug 28 '18 16:08 shaharck

This issue has been marked as stale due to 280 days of inactivity. It will be closed in 2 weeks if no further activity occurs. If this issue is still relevant, please simply write any comment. Even if closed, you can still revive the issue at any time or discuss it on the [email protected] list. Thank you for your contributions.

stale[bot] avatar Jun 20 '19 22:06 stale[bot]

This issue has been closed due to lack of activity. If you think that is incorrect, or the issue requires additional review, you can revive the issue at any time.

stale[bot] avatar Jul 04 '19 23:07 stale[bot]

this is still an issue

nishantmonu51 avatar Oct 29 '19 22:10 nishantmonu51

This issue is no longer marked as stale.

stale[bot] avatar Oct 29 '19 22:10 stale[bot]

This issue is no longer marked as stale.

stale[bot] avatar Oct 29 '19 22:10 stale[bot]

Stack trace when trying to use s3a

2019-10-29T21:59:00,942 INFO [forking-task-runner-0] 
org.apache.druid.indexing.overlord.ForkingTaskRunner - Exception caught during execution
java.lang.RuntimeException: java.lang.ClassNotFoundException: Class org.apache.hadoop.fs.s3a.S3AFileSystem not found
	at org.apache.hadoop.conf.Configuration.getClass(Configuration.java:2661) ~[?:?]
	at org.apache.hadoop.fs.FileSystem.getFileSystemClass(FileSystem.java:3307) ~[?:?]
	at org.apache.hadoop.fs.FileSystem.createFileSystem(FileSystem.java:3339) ~[?:?]
	at org.apache.hadoop.fs.FileSystem.access$200(FileSystem.java:137) ~[?:?]
	at org.apache.hadoop.fs.FileSystem$Cache.getInternal(FileSystem.java:3390) ~[?:?]

nishantmonu51 avatar Oct 29 '19 22:10 nishantmonu51

Is this a good idea? I think users should download the valid version of hadoop-aws.jar by themselves. They can use the pull-deps tool for it.

jihoonson avatar Oct 29 '19 22:10 jihoonson

Is this a good idea? I think users should download the valid version of hadoop-aws.jar by themselves. They can use the pull-deps tool for it.

Hmm, why not include it? We include the aws sdk in the s3 extensions bundled with Druid, it seems nice to include the hadoop version too.

gianm avatar Oct 30 '19 22:10 gianm

Hmm, why not include it? We include the aws sdk in the s3 extensions bundled with Druid, it seems nice to include the hadoop version too.

I think the packaged jars should be minimized and so include only mandatory ones. hadoop-aws is only useful when they want to deal with s3 via hdfs. It seems a sort of an extension of an extension to me.

jihoonson avatar Oct 30 '19 23:10 jihoonson

I think the packaged jars should be minimized and so include only mandatory ones. hadoop-aws is only useful when they want to deal with s3 via hdfs. It seems a sort of an extension of an extension to me.

Hmm, well, personally I think including it is nice, since it makes the app easier to use out of the box for AWS people and doesn't bloat the distribution too much. However, I would be ok not including it if we add something to the docs that says exactly what command to run to get hadoop-aws working properly. (These things are hard for users to figure out from first principles)

I'm ok with whatever y'all think is best (@jihoonson and @nishantmonu51) if you agree with each other. If not my vote goes to including the jar.

gianm avatar Oct 30 '19 23:10 gianm

I think it makes more sense to add to docs as for GCS (https://druid.apache.org/docs/latest/development/extensions-core/hdfs.html).

jihoonson avatar Oct 31 '19 00:10 jihoonson

I think it'd also be good to include hadoop-aws by default to improve the user experience — especially since the documentation for hadoop ingestion has examples that have paths in S3.

I also agree that S3 docs should be added to the HDFS page.

ccaominh avatar Nov 27 '19 17:11 ccaominh

I think it'd also be good to include hadoop-aws by default to improve the user experience — especially since the documentation for hadoop ingestion has examples that have paths in S3.

Particularly for the hadoop doc linked, I think the doc is wrong. The example should use hdfs instead of s3n.

I don't see much benefit for including hadoop-aws in lib. Isn't it enough if we add a doc saying "you need hadoop-aws.jar in your classpath and here is how you can get it using the pull-deps tool"? We currently have no hadoop-related jars under lib. All of them are under hadoop-dependencies or extensions/druid-hdfs-storage. I guess it could be another option to include hadoop-aws in druid-hdfs-storage.

jihoonson avatar Nov 27 '19 18:11 jihoonson

#8782 proposes adding hadoop-aws to extensions/druid-hdfs-storage.

ccaominh avatar Nov 27 '19 18:11 ccaominh

+1 for adding libs by default. People always seem to stumble on missing libs. It would be great to remove setup steps from documentation and making more things "work OOB" as much as possible.

On Wed, Nov 27, 2019 at 10:03 AM Jihoon Son [email protected] wrote:

I think it'd also be good to include hadoop-aws by default to improve the user experience — especially since the documentation for hadoop ingestion has examples that have paths in S3 https://druid.apache.org/docs/latest/ingestion/hadoop.html#inputspec.

Particularly for the hadoop doc linked, I think the doc is wrong. The example should use hdfs instead of s3n.

I don't see much benefit for including hadoop-aws in lib. Isn't it enough if we add a doc saying "you need hadoop-aws.jar in your classpath and here is how you can get it using the pull-deps tool"? We currently have no hadoop-related jars under lib. All of them are under hadoop-dependencies or extensions/druid-hdfs-storage. I guess it could be another option to include hadoop-aws in druid-hdfs-storage.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/apache/incubator-druid/issues/3435?email_source=notifications&email_token=AAPSYCWRRBTPOK3VVIJN2UTQV2ZA5A5CNFSM4COZRP22YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEFKKF4A#issuecomment-559194864, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAPSYCSE6YBUY2NFYBPWPGLQV2ZA5ANCNFSM4COZRP2Q .

jnaous avatar Nov 27 '19 18:11 jnaous

Oh sorry my bad. #8782 sounds good to me then.

jihoonson avatar Nov 27 '19 18:11 jihoonson

+1 for adding lib. Adding hadoop-aws and gcs lib manually to get things to work is not user friendly. Also more error prone (where to add the lib to, what version, if class path is included, etc.)

maytasm avatar Jan 14 '20 03:01 maytasm