exception java.io.ioexception:未能将路径:\tmp\hadoop user\mapred\staging\user1322875957\.staging的权限设置为0700

6mw9ycah  于 2021-06-02  发布在  Hadoop
关注(0)|答案(0)|浏览(266)
14/09/24 14:55:04 ERROR security.UserGroupInformation: PriviledgedActionException as:user cause:java.io.IOException: Failed to set permissions of path: \tmp\hadoop-user\mapred\staging\user1322875957\.staging to 0700
java.io.IOException: Failed to set permissions of path: \tmp\hadoop-user\mapred\staging\user1322875957\.staging to 0700
    at org.apache.hadoop.fs.FileUtil.checkReturnValue(FileUtil.java:691)
    at org.apache.hadoop.fs.FileUtil.setPermission(FileUtil.java:664)
    at org.apache.hadoop.fs.RawLocalFileSystem.setPermission(RawLocalFileSystem.java:514)
    at org.apache.hadoop.fs.RawLocalFileSystem.mkdirs(RawLocalFileSystem.java:349)
    at org.apache.hadoop.fs.FilterFileSystem.mkdirs(FilterFileSystem.java:193)
    at org.apache.hadoop.mapreduce.JobSubmissionFiles.getStagingDir(JobSubmissionFiles.java:126)
    at org.apache.hadoop.mapred.JobClient$2.run(JobClient.java:942)
    at org.apache.hadoop.mapred.JobClient$2.run(JobClient.java:936)
    at java.security.AccessController.doPrivileged(Native Method)
    at javax.security.auth.Subject.doAs(Unknown Source)
    at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1190)
    at org.apache.hadoop.mapred.JobClient.submitJobInternal(JobClient.java:936)
    at org.apache.hadoop.mapreduce.Job.submit(Job.java:550)
    at org.apache.hadoop.mapreduce.Job.waitForCompletion(Job.java:580)
    at org.apache.mahout.vectorizer.DocumentProcessor.tokenizeDocuments(DocumentProcessor.java:93)
    at com.xxx.mahout.Vectorizer.tokenizeDocument(Vectorizer.java:262)
    at com.xxx.mahout.Vectorizer.generateVector(Vectorizer.java:142)
    at com.xxx.others.Dabconnections.getProducts(MongoConnections.java:124)
    at com.xxx.others.MongoConnections.main(MongoConnections.java:180)

我在使用mahout时遇到了一个异常。我可以从数据库中获取数据并使用该数据生成序列文件。之后,当我尝试对该序列文件进行矢量化时,会出现此异常。如何解决此问题?我用的是Windows7。

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题