security.UserGroupInformation:MR的PriviledgedActionException错误 [英] security.UserGroupInformation: PriviledgedActionException error for MR

查看:657
本文介绍了security.UserGroupInformation:MR的PriviledgedActionException错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

无论何时我试图执行映射reduce作业来写入Hbase表,我在控制台中收到以下错误。我从用户帐户运行MR作业。



错误security.UserGroupInformation:PriviledgedActionException as:user cause:org.apache.hadoop.mapreduce.lib.input.InvalidInputException :输入路径不存在:file:/data1/input/Filename.csv



我做过hadoop ls,用户是文件的所有者。



-rw-r - r-- 1个用户超级组7998682 2014-04-17 18:49 /data1/input/Filename.csv

我的所有守护进程都正常运行,如果我使用的是hbase client api,我可以插入。



请提前帮助, p>

感谢,
KG

解决方案

以下路径

输入路径不存在: file: /data1/input/Filename.csv

你可以看到它指向的是本地文件系统而不是hdfs。尝试在路径中为文件系统类型hdfs加上前缀:

  hdfs://< NAMENODE-HOST>:< IPC- PORT> /data1/input/Filename.csv 


Whenever i m trying to execute a map reduce job to write to Hbase table i am getting the following error in the console. I am running the MR job from the user account.

ERROR security.UserGroupInformation: PriviledgedActionException as:user cause:org.apache.hadoop.mapreduce.lib.input.InvalidInputException: Input path does not exist: file:/data1/input/Filename.csv

I did the hadoop ls, user is the owner of the file.

-rw-r--r-- 1 user supergroup 7998682 2014-04-17 18:49 /data1/input/Filename.csv

All my daemons are perfectly running, if i am using hbase client api, i am able to insert.

Please help, thanks in advance.

Thanks, KG

解决方案

If you look at the following path

Input path does not exist: file:/data1/input/Filename.csv

you can see that it is pointing to local filesystem not to hdfs. Try prefixing the filesystem type hdfs in the path as follows

hdfs://<NAMENODE-HOST>:<IPC-PORT>/data1/input/Filename.csv

这篇关于security.UserGroupInformation:MR的PriviledgedActionException错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