CDH通过hue提交oozie coordinator 报错
本帖最后由 kingba 于 2018-3-29 08:53 编辑return user.is_superuser or self.owner == user or self.can_write(user) or has_read_permissions
is_superuser 没有这个属性,怀疑是 没有获取到 user对象,不知道怎么个情况。
请帮忙分析下谢谢。。
CDH启用了 kerberos
middlewareProcessing exception: 'NoneType' object has no attribute 'is_superuser': Traceback (most recent call last):File "/opt/cloudera/parcels/CDH-5.13.1-1.cdh5.13.1.p0.2/lib/hue/build/env/lib/python2.7/site-packages/Django-1.6.10-py2.7.egg/django/core/handlers/base.py", line 112, in get_response response = wrapped_callback(request, *callback_args, **callback_kwargs)File "/opt/cloudera/parcels/CDH-5.13.1-1.cdh5.13.1.p0.2/lib/hue/build/env/lib/python2.7/site-packages/Django-1.6.10-py2.7.egg/django/db/transaction.py", line 371, in inner return func(*args, **kwargs)File "/opt/cloudera/parcels/CDH-5.13.1-1.cdh5.13.1.p0.2/lib/hue/apps/oozie/src/oozie/decorators.py", line 113, in decorate return view_func(request, *args, **kwargs)File "/opt/cloudera/parcels/CDH-5.13.1-1.cdh5.13.1.p0.2/lib/hue/apps/oozie/src/oozie/decorators.py", line 75, in decorate return view_func(request, *args, **kwargs)File "/opt/cloudera/parcels/CDH-5.13.1-1.cdh5.13.1.p0.2/lib/hue/apps/oozie/src/oozie/views/editor2.py", line 674, in submit_coordinator job_id = _submit_coordinator(request, coordinator, mapping)File "/opt/cloudera/parcels/CDH-5.13.1-1.cdh5.13.1.p0.2/lib/hue/apps/oozie/src/oozie/views/editor2.py", line 700, in _submit_coordinator wf_dir = Submission(request.user, wf, request.fs, request.jt, mapping, local_tz=coordinator.data['properties']['timezone']).deploy()File "/opt/cloudera/parcels/CDH-5.13.1-1.cdh5.13.1.p0.2/lib/hue/desktop/libs/liboozie/src/liboozie/submission2.py", line 291, in deploy oozie_xml = self.job.to_xml(self.properties)File "/opt/cloudera/parcels/CDH-5.13.1-1.cdh5.13.1.p0.2/lib/hue/apps/oozie/src/oozie/models2.py", line 459, in to_xml 'workflow_mapping': workflow_mappingFile "/opt/cloudera/parcels/CDH-5.13.1-1.cdh5.13.1.p0.2/lib/hue/desktop/core/src/desktop/lib/django_mako.py", line 114, in render_to_string_normal result = template.render(**data_dict)File "/opt/cloudera/parcels/CDH-5.13.1-1.cdh5.13.1.p0.2/lib/hue/build/env/lib/python2.7/site-packages/Mako-0.8.1-py2.7.egg/mako/template.py", line 443, in render return runtime._render(self, self.callable_, args, data)File "/opt/cloudera/parcels/CDH-5.13.1-1.cdh5.13.1.p0.2/lib/hue/build/env/lib/python2.7/site-packages/Mako-0.8.1-py2.7.egg/mako/runtime.py", line 786, in _render **_kwargs_for_callable(callable_, data))File "/opt/cloudera/parcels/CDH-5.13.1-1.cdh5.13.1.p0.2/lib/hue/build/env/lib/python2.7/site-packages/Mako-0.8.1-py2.7.egg/mako/runtime.py", line 818, in _render_context _exec_template(inherit, lclcontext, args=args, kwargs=kwargs)File "/opt/cloudera/parcels/CDH-5.13.1-1.cdh5.13.1.p0.2/lib/hue/build/env/lib/python2.7/site-packages/Mako-0.8.1-py2.7.egg/mako/runtime.py", line 844, in _exec_template callable_(context, *args, **kwargs)File "/tmp/tmplahySW/oozie/editor2/gen/workflow.xml.mako.py", line 110, in render_body __M_writer( node.to_xml(mapping, node_mapping, workflow_mapping) )File "/opt/cloudera/parcels/CDH-5.13.1-1.cdh5.13.1.p0.2/lib/hue/apps/oozie/src/oozie/models2.py", line 821, in to_xml notebook = Notebook(document=Document2.objects.get_by_uuid(user=self.user, uuid=self.data['properties']['uuid']))File "/opt/cloudera/parcels/CDH-5.13.1-1.cdh5.13.1.p0.2/lib/hue/desktop/core/src/desktop/models.py", line 975, in get_by_uuid latest_doc.can_read_or_exception(user)File "/opt/cloudera/parcels/CDH-5.13.1-1.cdh5.13.1.p0.2/lib/hue/desktop/core/src/desktop/models.py", line 1305, in can_read_or_exception if self.can_read(user):File "/opt/cloudera/parcels/CDH-5.13.1-1.cdh5.13.1.p0.2/lib/hue/desktop/core/src/desktop/models.py", line 1302, in can_read return user.is_superuser or self.owner == user or self.can_write(user) or has_read_permissionsAttributeError: 'NoneType' object has no attribute 'is_superuser'
我遇到过的权限问题,在action中,添加了指定用户,就好了。
我是直接oozie命令提交的。
楼主可以参考下:
<env-var>HADOOP_USER_NAME=yarn</env-var>
或者
<env-var>HADOOP_USER_NAME=${wf:user()}</env-var>
两种写法都可以。 feature09 发表于 2018-3-29 09:21
我遇到过的权限问题,在action中,添加了指定用户,就好了。
我是直接oozie命令提交的。
楼主可以参考下 ...
添加了参数还是不行,头大了
我的是添加在了workflow中的action中。。。不是一个位置。
可能遇到的问题还是不一样,帮不了太多了。。
我google了一下你的错误,发现了这个页面:
https://issues.cloudera.org/browse/HUE-7919
这里跟你的错误一模一样。。。
或许真是个bug?
你试试把coordinator拿掉,只执行workflow,能不能成功吧。 feature09 发表于 2018-3-29 10:03
我的是添加在了workflow中的action中。。。不是一个位置。
可能遇到的问题还是不一样,帮不了太多了。。
...
google这个错误就是我加上的啊,没人回复。
解决了吗?我也碰到这个一样的问题,workflow执行没有问题,加到任务调度,就这个错误 我也是遇到了这个问题,各位大大,这个怎么解决的呢? 表示也遇到这个问题,提交需要访问hdfs上文件的应用程序就会出现该问题,实在不行只能用client命令或者api去调度了
我也遇到了这个问题,楼主解决了吗 sanyechong12 发表于 2018-10-12 17:02
我也是遇到了这个问题,各位大大,这个怎么解决的呢?
请问你的解决了吗
页:
[1]
2