在oozie:User:root中运行spark操作时出错,不允许模拟root

在oozie:User:root中运行spark操作时出错,不允许模拟root,oozie,Oozie,我已经在AWS上以root用户身份安装了oozie-4.2,并且正在以root用户身份运行工作流 我在oozie-site.xml中添加了以下内容 <property> <name>oozie.service.ProxyUserService.proxyuser.root.hosts</name> <value>*</value> </property> <property> <name&g

我已经在AWS上以root用户身份安装了oozie-4.2,并且正在以root用户身份运行工作流

我在oozie-site.xml中添加了以下内容

<property>
<name>oozie.service.ProxyUserService.proxyuser.root.hosts</name>
    <value>*</value>
</property>
<property>
    <name>oozie.service.ProxyUserService.proxyuser.root.groups</name>
    <value>*</value>
</property>
启动基于spark action的工作流时,会出现以下错误:

Message [JA002: User: root is not allowed to impersonate root]
org.apache.oozie.action.ActionExecutorException: JA002: User: root is not allowed to impersonate root
at 

org.apache.oozie.action.ActionExecutor.convertExceptionHelper(ActionExecutor.java:462)
    at org.apache.oozie.action.ActionExecutor.convertException(ActionExecutor.java:436)
    at org.apache.oozie.action.hadoop.JavaActionExecutor.submitLauncher(JavaActionExecutor.java:1132)
    at org.apache.oozie.action.hadoop.JavaActionExecutor.start(JavaActionExecutor.java:1286)
    at org.apache.oozie.command.wf.ActionStartXCommand.execute(ActionStartXCommand.java:250)
    at org.apache.oozie.command.wf.ActionStartXCommand.execute(ActionStartXCommand.java:64)
    at org.apache.oozie.comma

有人能帮我解决我做错了什么吗?

我相信你的第一句话很明确:你在服务用户
root
下运行Oozie,并用它为最终用户
root
启动Linux进程。这完全不是一件“错误”的事情,而是一件“邪恶”的事情。Hadoop有一些健全的检查来防止这些邪恶的事情发生。我相信你的第一句话是明确的:你在服务用户
root
下运行Oozie,并使用它为最终用户
root
启动Linux进程。这完全不是一件“错误”的事情,而是一件“邪恶”的事情。Hadoop有一些健全的检查来防止这些邪恶的事情发生。
2016-02-03 07:12:22,987  WARN ConfigurationService:523 - SERVER[]
Invalid configuration defined,
[oozie.service.ProxyUserService.proxyuser.root.groups] 
2016-02-03 07:12:22,987  WARN ConfigurationService:523 - SERVER[]
Invalid configuration defined, 
[oozie.service.ProxyUserService.proxyuser.root.hosts] 
Message [JA002: User: root is not allowed to impersonate root]
org.apache.oozie.action.ActionExecutorException: JA002: User: root is not allowed to impersonate root
at 

org.apache.oozie.action.ActionExecutor.convertExceptionHelper(ActionExecutor.java:462)
    at org.apache.oozie.action.ActionExecutor.convertException(ActionExecutor.java:436)
    at org.apache.oozie.action.hadoop.JavaActionExecutor.submitLauncher(JavaActionExecutor.java:1132)
    at org.apache.oozie.action.hadoop.JavaActionExecutor.start(JavaActionExecutor.java:1286)
    at org.apache.oozie.command.wf.ActionStartXCommand.execute(ActionStartXCommand.java:250)
    at org.apache.oozie.command.wf.ActionStartXCommand.execute(ActionStartXCommand.java:64)
    at org.apache.oozie.comma