zoukankan      html  css  js  c++  java
  • 解决hue报错:timed out (code THRIFTSOCKET): None

    报错栈:

    [15/Jun/2017 19:25:15 +0800] decorators   ERROR    error running <function execute at 0x7fba2804ecf8>
    Traceback (most recent call last):
      File "/home/work/hue-3.10.0/desktop/libs/notebook/src/notebook/decorators.py", line 81, in decorator
        return func(*args, **kwargs)
      File "/home/work/hue-3.10.0/desktop/libs/notebook/src/notebook/api.py", line 109, in execute
        response['handle'] = get_api(request, snippet).execute(notebook, snippet)
      File "/home/work/hue-3.10.0/desktop/libs/notebook/src/notebook/connectors/hiveserver2.py", line 64, in decorator
        return func(*args, **kwargs)
      File "/home/work/hue-3.10.0/desktop/libs/notebook/src/notebook/connectors/hiveserver2.py", line 199, in execute
        db.use(query.database)
      File "/home/work/hue-3.10.0/apps/beeswax/src/beeswax/server/dbms.py", line 613, in use
        return self.client.use(query)
      File "/home/work/hue-3.10.0/apps/beeswax/src/beeswax/server/hive_server2_lib.py", line 1053, in use
        data = self._client.execute_query(query)
      File "/home/work/hue-3.10.0/apps/beeswax/src/beeswax/server/hive_server2_lib.py", line 748, in execute_query
        return self.execute_query_statement(statement=query.query['query'], max_rows=max_rows, configuration=configuration)
      File "/home/work/hue-3.10.0/apps/beeswax/src/beeswax/server/hive_server2_lib.py", line 752, in execute_query_statement
        (results, schema), operation_handle = self.execute_statement(statement=statement, max_rows=max_rows, configuration=configuration, orientation=orientation)
      File "/home/work/hue-3.10.0/apps/beeswax/src/beeswax/server/hive_server2_lib.py", line 780, in execute_statement
        res = self.call(self._client.ExecuteStatement, req)
      File "/home/work/hue-3.10.0/apps/beeswax/src/beeswax/server/hive_server2_lib.py", line 636, in call
        res = getattr(self._client, fn.attr)(req)
      File "/home/work/hue-3.10.0/desktop/core/src/desktop/lib/thrift_util.py", line 376, in wrapper
        raise StructuredException('THRIFTSOCKET', str(e), data=None, error_code=502)
    StructuredException: timed out (code THRIFTSOCKET): None

    解决:适当调大超时时间

    # Timeout in seconds for thrift calls to Hive service

    server_conn_timeout=120

  • 相关阅读:
    暴破助攻提权:ruadmin
    Python 绝技 —— TCP服务器与客户端
    代码审计| HDWiki 漏洞(一)
    Android逆向——smali复杂类解析
    从外部入侵公司:外部渗透测试
    大脸猫讲逆向之ARM汇编中PC寄存器详解
    Ms17-010进行WEB提权之实践下某培训靶机服务器
    XSS钓鱼某网约车后台一探究竟,乘客隐私暴露引发思考
    python爬虫实践教学
    Swif语法基础 要点归纳(一)
  • 原文地址:https://www.cnblogs.com/aprilrain/p/7118964.html
Copyright © 2011-2022 走看看