You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mahout.apache.org by "Grant Ingersoll (Created) (JIRA)" <ji...@apache.org> on 2012/04/09 14:43:18 UTC

[jira] [Created] (MAHOUT-999) KMeans failing to create correct Clustering Policy

KMeans failing to create correct Clustering Policy
--------------------------------------------------

                 Key: MAHOUT-999
                 URL: https://issues.apache.org/jira/browse/MAHOUT-999
             Project: Mahout
          Issue Type: Bug
            Reporter: Grant Ingersoll
            Priority: Minor


Jenkins has been complaining about the cluster-reuters.sh example for a while and the issue appears to be due to trying to write a file to a directory that doesn't exist due to the fact that it is a file, not a directory.

{code}

Exception in thread "main" java.io.IOException: Mkdirs failed to create /tmp/mahout-work-grantingersoll/reuters-kmeans-clusters/part-randomSeed/clusters-0
	at org.apache.hadoop.fs.ChecksumFileSystem.create(ChecksumFileSystem.java:366)
	at org.apache.hadoop.fs.FileSystem.create(FileSystem.java:528)
	at org.apache.hadoop.io.SequenceFile$Writer.<init>(SequenceFile.java:843)
	at org.apache.hadoop.io.SequenceFile$Writer.<init>(SequenceFile.java:831)
	at org.apache.hadoop.io.SequenceFile$Writer.<init>(SequenceFile.java:823)
	at org.apache.mahout.clustering.classify.ClusterClassifier.writePolicy(ClusterClassifier.java:232)
	at org.apache.mahout.clustering.classify.ClusterClassifier.writeToSeqFiles(ClusterClassifier.java:185)
	at org.apache.mahout.clustering.kmeans.KMeansDriver.buildClusters(KMeansDriver.java:254)
	at org.apache.mahout.clustering.kmeans.KMeansDriver.run(KMeansDriver.java:154)
	at org.apache.mahout.clustering.kmeans.KMeansDriver.run(KMeansDriver.java:104)
	at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65)
	at org.apache.mahout.clustering.kmeans.KMeansDriver.main(KMeansDriver.java:48)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at org.apache.hadoop.util.ProgramDriver$ProgramDescription.invoke(ProgramDriver.java:68)
	at org.apache.hadoop.util.ProgramDriver.driver(ProgramDriver.java:139)
	at org.apache.mahout.driver.MahoutDriver.main(MahoutDriver.java:188)
{code}

Run examples/bin/cluster-reuters.sh and choose 1 (KMeans) to see the error.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Work started] (MAHOUT-999) KMeans failing to create correct Clustering Policy

Posted by "Paritosh Ranjan (Work started) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/MAHOUT-999?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Work on MAHOUT-999 started by Paritosh Ranjan.

> KMeans failing to create correct Clustering Policy
> --------------------------------------------------
>
>                 Key: MAHOUT-999
>                 URL: https://issues.apache.org/jira/browse/MAHOUT-999
>             Project: Mahout
>          Issue Type: Bug
>            Reporter: Grant Ingersoll
>            Assignee: Paritosh Ranjan
>            Priority: Minor
>
> Jenkins has been complaining about the cluster-reuters.sh example for a while and the issue appears to be due to trying to write a file to a directory that doesn't exist due to the fact that it is a file, not a directory.
> {code}
> Exception in thread "main" java.io.IOException: Mkdirs failed to create /tmp/mahout-work-grantingersoll/reuters-kmeans-clusters/part-randomSeed/clusters-0
> 	at org.apache.hadoop.fs.ChecksumFileSystem.create(ChecksumFileSystem.java:366)
> 	at org.apache.hadoop.fs.FileSystem.create(FileSystem.java:528)
> 	at org.apache.hadoop.io.SequenceFile$Writer.<init>(SequenceFile.java:843)
> 	at org.apache.hadoop.io.SequenceFile$Writer.<init>(SequenceFile.java:831)
> 	at org.apache.hadoop.io.SequenceFile$Writer.<init>(SequenceFile.java:823)
> 	at org.apache.mahout.clustering.classify.ClusterClassifier.writePolicy(ClusterClassifier.java:232)
> 	at org.apache.mahout.clustering.classify.ClusterClassifier.writeToSeqFiles(ClusterClassifier.java:185)
> 	at org.apache.mahout.clustering.kmeans.KMeansDriver.buildClusters(KMeansDriver.java:254)
> 	at org.apache.mahout.clustering.kmeans.KMeansDriver.run(KMeansDriver.java:154)
> 	at org.apache.mahout.clustering.kmeans.KMeansDriver.run(KMeansDriver.java:104)
> 	at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65)
> 	at org.apache.mahout.clustering.kmeans.KMeansDriver.main(KMeansDriver.java:48)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:597)
> 	at org.apache.hadoop.util.ProgramDriver$ProgramDescription.invoke(ProgramDriver.java:68)
> 	at org.apache.hadoop.util.ProgramDriver.driver(ProgramDriver.java:139)
> 	at org.apache.mahout.driver.MahoutDriver.main(MahoutDriver.java:188)
> {code}
> Run examples/bin/cluster-reuters.sh and choose 1 (KMeans) to see the error.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Assigned] (MAHOUT-999) KMeans failing to create correct Clustering Policy

