HUE 打开 WorkFlow异常 Operation category READ is not supported in state standby
<div id="blogColumnPayAdvert">
<div class="column-group">
<div class="column-group-item column-group0 column-group-item-one">
<div class="item-l">
<a class="item-target" href="https://blog.csdn.net/zhangshenghang/category_8058027.html" target="_blank" title="Hue" data-report-click="{"spm":"1001.2101.3001.6332"}">
<img class="item-target" src="https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64" alt="">
<span class="title item-target">
<span>
<span class="tit">Hue</span>
<span class="dec">专栏收录该内容</span>
</span>
</span>
</a>
</div>
<div class="item-m">
<span>10 篇文章</span>
<span>0 订阅</span>
</div>
<div class="item-r">
<a class="item-target article-column-bt articleColumnFreeBt" data-id="8058027">订阅专栏</a>
</div>
</div>
</div>
</div>
<article class="baidu_pl">
<div id="article_content" class="article_content clearfix">
<link rel="stylesheet" href="https://csdnimg.cn/release/blogv2/dist/mdeditor/css/editerView/ck_htmledit_views-6e43165c0a.css">
<div id="content_views" class="htmledit_views">
<p>异常:在hue上配置的一些定时任务突然停止执行。</p>
1.打开页面HUE->WorkFlow 发现页面异常,无法进入WorkFlow,如下图
2.查看HUE日志
查看到WebHdfsException异常,访问HDFS文件浏览器报错,
-
[26/Jun/2019 09:29:55 +0800] exception ERROR Internal Server Error: /oozie/editor/workflow/new/
-
Traceback (most recent call last):
-
File
"/opt/cloudera/parcels/CDH-6.0.0-1.cdh6.0.0.p0.537114/lib/hue/build/env/lib/python2.7/site-packages/Django-1.11-py2.7.egg/django/core/handlers/exception.py", line
41, in inner
-
response =
get_response(request)
-
File
"/opt/cloudera/parcels/CDH-6.0.0-1.cdh6.0.0.p0.537114/lib/hue/build/env/lib/python2.7/site-packages/Django-1.11-py2.7.egg/django/core/handlers/base.py", line
249, in _legacy_get_response
-
response = self.
_get_response(request)
-
File
"/opt/cloudera/parcels/CDH-6.0.0-1.cdh6.0.0.p0.537114/lib/hue/build/env/lib/python2.7/site-packages/Django-1.11-py2.7.egg/django/core/handlers/base.py", line
187, in _get_response
-
response = self.
process_exception_by_middleware(e, request)
-
File
"/opt/cloudera/parcels/CDH-6.0.0-1.cdh6.0.0.p0.537114/lib/hue/build/env/lib/python2.7/site-packages/Django-1.11-py2.7.egg/django/core/handlers/base.py", line
185, in _get_response
-
response =
wrapped_callback(request, *callback_args, **callback_kwargs)
-
File
"/opt/cloudera/parcels/CDH-6.0.0-1.cdh6.0.0.p0.537114/lib/hue/build/env/lib/python2.7/site-packages/Django-1.11-py2.7.egg/django/utils/decorators.py", line
185, in inner
-
return
func(*args, **kwargs)
-
File
"/opt/cloudera/parcels/CDH-6.0.0-1.cdh6.0.0.p0.537114/lib/hue/apps/oozie/src/oozie/decorators.py", line
113, in decorate
-
return
view_func(request, *args, **kwargs)
-
File
"/opt/cloudera/parcels/CDH-6.0.0-1.cdh6.0.0.p0.537114/lib/hue/apps/oozie/src/oozie/views/editor2.py", line
130, in new_workflow
-
workflow.
check_workspace(request.fs, request.user)
-
File
"/opt/cloudera/parcels/CDH-6.0.0-1.cdh6.0.0.p0.537114/lib/hue/apps/oozie/src/oozie/models2.py", line
94, in check_workspace
-
create_directories(fs, [REMOTE_SAMPLE_DIR.
get()])
-
File
"/opt/cloudera/parcels/CDH-6.0.0-1.cdh6.0.0.p0.537114/lib/hue/desktop/libs/liboozie/src/liboozie/submission2.py", line
520, in create_directories
-
if not fs.
do_as_user(fs.DEFAULT_USER, fs.exists, directory):
-
File
"/opt/cloudera/parcels/CDH-6.0.0-1.cdh6.0.0.p0.537114/lib/hue/desktop/core/src/desktop/lib/fs/proxyfs.py", line
102, in do_as_user
-
return
fn(*args, **kwargs)
-
File
"/opt/cloudera/parcels/CDH-6.0.0-1.cdh6.0.0.p0.537114/lib/hue/desktop/core/src/desktop/lib/fs/proxyfs.py", line
136, in exists
-
return self.
_get_fs(path).
exists(path)
-
File
"/opt/cloudera/parcels/CDH-6.0.0-1.cdh6.0.0.p0.537114/lib/hue/desktop/libs/hadoop/src/hadoop/fs/webhdfs.py", line
297, in exists
-
return self.
_stats(path) is not None
-
File
"/opt/cloudera/parcels/CDH-6.0.0-1.cdh6.0.0.p0.537114/lib/hue/desktop/libs/hadoop/src/hadoop/fs/webhdfs.py", line
285, in _stats
-
raise ex
-
WebHdfsException:
403 Client Error: Forbidden for url: http://host009:
9870/webhdfs/v1/user/hue/oozie/deployments/_%
24USER_-oozie-%
24JOBID-%
24TIME?op=GETFILESTATUS&user.name=hue&doas=hue
-
{"RemoteException":{"exception":
"StandbyException",
"javaClassName":
"org.apache.hadoop.ipc.StandbyException",
"message":
"Operation category READ is not supported in state standby. Visit https://s.apache.org/sbnn-error"}} (error
403)
-
[26/Jun/2019 09:29:55 +0800] access ERROR
10.248.
111.1 sss - "POST /desktop/log_js_error HTTP/
1.1"-- JS ERROR: {"msg":
"TypeError: _super is undefined",
"url":
"http://10.248.111.111:8888/static/desktop/js/popover-extra-placements.b89dd43e6070.js",
"line":
14,
"column":
3,
"stack":
"@http://10.248.111.111:8888/static/desktop/js/popover-extra-placements.b89dd43e6070.js:14:3\n@http://10.248.111.111:8888/static/desktop/js/popover-extra-placements.b89dd43e6070.js:113:3\n"}
发现到WebHdfsException异常,访问HDFS文件浏览器报错,异常中 host009:9870 就是我备用NameNode的 Web UI端口
3.异常解决方案1:
我有两个NameNode,可能是之前一个NameNode异常了,HUE切换到另外一个NameNode进行访问,但是拒绝访问,重启NameNode后再次访问HUE->WorkFlow恢复正常。
3.异常解决方案2:
在HUE中修改连接的NameNode,选择现在活动的那个Namenode
</article>