我以用户“root”的身份执行flume代理,在这里我要复制保存在该位置的xml文件 /root/data-pipeline/input
到hdfs中的目标位置 hdfs:///user/root/data_pipeline_demo/input..
当我执行flume代理时 flume-ng agent -c /etc/flume/conf -f /etc/flume/conf/flume.conf -n sandbox
…它没有将文件写入目标位置并引发异常:
org.apache.hadoop.ipc.RemoteException
(org.apache.hadoop.security.authorize.AuthorizationException):
User: root is not allowed to impersonate root..
哪里出了问题?我缺少一些配置吗?
1条答案
按热度按时间xt0899hw1#
我认为您需要更改模拟设置以匹配hdfs设置。我不熟悉你的设置,但几乎可以肯定你没有使用根用户在hadoop上。如果您更改设置以匹配hdfs用户,它将开始工作。