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!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...