Hadoop Hive 无法将源移动到目标 [英] Hadoop Hive unable to move source to destination

查看:43
本文介绍了Hadoop Hive 无法将源移动到目标的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在 Hadoop 2.6.0 上使用 Hive 1.2.0.我创建了一个 employee 表.但是,当我运行以下查询时:

I am trying to use Hive 1.2.0 over Hadoop 2.6.0. I have created an employee table. However, when I run the following query:

hive> load data local inpath '/home/abc/employeedetails' into table employee;

我收到以下错误:

Failed with exception Unable to move source file:/home/abc/employeedetails to destination hdfs://localhost:9000/user/hive/warehouse/employee/employeedetails_copy_1
FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.MoveTask

我在这里做错了什么?我需要设置任何特定权限吗?提前致谢!

What wrong am I doing here? Are there any specific permissions that I need to set? Thanks in advance!

推荐答案

正如 Rio 所提到的,问题涉及缺乏将数据加载到 hive 表的权限.我发现以下命令可以解决我的问题:

As mentioned by Rio, the issue involved lack of permissions to load data into hive table. I figures out the following command solves my problems:

hadoop fs -chmod g+w /user/hive/warehouse

这篇关于Hadoop Hive 无法将源移动到目标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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