2013-07-09 82 views
1

我的窗口,沒有Cygwin和單元測試的象夫,並在此測試啓動Hadoop的工作,我有一個異常:PriviledgedActionException無法設置路徑的權限

2013年7月9日上午05點21分23秒org.apache.hadoop.util.NativeCodeLoader 警告:無法爲您的平臺加載native-hadoop庫......在適用的情況下使用內置-java類 2013年7月9日上午5:21:23 org.slf4j.impl.JCLLoggerAdapter info INFO:Build Clusters輸入:file:/tmp/mahout1-TestClusterDumper-3279087666375853056/testdata輸出:file:/tmp/mahout1-TestClusterDumper-3279087666375853056/輸出Measure:org.apache.mahout.common.distance.EuclideanDistanceMeasure @ 62c8769b t1:8.0 t2:4.0 2013年7月9日上午5:21:24 org.slf4j.impl.JCLLoggerAdapter信息 信息:輸入:file:/tmp/mahout1-TestClusterDumper-3279087666375853056/testdata Clusters In:file:/ tmp/mahout1-TestClusterDumper-3279087666375853056/output/clusters-0-final輸出:file:/tmp/mahout1-TestClusterDumper-3279087666375853056/output/kmeans距離:org.apache.mahout.common.distance.EuclideanDistanceMeasure 2013年7月9日5: 21:24 AM org.slf4j.impl.JCLLoggerAdapter info INFO:convergence:0.0010 max Iterations:10

java.io.IOException:無法設置路徑的權限:C:\ Users \ Administrator \ Desktop \ mahout \ mahout \ integration \ target \ mahout-TestClusterDumper-5458229048736903168 \ hadoop0.5515906057710666 \ mapred \ staging \ Administrator-585933322.staging to 0700 at org.apache.hadoop.fs.FileUtil.checkReturnValue(FileUtil.java:689) at org.apache.hadoop.fs.FileUtil.setPermission(FileUtil.java:662) at org.apache.hadoop.fs。 RawLocalFileSystem.setPermission(RawLocalFileSystem.java:509) ...

2013年7月9日上午5時21分24秒org.apache.hadoop.security.UserGroupInformation DOAS 重度:PriviledgedActionException爲:管理員原因:java.io .IOException:無法設置路徑權限:C:\ Users \ Administrator \ Desktop \ mahout \ mahout \ integration \ target \ mahout-TestClusterDumper-5458229048736903168 \ hadoop0.5515906057710666 \ mapred \ staging \ Administrator-585933322.staging至0700

我不能使用cygwin!

回答

3

Windows和Hadoop並不是真的很喜歡對方,但是如果我沒有記錯的話,它對JVM有更多的幫助。這是自0.22.0以上版本以來Hadoop的一個已知問題,儘管我不確定它是否已在最新版本中修復。

有/是一種解決方法,但是當我遇到這個問題時,我記得它是相當複雜的。

我建議你使用Linux(虛擬)機器與Hadoop一起使用Mahout。

哦!有一個討論這個問題的Hadoop票(link)。

我也發現這個(link

+0

+1的建議。 Windows上的Hadoop大部分時間都是一團糟。 – Tariq

+0

+1修補程序鏈接。 – Assambar