尝试从表运行select count(*)查询时在配置单元中获取错误

34gzjxbg  于 2021-06-25  发布在  Hive
关注(0)|答案(1)|浏览(390)

我正在使用hadoop-2.10.0,上面安装了hive。我可以创建表、更改表并对其执行select查询,但当我尝试为表选择count()查询时,我得到了job failure error。再查一次日志

Application application_1587095329681_0006 failed 2 times due to AM Container for appattempt_1587095329681_0006_000002 exited with exitCode: 1
Failing this attempt.Diagnostics: [2020-04-17 11:20:46.294]Exception from container-launch.
Container id: container_1587095329681_0006_02_000001
Exit code: 1
Exception message: CreateSymbolicLink error (1314): A required privilege is not held by the client.
Shell output: 1 file(s) moved.
"Setting up env variables"
"Setting up job resources"
[2020-04-17 11:20:46.295]Container exited with a non-zero exit code 1.
[2020-04-17 11:20:46.296]Container exited with a non-zero exit code 1.
For more detailed output, check the application tracking page: http://Watson:8088/cluster/app/application_1587095329681_0006 Then click on links to logs of each attempt.
. Failing the application

看起来像是权限错误,所以我把chmod755给了/user/hive/warehouse。但还是有同样的问题。
操作系统:windows 7
hadoop版本:2.10.0
配置单元版本:2.1.0

kcwpcxri

kcwpcxri1#

尝试以下步骤
在管理模式下打开命令提示符导航到hadoopsbin目录
打开start-dfs.cmd
打开start-yarn.cmd
运行脚本

相关问题