Class names are case-sensitive in Java, so try

$HADOOP_HOME/bin/hadoop jar 
$HADOOP_HOME/share/hadoop/mapreduce/hadoop-mapreduce-examples-2.9.1.jar Grep 
input output 'dfs[a-z.]+'

>Воскресенье, 14 октября 2018, 18:04 +03:00 от Or Raz <r...@post.bgu.ac.il>:
>
>I am using Hadoop 2.9.1 standalone (the folder I am using is after successful 
>compilation of the source code) and whenever I run a Hadoop command such as 
>(where$HADOOP_HOME= /usr/local/hadoop, the directory of Hadoop)
>$HADOOP_HOME/bin/hadoop jar 
>$HADOOP_HOME/share/hadoop/mapreduce/hadoop-mapreduce-examples-2.9.1.jar grep 
>input output 'dfs[a-z.]+'
>I get this error :
>>Error: Could not find or load main class org.apache.hadoop.util.RunJar
>At first, I was thinking that I am missing some environment variables but are 
>they necessary for the standalone case? Why did I get this error? (I even 
>replaced with another example, I believe it is a classpath problem)
>
>hadoop2@master:/usr/local/hadoop-2.9.1$ bin/hadoop classpath
>/usr/local/hadoop-2.9.1/etc/hadoop:/usr/local/hadoop-2.9.1/share/hadoop/common/lib/*:/usr/local/hadoop-2.9.1/share/hadoop/common/*:/usr/local/hadoop-2.9.1/share/hadoop/hdfs:/usp/hdfs/*:/usr/local/hadoop-2.9.1/share/hadoop/yarn/lib/*:/usr/local/hadoop-2.9.1/share/hadoop/yarn/*:/usr/local/hadoop-2.9.1/share/hadoop/mapreduce/lib/*:/usr/local/hadoop-2.9.jar



Reply via email to