Ali Gajani
Ali Gajani

Reputation: 15091

Why am I getting a "Not a valid JAR" while running a MR job on my local hadoop?

This is the error precisely.

Alis-MacBook-Pro-2:hadoop aligajani$ hadoop jar /user/aligajani/job/wordcount.jar /user/aligajani/input /user/aligajani/input-output
Not a valid JAR: /user/aligajani/job/wordcount.jar
Alis-MacBook-Pro-2:hadoop aligajani$ 
  1. Yes, I have copied the file in the HDFS.
  2. Yes, I have verified that it is compiled correctly.
  3. The example WordCount works just fine.

Upvotes: 0

Views: 188

Answers (1)

vefthym
vefthym

Reputation: 7462

I think the jar should be in a local path (at least in the old API).

Upvotes: 1

Related Questions