Win下Eclipse提交hadoop程式出錯:org.apache.hadoop.security.AccessControlException: Permission denied: user=D
描述:在window下使用Eclipse進行hadoop的程式編寫,然後Run on hadoop 後,出現如下錯誤:
11/10/28 16:05:53 INFO mapred.JobClient: Running job: job_201110281103_0003
11/10/28 16:05:54 INFO mapred.JobClient: map 0% reduce 0%
11/10/28 16:06:05 INFO mapred.JobClient: Task Id : attempt_201110281103_0003_m_000002_0, Status : FAILED
org.apache.hadoop.security.AccessControlException: org.apache.hadoop.security.AccessControlException: Permission denied: user=DrWho, access=WRITE, inode="hadoop":hadoop:supergroup:rwxr-xr-x
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
解決方法:
到伺服器上修改hadoop的配置檔案:conf/hdfs-core.xml, 找到 dfs.permissions 的配置項 , 將value值改為 false
<property>
<name>dfs.permissions</name>
<value>false</value>
<description>
If "true", enable permission checking in HDFS.
If "false", permission checking is turned off,
but all other behavior is unchanged.
Switching from one parameter value to the other does not change the mode,
owner or group of files or directories.
</description>
</property>
修改完貌似要重啟下hadoop的程式才能生效
開發環境:win xp sp3 , Eclipse 3.3 , hadoop-0.20.2
hadoop伺服器部署環境: ubuntu 10.10 , hadoop-0.20.2
小結: 接觸Hadoop沒多久,不知道這樣修改對叢集的安全性有啥影響。
因為Eclipse使用hadoop外掛提交作業時,會預設以 DrWho 身份去將作業寫入hdfs檔案系統中,對應的也就是 HDFS 上的/user/xxx , 我的為/user/hadoop , 由於 DrWho 使用者對hadoop目錄並沒有寫入許可權,所以導致異常的發生。他提供的解決方法為:放開 hadoop 目錄的許可權 , 命令如下 :$ hadoop fs -chmod 777 /user/hadoop
相關文章
- git push出現Permission denied (publickey)錯誤Git
- 極速全景圖下載出錯顯示Permission denied怎麼回事
- Hive JDBC:Permission denied: user=anonymous, access=EXECUTE, inode=”/tmp”HiveJDBC
- nginx部署(13:Permission denied)報錯Nginx
- Android adb除錯出現:opendir failed, Permission deniedAndroid除錯AI
- Exception in thread "main" org.apache.hadoop.security.AccessControlException: Permission deniedUseExceptionthreadAIApacheHadoop
- Permission denied:user=xxx,access=WRITE,inode=xxx
- Ubuntu git pull 出現Permission denied ErrorUbuntuGitError
- hive建立分割槽表報錯AccessControlException Permission denied: user=NONE, access=WRITE, inodeHiveExceptionNone
- Permission denied: user=root, access=WRITE, inode="/":hadoopuser:supergroup:drwxr-xr-xHadoop
- Nginx報錯:Permission denied,沒有許可權!Nginx
- Access denied for user 'default'@'%' to database 'shop'報錯Database
- git出現Permission denied的解決辦法Git
- 【踩坑筆記】專案出現Permission denied筆記
- Hexo deploy git permission deniedHexoGit
- Python 執行報錯 PermissionError: [Errno 13] Permission denied: '***.***'PythonError
- Android Permission denied(不允許連線Socket) 錯誤Android
- laravel mysql批量提交報Access denied 錯誤LaravelMySql
- Python報錯:PermissionError: [Errno 13] Permission denied解決方案PythonError
- Angular macOS Err:EACCES: permission deniedAngularMac
- Permission Denied(publickey) 解決
- -bash: ./backup.sql: Permission deniedSQL
- Nginx: stat() failed (13: permission denied)NginxAI
- oracle程式命令的6571(Linux Error: 13: Permission denied)OracleLinuxError
- PHP中 mkdir: Permission denied 問題PHP
- adb remount of system failed: Permission deniedREMAI
- 解決方案 git@github.com出現Permission denied (publickey)Github
- Jenkins中構建(Build)Docker映象時出現permission deniedJenkinsUIDocker
- Sqoop import載入HBase過程中,遇到Permission denied: user=root, access=WRITE, inode="/user":hdfs:supergroup:drwxr-xr-xOOPImport
- 易優CMS後臺上傳圖片報錯mkdir(): Permission denied 報錯-eyoucms
- 【Android】Permission denied (missing INTERNET permission?)異常踩坑Android
- 解決“su: cannot open session: Permission denied”Session
- Error: Permission denied @ apply2filesErrorAPP
- PermissionError: [Errno 13] Permission denied 如何解決Error
- Cannot restore segment prot after reloc:Permission deniedREST
- 在Eclipse下除錯GlassFish程式Eclipse除錯
- windows下使用Eclipse執行MapReduce程式出錯: Failed to set...WindowsEclipseAI
- 除錯 rsh, rcp, rlogin, rdist 許可被拒(Permission Denied )問題(zt)除錯