You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mahout.apache.org by "Deneche A. Hakim (JIRA)" <ji...@apache.org> on 2009/09/13 10:21:57 UTC
[jira] Created: (MAHOUT-177) Fix for
"java.lang.ClassNotFoundException Exception"
Fix for "java.lang.ClassNotFoundException Exception"
----------------------------------------------------
Key: MAHOUT-177
URL: https://issues.apache.org/jira/browse/MAHOUT-177
Project: Mahout
Issue Type: Bug
Affects Versions: 0.2
Reporter: Deneche A. Hakim
Priority: Minor
Fix For: 0.2
Attachments: cnf_fix.patch
When trying to run the Synthetic Control Data examples (http://cwiki.apache.org/MAHOUT/syntheticcontroldata.html) in a pseudo-distributed Hadoop cluster I got the *java.lang.ClassNotFoundException* exception in kmeans and dirichlet. canopy and meanshift worked perfectly.
The past solution was to flatten the examples jar: unjar all the libs and pack them in a single jar file. I found that, *for the clustering examples*, you only need to unpack the mahout-core jar, and because the compiled classes are already available in core/target/classes I changed maven/build.xml as follows:
* grab the core/target/classes directly instead of the packed jar
* exclude apache-mahout-core-*.jar, this should exclude both apache-mahout-core.jar and apache-mahout-core-tests.jar (do the examples really need the core-tests jar ?)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (MAHOUT-177) Fix for
"java.lang.ClassNotFoundException Exception"
Posted by "Deneche A. Hakim (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/MAHOUT-177?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Deneche A. Hakim updated MAHOUT-177:
------------------------------------
Resolution: Fixed
Assignee: Deneche A. Hakim
Status: Resolved (was: Patch Available)
I tested the change on the following examples:
* '.clustering.syntheticcontrol...':
** before the patch 'dirichlet' and 'kmeans' had the CNF exception
** after the patch 'dirichlet' is getting a java.io.IOException: Cannot open filename /user/hadoop/output/state/state-3/_logs, but I suppose this is another story. The other examples did not throw any exception.
* '.ga...':
** before the patch 'travelling salesman' gave a CNF exception
** after the patch all went Ok
* '.df...':
** before the patch 'BreimanExample' and 'BuildForest' had the CNF exception
** after the patch all went Ok
the examples that I didn't test are 'cf.taste...' and 'classifier.bayes...'. Actually I tried but they seem a little complicated to run- for a complete Noob like me =P
> Fix for "java.lang.ClassNotFoundException Exception"
> ----------------------------------------------------
>
> Key: MAHOUT-177
> URL: https://issues.apache.org/jira/browse/MAHOUT-177
> Project: Mahout
> Issue Type: Bug
> Affects Versions: 0.2
> Reporter: Deneche A. Hakim
> Assignee: Deneche A. Hakim
> Priority: Minor
> Fix For: 0.2
>
> Attachments: cnf_fix.patch
>
>
> When trying to run the Synthetic Control Data examples (http://cwiki.apache.org/MAHOUT/syntheticcontroldata.html) in a pseudo-distributed Hadoop cluster I got the *java.lang.ClassNotFoundException* exception in kmeans and dirichlet. canopy and meanshift worked perfectly.
> The past solution was to flatten the examples jar: unjar all the libs and pack them in a single jar file. I found that, *for the clustering examples*, you only need to unpack the mahout-core jar, and because the compiled classes are already available in core/target/classes I changed maven/build.xml as follows:
> * grab the core/target/classes directly instead of the packed jar
> * exclude apache-mahout-core-*.jar, this should exclude both apache-mahout-core.jar and apache-mahout-core-tests.jar (do the examples really need the core-tests jar ?)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (MAHOUT-177) Fix for
"java.lang.ClassNotFoundException Exception"
Posted by "Deneche A. Hakim (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/MAHOUT-177?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Deneche A. Hakim updated MAHOUT-177:
------------------------------------
Attachment: cnf_dirichlet_fix.patch
modified DirichletMapper in order to avoid the following exception:
{code}
java.io.IOException: Cannot open filename /.../output/state/state-3/_logs
{code}
> Fix for "java.lang.ClassNotFoundException Exception"
> ----------------------------------------------------
>
> Key: MAHOUT-177
> URL: https://issues.apache.org/jira/browse/MAHOUT-177
> Project: Mahout
> Issue Type: Bug
> Affects Versions: 0.2
> Reporter: Deneche A. Hakim
> Assignee: Deneche A. Hakim
> Priority: Minor
> Fix For: 0.2
>
> Attachments: cnf_dirichlet_fix.patch, cnf_fix.patch
>
>
> When trying to run the Synthetic Control Data examples (http://cwiki.apache.org/MAHOUT/syntheticcontroldata.html) in a pseudo-distributed Hadoop cluster I got the *java.lang.ClassNotFoundException* exception in kmeans and dirichlet. canopy and meanshift worked perfectly.
> The past solution was to flatten the examples jar: unjar all the libs and pack them in a single jar file. I found that, *for the clustering examples*, you only need to unpack the mahout-core jar, and because the compiled classes are already available in core/target/classes I changed maven/build.xml as follows:
> * grab the core/target/classes directly instead of the packed jar
> * exclude apache-mahout-core-*.jar, this should exclude both apache-mahout-core.jar and apache-mahout-core-tests.jar (do the examples really need the core-tests jar ?)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (MAHOUT-177) Fix for
"java.lang.ClassNotFoundException Exception"
Posted by "Deneche A. Hakim (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/MAHOUT-177?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Deneche A. Hakim updated MAHOUT-177:
------------------------------------
Status: Patch Available (was: Open)
> Fix for "java.lang.ClassNotFoundException Exception"
> ----------------------------------------------------
>
> Key: MAHOUT-177
> URL: https://issues.apache.org/jira/browse/MAHOUT-177
> Project: Mahout
> Issue Type: Bug
> Affects Versions: 0.2
> Reporter: Deneche A. Hakim
> Priority: Minor
> Fix For: 0.2
>
> Attachments: cnf_fix.patch
>
>
> When trying to run the Synthetic Control Data examples (http://cwiki.apache.org/MAHOUT/syntheticcontroldata.html) in a pseudo-distributed Hadoop cluster I got the *java.lang.ClassNotFoundException* exception in kmeans and dirichlet. canopy and meanshift worked perfectly.
> The past solution was to flatten the examples jar: unjar all the libs and pack them in a single jar file. I found that, *for the clustering examples*, you only need to unpack the mahout-core jar, and because the compiled classes are already available in core/target/classes I changed maven/build.xml as follows:
> * grab the core/target/classes directly instead of the packed jar
> * exclude apache-mahout-core-*.jar, this should exclude both apache-mahout-core.jar and apache-mahout-core-tests.jar (do the examples really need the core-tests jar ?)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (MAHOUT-177) Fix for
"java.lang.ClassNotFoundException Exception"
Posted by "Deneche A. Hakim (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/MAHOUT-177?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Deneche A. Hakim updated MAHOUT-177:
------------------------------------
Attachment: cnf_fix.patch
*important* I tested only the SyntheticControl examples
> Fix for "java.lang.ClassNotFoundException Exception"
> ----------------------------------------------------
>
> Key: MAHOUT-177
> URL: https://issues.apache.org/jira/browse/MAHOUT-177
> Project: Mahout
> Issue Type: Bug
> Affects Versions: 0.2
> Reporter: Deneche A. Hakim
> Priority: Minor
> Fix For: 0.2
>
> Attachments: cnf_fix.patch
>
>
> When trying to run the Synthetic Control Data examples (http://cwiki.apache.org/MAHOUT/syntheticcontroldata.html) in a pseudo-distributed Hadoop cluster I got the *java.lang.ClassNotFoundException* exception in kmeans and dirichlet. canopy and meanshift worked perfectly.
> The past solution was to flatten the examples jar: unjar all the libs and pack them in a single jar file. I found that, *for the clustering examples*, you only need to unpack the mahout-core jar, and because the compiled classes are already available in core/target/classes I changed maven/build.xml as follows:
> * grab the core/target/classes directly instead of the packed jar
> * exclude apache-mahout-core-*.jar, this should exclude both apache-mahout-core.jar and apache-mahout-core-tests.jar (do the examples really need the core-tests jar ?)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.