it seems you run your code on local windows instead of  hadoop cluster?  please 
copy you code and try to run it on hadoop cluseter.






------------------ ???????? ------------------
??????: "Videnova, Svetlana"; 
????????: 2012??7??31??(??????) ????3:27
??????: "user@mahout.apache.org"; 
????: mahout lib : permissions



Hi mahouters,

I am trying to use the mahout lib with my app java.

But while I try to clusterize calling this:

DocumentProcessor.tokenizeDocuments(new 
Path(inputDir),analyzer.getClass().asSubclass(Analyzer.class), tokenizedPath, 
conf);

And this:

InputDriver.runJob(new Path(inputDir), tokenizedPath, 
"org.apache.mahout.math.RandomAccessSparseVector");


I have this error:

Exception in thread "main" java.io.IOException: Failed to set permissions of 
path: C:\Hadoop\mapred\staging\csi_team370130067\.staging to 0700
      at org.apache.hadoop.fs.FileUtil.checkReturnValue(FileUtil.java:680)
      at org.apache.hadoop.fs.FileUtil.setPermission(FileUtil.java:653)
      at 
org.apache.hadoop.fs.RawLocalFileSystem.setPermission(RawLocalFileSystem.java:483)
      at 
org.apache.hadoop.fs.RawLocalFileSystem.mkdirs(RawLocalFileSystem.java:318)
      at org.apache.hadoop.fs.FilterFileSystem.mkdirs(FilterFileSystem.java:183)
      at 
org.apache.hadoop.mapreduce.JobSubmissionFiles.getStagingDir(JobSubmissionFiles.java:116)
      at org.apache.hadoop.mapred.JobClient$2.run(JobClient.java:813)
      at org.apache.hadoop.mapred.JobClient$2.run(JobClient.java:807)
      at java.security.AccessController.doPrivileged(Native Method)
      at javax.security.auth.Subject.doAs(Unknown Source)
      at 
org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1059)
      at 
org.apache.hadoop.mapred.JobClient.submitJobInternal(JobClient.java:807)
      at org.apache.hadoop.mapreduce.Job.submit(Job.java:465)
      at org.apache.hadoop.mapreduce.Job.waitForCompletion(Job.java:495)
      at 
org.apache.mahout.vectorizer.DocumentProcessor.tokenizeDocuments(DocumentProcessor.java:93)
      at main.MainClass.main(MainClass.java:53)

Can somebody please help me solving this error please?

Think green - keep it on the screen.

This e-mail and any attachment is for authorised use by the intended 
recipient(s) only. It may contain proprietary material, confidential 
information and/or be subject to legal privilege. It should not be copied, 
disclosed to, retained or used by, any other party. If you are not an intended 
recipient then please promptly delete this e-mail and any attachment and all 
copies and inform the sender. Thank you.

Reply via email to