Hadoop ClassNotFoundException related to MapClass Hadoop ClassNotFoundException related to MapClass hadoop hadoop

Hadoop ClassNotFoundException related to MapClass


I was able to fix the problem by declaring a package at the top of my source.

package com.foo.hadoop;

I then compiled, created the jar, and explicitly called hadoop with the package prepended to the class name.

hadoop jar QueryTable.jar com.foo.hadoop.QueryTable input output

I understand this is what most people would have done to begin with, though I'd think it'd still work without specifying a package. It's definitely better practice though and it has allowed me to proceed.