[ 
https://issues.apache.org/jira/browse/MAHOUT-427?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12891742#action_12891742
 ] 

Drew Farris commented on MAHOUT-427:
------------------------------------

I've managed to replicate this locally from the current trunk, with 
{{$HADOOP_CONF_DIR}} and {{$HADOOP_HOME}} set and pointing at my local hadoop 
install. 

both:

{quote}
export HADOOP_CONF_DIR=/opt/hadoop/conf/
export HADOOP_HOME=/opt/hadoop
./bin/mahout seq2sparse -i ./examples/bin/work/reuters-out-seqdir/ -o 
./examples/bin/work/reuters-out-seqdir-sparse
{quote}

and: 

{quote}
HADOOP_CLASSPATH=/home/drew/mahout/trunk-2/conf /opt/hadoop-0.20.2/bin/hadoop 
jar /home/drew/mahout/trunk-2/examples/target/mahout-examples-0.4-SNAPSHOT.job 
org.apache.mahout.driver.MahoutDriver seq2sparse -i 
./examples/bin/work/reuters-out-seqdir/ -o 
./examples/bin/work/reuters-out-seqdir-sparse
{quote}

Both fail with the same ClassNotFoundExceptions described above. It seems that 
somehow hadoop is not finding the classes inside the job file. I've even tried 
rolling the jar by hand with no luck.


> $MAHOUT_HOME/examples/bin/build-reuters.sh doesn't run successfully because 
> of classpath issues related to the -core argument
> -----------------------------------------------------------------------------------------------------------------------------
>
>                 Key: MAHOUT-427
>                 URL: https://issues.apache.org/jira/browse/MAHOUT-427
>             Project: Mahout
>          Issue Type: Bug
>    Affects Versions: 0.4
>         Environment: Hadoop installation on EC2 as described here - 
> https://cwiki.apache.org/MAHOUT/mahoutec2.html
>            Reporter: Peter Goldstein
>
> Once I resolved issue MAHOUT-426 , I was still not able to run the 
> ./examples/bin/build-reuters.sh script without errors  These were 
> ClassNotFoundExceptions, indicating a problem with the classpath.  
> The issue appears to be related to the "-core" argument, which controls the 
> classpath.  Placing '-core' as the first argument to the individual 
> $MAHOUT_HOME/bin/mahout calls in the script solved the issue, but I'm not 
> sure it was the correct solution.  It's unclear to me what the '-core' 
> argument is supposed to signify.
> Can someone shed some light on this, and tell me whether this is the correct 
> solution to the problem?  And if not, what is the correct solution to this 
> classpath issue.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to