All Apps and Add-ons

Running Hunk against EMR/S3 without using the AMI

jimjh
Path Finder

I installed Hunk and Hadoop 2.2.0 on my Hunk node and launched an EMR cluster with Hadoop 2.2.0. In indexes.conf, I set vix.fs.default.name to my s3 bucket. This results in the following error message:

cause:org.apache.hadoop.fs.UnsupportedFileSystemException: No AbstractFileSystem for scheme: s3

To work around this, I configured core-site.xml to define fs.s3.impl, and added a bunch of jars from AWS (e.g. emr-fs-1.0.0.jar.) I started getting some classpath errors and fixed them in hadoop-env.sh. However, I am running back into the same error message:

cause:org.apache.hadoop.fs.UnsupportedFileSystemException: No AbstractFileSystem for scheme: s3n

What else do I need to do?

Update

Added fs.s3n.* and fs.s3.* in core-site.xml to provide AWS S3 credentials. I am able to use hadoop fs -ls
to get a listing of my bucket.

Tags (2)
1 Solution

Ledion_Bitincka
Splunk Employee
Splunk Employee

Are you able to use the Hadoop CLI to access the s3 filesystem (hadoop fs -ls s3://... )?

View solution in original post

jimjh
Path Finder

Not sure how I messed up the formatting. It should say "$> hadoop fs -ls s3n://xxx/"

0 Karma

Ledion_Bitincka
Splunk Employee
Splunk Employee

Are you able to use the Hadoop CLI to access the s3 filesystem (hadoop fs -ls s3://... )?

Ledion_Bitincka
Splunk Employee
Splunk Employee

Can you please provide us the full stacktrace so we can see during which step is Hunk failing?

0 Karma

jimjh
Path Finder

I also tried setting vix.fs.s3n.impl = com.amazon.ws.emr.hadoop.fs.EmrFileSystem and vix.fs.s3.impl = com.amazon.ws.emr.hadoop.fs.EmrFileSystem in the provider.

0 Karma

jimjh
Path Finder

Fixed that, but I am still getting the same error.

0 Karma

jimjh
Path Finder

Great idea. Unfortunately, I cannot - ls: 's3://xxx': No such file or directory. This tells me that the problem is in my hadoop config, not my hunk config.

0 Karma
Get Updates on the Splunk Community!

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...