Error while running Apache Mahout Example?

Up vote 0 down vote favorite share g+ share fb share tw.

I have specified the JAVA_HOME and HADOOP_HOME path as per wiki.apache.org/hadoop/Running_Hadoop_On.... I have been able to compile the core and examples. But I am facing a problem running the Apache Mahout examples.

I have tried to set the path on many different places and none of them work. If I typed echo $HADOOP_HOME on the Terminal I can see the list of the commands provided by it starting with namenode -format. The same is true for echo $JAVA_HOME .

I have tried to run the echo command from different directories and it works well. But despite that fact, I keep on getting the following error. Here is how I run it.

Mahout/mahout-distribution-0.6/examples/bin$ sudo bash asf-email-examples. Sh . / .

/ Please select a number to choose the corresponding algorithm to run 1. Recommender 2. Clustering 3.

Classification 4. Clean -- cleans up the work area -- all files under the work area will be deleted Enter your choice : 1 ok. You chose 1 and we'll use recommender asf-email-examples.

Sh: line 26: hadoop: command not found Converting Mail files to Sequence Files Error: JAVA_HOME is not set. Asf-email-examples. Sh: line 26: hadoop: command not found Prepping Sequence files for Recommender Error: JAVA_HOME is not set.

Asf-email-examples. Sh: line 26: hadoop: command not found asf-email-examples. Sh: line 26: hadoop: command not found Run the recommender Error: JAVA_HOME is not set.

Can anyone tell me what I'm doing wrongly? Thanks in advance hadoop mahout link|improve this question edited Mar 14 at 18:11 asked Mar 14 at 17:41Abraham Guchi11.

It's evident from the error that you have not in fact set JAVA_HOME. Are you sure it's 'exported'? – Sean Owen Mar 14 at 20:57 YES!

When I run Mahout/mahout-distribution-0.6/examples/bin$ echo $JAVA_HOME /usr/lib/jvm/java-6-openjdk is getting printed. So, the JAVA_HOME is exported for sure – Abraham Guchi Mar 15 at 5:24 But is it exported? – Sean Owen Mar 15 at 9:30 yes it is exported Sean Owen.

And thanks for the reply. I run it finally. It seems the problem was not with the PATH after all.

The culprit was the sudo command. I run it with the command Mahout/mahout-distribution-0.6/examples/bin$ bash . /asf-email-examples.

Sh . / . / and it worked fine.

I have no idea why that fixed it but I am glad that it did! – Abraham Guchi Mar 15 at 10:59.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions