Hi Pratyush,
Can you try the class along with the package:

org.apache.hadoop.mapreduce.lib.input.TextInputFormat

It should work. All subclasses of InputFormat.java should work.

-Ayush

> 
> On 02-May-2022, at 4:53 AM, Pratyush Das <[email protected]> wrote:
> 
> 
> Hi,
> 
> I tried executing the Join.java example in the Hadoop Mapreduce Examples jar 
> using the following invocation - hadoop jar 
> hadoop-3.3.1/share/hadoop/mapreduce/hadoop-mapreduce-examples-3.3.1.jar join 
> -inFormat TextInputFormat /examples-input/ /examples-output/
> 
> I keep getting an error - java.lang.ClassNotFoundException: TextInputFormat
> 
> This is the given invocation of the join example - 
> join [-r <reduces>] [-inFormat <input format class>] [-outFormat <output 
> format class>] [-outKey <output key class>] [-outValue <output value class>] 
> [-joinOp <inner|outer|override>] [input]* <input> <output>
> 
> What are the possible values of inFormat and outFormat? I have also tried 
> "TextInputFormat.class" which did not work.
> 
> Thanks,
> 
> -- 
> Pratyush Das

Reply via email to