PDA

View Full Version : How to get access to static class from jar when running job with Map Reduce



nmantri
03-12-2013, 06:51 AM
Hi,

I have configured cluster for Pentaho MapReduce step and ran job with Map Reducer functionality.

got an error while running map reduce job as :- Unknown variable or type "com.test.encryption.Encryption".

I have placed jar file in kettle "libext" folder and I want to call static method from that jar file in "User Defined Java Expression" step. It was giving me error as Unknown variable or type "com.test.encryption.Encryption".

I am using cloudera cdh3u5.


Thanks,
Nilesh Mantri

nmantri
03-12-2013, 08:05 AM
Hi,

I search for solution and get helpful link http://blog.cloudera.com/blog/2011/01/how-to-include-third-party-libraries-in-your-map-reduce-job/.
According to that, I placed my custom jar into hadoop installation lib folder and it works for me.

Thanks