【发布时间】:2018-04-01 23:09:39
【问题描述】:
我正在尝试使用 hadoop 用户以外的用户运行 hive。 当我运行 hive 时,出现以下错误。我猜 Hive 正在尝试访问根目录。如何将 inode 目录更改为 /user/fratboy?我已经在 hdfs 中创建了这个并将所有者更改为 fratboy。
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/usr/local/hadoop/hive/lib/log4j-slf4j-
impl-2.6.2.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in
[jar:file:/usr/local/hadoop/share/hadoop/common/lib/slf4j-log4j12-
1.7.25.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an
explanation.
SLF4J: Actual binding is of type
[org.apache.logging.slf4j.Log4jLoggerFactory]
Logging initialized using configuration in
jar:file:/usr/local/hadoop/hive/lib/hive-common-2.3.2.jar!/hive-
log4j2.properties Async: true
Exception in thread "main" java.lang.RuntimeException:
org.apache.hadoop.security.AccessControlException: Permission denied:
user=fratboy, access=WRITE, inode="/":hduser:supergroup:drwxr-xr-x
【问题讨论】:
-
向我们展示您的代码,以便我们了解您是如何创建表并使用不同的 id 来执行它的