gpt4 book ai didi

hadoop - Hive浏览器抛出错误

转载 作者:行者123 更新时间:2023-12-02 21:04:04 28 4
gpt4 key购买 nike

我正在尝试在hue浏览器的hive编辑器中放置一些基本查询,但是它返回以下错误,而我的Hivecli可以正常工作并能够执行查询。有人可以帮我吗?

提取结果遇到以下错误:

Bad status for request TFetchResultsReq(fetchType=1, operationHandle=TOperationHandle(hasResultSet=True, modifiedRowCount=None, operationType=0, operationId=THandleIdentifier(secret='r\t\x80\xac\x1a\xa0K\xf8\xa4\xa0\x85?\x03!\x88\xa9', guid='\x852\x0c\x87b\x7fJ\xe2\x9f\xee\x00\xc9\xeeo\x06\xbc')), orientation=4, maxRows=-1): TFetchResultsResp(status=TStatus(errorCode=0, errorMessage="Couldn't find log associated with operation handle: OperationHandle [opType=EXECUTE_STATEMENT, getHandleIdentifier()=85320c87-627f-4ae2-9fee-00c9ee6f06bc]", sqlState=None, infoMessages=["*org.apache.hive.service.cli.HiveSQLException:Couldn't find log associated with operation handle: OperationHandle [opType=EXECUTE_STATEMENT, getHandleIdentifier()=85320c87-627f-4ae2-9fee-00c9ee6f06bc]:24:23", 'org.apache.hive.service.cli.operation.OperationManager:getOperationLogRowSet:OperationManager.java:229', 'org.apache.hive.service.cli.session.HiveSessionImpl:fetchResults:HiveSessionImpl.java:687', 'sun.reflect.GeneratedMethodAccessor14:invoke::-1', 'sun.reflect.DelegatingMethodAccessorImpl:invoke:DelegatingMethodAccessorImpl.java:43', 'java.lang.reflect.Method:invoke:Method.java:606', 'org.apache.hive.service.cli.session.HiveSessionProxy:invoke:HiveSessionProxy.java:78', 'org.apache.hive.service.cli.session.HiveSessionProxy:access$000:HiveSessionProxy.java:36', 'org.apache.hive.service.cli.session.HiveSessionProxy$1:run:HiveSessionProxy.java:63', 'java.security.AccessController:doPrivileged:AccessController.java:-2', 'javax.security.auth.Subject:doAs:Subject.java:415', 'org.apache.hadoop.security.UserGroupInformation:doAs:UserGroupInformation.java:1657', 'org.apache.hive.service.cli.session.HiveSessionProxy:invoke:HiveSessionProxy.java:59', 'com.sun.proxy.$Proxy19:fetchResults::-1', 'org.apache.hive.service.cli.CLIService:fetchResults:CLIService.java:454', 'org.apache.hive.service.cli.thrift.ThriftCLIService:FetchResults:ThriftCLIService.java:672', 'org.apache.hive.service.cli.thrift.TCLIService$Processor$FetchResults:getResult:TCLIService.java:1553', 'org.apache.hive.service.cli.thrift.TCLIService$Processor$FetchResults:getResult:TCLIService.java:1538', 'org.apache.thrift.ProcessFunction:process:ProcessFunction.java:39', 'org.apache.thrift.TBaseProcessor:process:TBaseProcessor.java:39', 'org.apache.hive.service.auth.TSetIpAddressProcessor:process:TSetIpAddressProcessor.java:56', 'org.apache.thrift.server.TThreadPoolServer$WorkerProcess:run:TThreadPoolServer.java:285', 'java.util.concurrent.ThreadPoolExecutor:runWorker:ThreadPoolExecutor.java:1145', 'java.util.concurrent.ThreadPoolExecutor$Worker:run:ThreadPoolExecutor.java:615', 'java.lang.Thread:run:Thread.java:745'], statusCode=3), results=None, hasMoreRows=None)

最佳答案

此错误可能是由于HiveServer2未运行,或者是Hue无法访问hive_conf_dir

检查HiveServer2是否已启动并正在运行。默认情况下,它使用端口10000

netstat -ntpl | grep 10000

如果未运行,请启动 HiveServer2
$HIVE_HOME/bin/hiveserver2

还要检查Hue配置文件 hue.ini。必须在 hive_conf_dir部分下设置 [beeswax]属性。如果未设置,请在 [beeswax]下添加此属性
hive_conf_dir=$HIVE_HOME/conf
进行这些更改后,重新启动 supervisor

关于hadoop - Hive浏览器抛出错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42467442/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com