解决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

转载于:https://www.cnblogs.com/aprilrain/p/7118964.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
这个误提示"Connection timed out: no further information"通常表示连接超时,没有更多的信息提供。根据引用中的描述,可能有以下几个原因导致这个问题: 1. 首先,需要检查网络连接是否正常。可以使用Hue工具进行访问测试,确保网络连接没有问题。 2. 其次,需要检查Zookeeper是否已经启动。可以使用命令"telnet zookeeper地址 端口"来检查Zookeeper是否可用。 3. 最后,还需要检查Hue中的Hdfs节点是否正常运行。如果某个Hdfs节点挂掉了,也会导致这个误。 希望这些信息对您有帮助!<span class="em">1</span><span class="em">2</span><span class="em">3</span> #### 引用[.reference_title] - *1* *3* [Connection timed out: no further information和Zookeeper is not connected yet!](https://blog.csdn.net/zcyf0809/article/details/103681756)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"] - *2* [Hdfs连接java.net.ConnectException: Connection timed out: no further information](https://blog.csdn.net/ZGL_cyy/article/details/120706510)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"] [ .reference_list ]
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值