Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hadoop No FileSystem for scheme: s3n #4

Open
aakashkag opened this issue Apr 12, 2016 · 1 comment
Open

hadoop No FileSystem for scheme: s3n #4

aakashkag opened this issue Apr 12, 2016 · 1 comment

Comments

@aakashkag
Copy link

when i am trying to give input path (below path) to hadoop ,i am getting "Error: org.jets3t.service.impl.rest.httpclient.RestS3Service.(Lorg/jets3t/service/security/AWSCredentials;)V
" Error

Input path: s3n://aws-publicdatasets/common-crawl/crawl-data/CC-MAIN-2013-48/segments/1386163035819/wet/CC-MAIN-20131204131715-00000-ip-10-33-133-15.ec2.internal.warc.wet.gz

@ldaume
Copy link

ldaume commented Jul 24, 2017

You can try:

import org.jets3t.service.impl.rest.httpclient.RestS3Service

val restS3Service = new RestS3Service(null)
val fileName = "crawl-data/CC-MAIN-2013-48/segments/1386163035819/wet/CC-MAIN-20131204131715-00000-ip-10-33-133-15.ec2.internal.warc.wet.gz"
val s3Object = restS3Service.getObject("commoncrawl", fileName, null, null, null, null, null, null)

val archiveReader: ArchiveReader = WARCReaderFactory.get(fileName, s3Object.getDataInputStream, true)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants