Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

problem with clusterdump -mahout

problem with clusterdump -mahout

Explorer

Hi,

 

i'm newbie at both Mahout and Hadoop environmenet, i started to ran a simple example with kmeans.

Everything turned well until i tried to visualize the results with clusterdump command.

I've tried this :

mahout clusterdum -i /user/hdfs/outputkmeans/clusters-*-final -o /user/hdfs/outputkmeans/clusterresults.txt

 

i get this error:

Exception in thread "main" java.io.IOException: Unable to create parent directory of /user/hdfs/outputkmeans/clusterresults.txt

 

and even if i change the directory still get the same error

 

I would appreciate any help or tip.

 

thanks

7 REPLIES 7

Re: problem with clusterdump -mahout

Explorer
Can you tell me which versions of Hadoop and Mahout did you use because i'm getting errors when i try the kmeans command?

Re: problem with clusterdump -mahout

New Contributor
Hi,

I am getting the same error as you are getting. I am also implementing kmeans algorithm. Were you able to resolve this issue. if so, can you please tell me how you resolved this issue?

Re: problem with clusterdump -mahout

Explorer
Dig you get errors when you run kmeans? Or only with clusterdump? If you want tell me the commands that you run when did you get error and the version of mahout-hadoop that you use.

Re: problem with clusterdump -mahout

New Contributor
I ran the seqdirectory, seq2sparse and means commands, all of them ran successfully. only mahout clusterdump is giving “Unable to create parent directories" error.

My hadoop version is 2.7.1
My Mahout version is 0.10.0

Regards
Dhivya

Re: problem with clusterdump -mahout

Explorer

ok then and how does your clusterdump command look like? It should be something like that: 

bin/mahout clusterdump -s /.../clusters-*-final -d /.../directory.file-0 -dt sequencefile -b 100 -n 20

--evaluate -dm or.apache.mahout.common.distance.CosineDistanceMeasure --pointsDir /.../clusteredPoints -o /no Hdfs/

 

The output path should be in your local file sytem. Try it!

Re: problem with clusterdump -mahout

Explorer
I'd like also to mention that I'm using Hadoop 1.2.1 and Mahout 0.6.
Highlighted

Re: problem with clusterdump -mahout

Explorer

i face the same problem as you.. have you solve it ? maybe you can tell me how can you solve it ?