hadoop-mapreduce-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From praveenesh kumar <praveen...@gmail.com>
Subject Best way to pass project resources in Java MR
Date Wed, 16 Dec 2015 15:18:11 GMT
Hello folks

Basic Java MR question.

What is the right practice to pass any program specific files (sitting in
src/main/resources) in your project folder to your mapper.

I tried the following and it didn't work

1. Inside mapper setup() ->

ClassLoader.getClassLoader().getResource("myfile_in_jar")

ClassLoader.getSystemClassLoader().getResource("myfile_in_jar");

2. Inside Driver run() method

Mime
View raw message