写文件出错~求问

31 views
Skip to first unread message

iama...@gmail.com

unread,
Jul 28, 2014, 4:21:18 AM7/28/14
to cs40...@googlegroups.com
Caused by: org.apache.hadoop.ipc.RemoteException: org.apache.hadoop.security.AccessControlException: Permission denied: user=hadoop, access=WRITE, inode="OuyangYiqun":OuyangYiqun:cs402:rwxr-xr-x

看起来像是拒绝写入了的样子~
是什么错啊?为了找错还需要我补充什么细节我再贴出来
是代码写错了还是设置出错了

Han Jiang

unread,
Jul 28, 2014, 4:23:15 AM7/28/14
to cs402pku
同学你好,我是助教,你直接把代码发给我吧,不用发组里了。
> --
> You received this message because you are subscribed to the Google Groups
> "cs402pku" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to cs402pku+u...@googlegroups.com.
> To post to this group, send email to cs40...@googlegroups.com.
> Visit this group at http://groups.google.com/group/cs402pku.
> For more options, visit https://groups.google.com/d/optout.



--
Han Jiang

Team of Search Engine and Web Mining,
School of Electronic Engineering and Computer Science,
Peking University, China

苑斌

unread,
Jul 28, 2014, 4:32:39 AM7/28/14
to cs40...@googlegroups.com
你是不是写到public里面了。。。。。我也犯过这个错误。貌似只有cs402文件夹下的有修改权限?

在 2014年7月28日星期一UTC+8下午4时21分18秒,iama...@gmail.com写道:

iama...@gmail.com

unread,
Jul 28, 2014, 4:35:15 AM7/28/14
to cs40...@googlegroups.com, h...@apache.org
那我发作业那个邮箱里面啦!谢谢助教!

Sui Li

unread,
Jul 28, 2014, 4:58:31 AM7/28/14
to cs40...@googlegroups.com
路过猜测是你在mapper或reducer中直接new了jobconf而没有获得任务的conf吧.
在出错处加一行
conf.set("hadoop.job.ugi","OuyangYiqun,cs402");
就好
李睢
SEWM
CS
PKU

iama...@gmail.com

unread,
Jul 28, 2014, 6:25:09 AM7/28/14
to cs40...@googlegroups.com
已解决!谢谢助教la
Reply all
Reply to author
Forward
0 new messages