Posted by "Paritosh Ranjan (Assigned) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/MAHOUT-999?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Paritosh Ranjan reassigned MAHOUT-999:
--------------------------------------

    Assignee: Paritosh Ranjan
    
> KMeans failing to create correct Clustering Policy
> --------------------------------------------------
>
>                 Key: MAHOUT-999
>                 URL: https://issues.apache.org/jira/browse/MAHOUT-999
>             Project: Mahout
>          Issue Type: Bug
>            Reporter: Grant Ingersoll
>            Assignee: Paritosh Ranjan
>            Priority: Minor
>
> Jenkins has been complaining about the cluster-reuters.sh example for a while and the issue appears to be due to trying to write a file to a directory that doesn't exist due to the fact that it is a file, not a directory.
> {code}
> Exception in thread "main" java.io.IOException: Mkdirs failed to create /tmp/mahout-work-grantingersoll/reuters-kmeans-clusters/part-randomSeed/clusters-0
> 	at org.apache.hadoop.fs.ChecksumFileSystem.create(ChecksumFileSystem.java:366)
> 	at org.apache.hadoop.fs.FileSystem.create(FileSystem.java:528)
> 	at org.apache.hadoop.io.SequenceFile$Writer.<init>(SequenceFile.java:843)
> 	at org.apache.hadoop.io.SequenceFile$Writer.<init>(SequenceFile.java:831)
> 	at org.apache.hadoop.io.SequenceFile$Writer.<init>(SequenceFile.java:823)
> 	at org.apache.mahout.clustering.classify.ClusterClassifier.writePolicy(ClusterClassifier.java:232)
> 	at org.apache.mahout.clustering.classify.ClusterClassifier.writeToSeqFiles(ClusterClassifier.java:185)
> 	at org.apache.mahout.clustering.kmeans.KMeansDriver.buildClusters(KMeansDriver.java:254)
> 	at org.apache.mahout.clustering.kmeans.KMeansDriver.run(KMeansDriver.java:154)
> 	at org.apache.mahout.clustering.kmeans.KMeansDriver.run(KMeansDriver.java:104)
> 	at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65)
> 	at org.apache.mahout.clustering.kmeans.KMeansDriver.main(KMeansDriver.java:48)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:597)
> 	at org.apache.hadoop.util.ProgramDriver$ProgramDescription.invoke(ProgramDriver.java:68)
> 	at org.apache.hadoop.util.ProgramDriver.driver(ProgramDriver.java:139)
> 	at org.apache.mahout.driver.MahoutDriver.main(MahoutDriver.java:188)
> {code}
> Run examples/bin/cluster-reuters.sh and choose 1 (KMeans) to see the error.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Resolved] (MAHOUT-999) KMeans failing to create correct Clustering Policy

Posted by "Paritosh Ranjan (Resolved) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/MAHOUT-999?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Paritosh Ranjan resolved MAHOUT-999.
------------------------------------

       Resolution: Fixed
    Fix Version/s: 0.7

Fixed it for kmeans as will as fuzzykmeans. The current example clusters build is demonstrating that.

Now creating directories to write for Clustering Policies.
                
> KMeans failing to create correct Clustering Policy
> --------------------------------------------------
>
>                 Key: MAHOUT-999
>                 URL: https://issues.apache.org/jira/browse/MAHOUT-999
>             Project: Mahout
>          Issue Type: Bug
>            Reporter: Grant Ingersoll
>            Assignee: Paritosh Ranjan
>            Priority: Minor
>             Fix For: 0.7
>
>
> Jenkins has been complaining about the cluster-reuters.sh example for a while and the issue appears to be due to trying to write a file to a directory that doesn't exist due to the fact that it is a file, not a directory.
> {code}
> Exception in thread "main" java.io.IOException: Mkdirs failed to create /tmp/mahout-work-grantingersoll/reuters-kmeans-clusters/part-randomSeed/clusters-0
> 	at org.apache.hadoop.fs.ChecksumFileSystem.create(ChecksumFileSystem.java:366)
> 	at org.apache.hadoop.fs.FileSystem.create(FileSystem.java:528)
> 	at org.apache.hadoop.io.SequenceFile$Writer.<init>(SequenceFile.java:843)
> 	at org.apache.hadoop.io.SequenceFile$Writer.<init>(SequenceFile.java:831)
> 	at org.apache.hadoop.io.SequenceFile$Writer.<init>(SequenceFile.java:823)
> 	at org.apache.mahout.clustering.classify.ClusterClassifier.writePolicy(ClusterClassifier.java:232)
> 	at org.apache.mahout.clustering.classify.ClusterClassifier.writeToSeqFiles(ClusterClassifier.java:185)
> 	at org.apache.mahout.clustering.kmeans.KMeansDriver.buildClusters(KMeansDriver.java:254)
> 	at org.apache.mahout.clustering.kmeans.KMeansDriver.run(KMeansDriver.java:154)
> 	at org.apache.mahout.clustering.kmeans.KMeansDriver.run(KMeansDriver.java:104)
> 	at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65)
> 	at org.apache.mahout.clustering.kmeans.KMeansDriver.main(KMeansDriver.java:48)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:597)
> 	at org.apache.hadoop.util.ProgramDriver$ProgramDescription.invoke(ProgramDriver.java:68)
> 	at org.apache.hadoop.util.ProgramDriver.driver(ProgramDriver.java:139)
> 	at org.apache.mahout.driver.MahoutDriver.main(MahoutDriver.java:188)
> {code}
> Run examples/bin/cluster-reuters.sh and choose 1 (KMeans) to see the error.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (MAHOUT-999) KMeans failing to create correct Clustering Policy

Posted by "Paritosh Ranjan (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/MAHOUT-999?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13249855#comment-13249855 ] 

Paritosh Ranjan commented on MAHOUT-999:
----------------------------------------

Will try to fix it soon. Running really short of time. Will do this first thing as soon as I get time.
Thanks for the debugging and Jira Issue.
                
> KMeans failing to create correct Clustering Policy
> --------------------------------------------------
>
>                 Key: MAHOUT-999
>                 URL: https://issues.apache.org/jira/browse/MAHOUT-999
>             Project: Mahout
>          Issue Type: Bug
>            Reporter: Grant Ingersoll
>            Priority: Minor
>
> Jenkins has been complaining about the cluster-reuters.sh example for a while and the issue appears to be due to trying to write a file to a directory that doesn't exist due to the fact that it is a file, not a directory.
> {code}
> Exception in thread "main" java.io.IOException: Mkdirs failed to create /tmp/mahout-work-grantingersoll/reuters-kmeans-clusters/part-randomSeed/clusters-0
> 	at org.apache.hadoop.fs.ChecksumFileSystem.create(ChecksumFileSystem.java:366)
> 	at org.apache.hadoop.fs.FileSystem.create(FileSystem.java:528)
> 	at org.apache.hadoop.io.SequenceFile$Writer.<init>(SequenceFile.java:843)
> 	at org.apache.hadoop.io.SequenceFile$Writer.<init>(SequenceFile.java:831)
> 	at org.apache.hadoop.io.SequenceFile$Writer.<init>(SequenceFile.java:823)
> 	at org.apache.mahout.clustering.classify.ClusterClassifier.writePolicy(ClusterClassifier.java:232)
> 	at org.apache.mahout.clustering.classify.ClusterClassifier.writeToSeqFiles(ClusterClassifier.java:185)
> 	at org.apache.mahout.clustering.kmeans.KMeansDriver.buildClusters(KMeansDriver.java:254)
> 	at org.apache.mahout.clustering.kmeans.KMeansDriver.run(KMeansDriver.java:154)
> 	at org.apache.mahout.clustering.kmeans.KMeansDriver.run(KMeansDriver.java:104)
> 	at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65)
> 	at org.apache.mahout.clustering.kmeans.KMeansDriver.main(KMeansDriver.java:48)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:597)
> 	at org.apache.hadoop.util.ProgramDriver$ProgramDescription.invoke(ProgramDriver.java:68)
> 	at org.apache.hadoop.util.ProgramDriver.driver(ProgramDriver.java:139)
> 	at org.apache.mahout.driver.MahoutDriver.main(MahoutDriver.java:188)
> {code}
> Run examples/bin/cluster-reuters.sh and choose 1 (KMeans) to see the error.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira