我试图在hue浏览器中的hive编辑器中放置一些基本查询,但它返回以下错误,而我的Hivecli工作正常并能够执行查询。有人能帮助我吗?
获取结果遇到以下错误:
请求TFetchResultsReq的错误状态(fetchType = 1, operationHandle = TOperationHandle(hasResultSet =真, modifiedRowCount = None,operationType = 0, operationId = THandleIdentifier(秘密= 'R \ t \ X80 \西飞\ 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 =“不能 查找与操作句柄关联的日志:OperationHandle [OPTYPE = EXECUTE_STATEMENT, getHandleIdentifier()= 85320c87-627f-4ae2-9fee-00c9ee6f06bc]”, SQLSTATE =无, infoMessages =“* org.apache.hive.service.cli.HiveSQLException:无法 查找与操作句柄关联的日志: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:调用:: - 1', 'sun.reflect.DelegatingMethodAccessorImpl:调用:DelegatingMethodAccessorImpl.java:43', 'java.lang.reflect.Method中:调用:Method.java:606', 'org.apache.hive.service.cli.session.HiveSessionProxy:调用:HiveSessionProxy.java:78', 'org.apache.hive.service.cli.session.HiveSessionProxy:获得$ 000:HiveSessionProxy.java:36' 'org.apache.hive.service.cli.session.HiveSessionProxy $ 1:运行: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:调用: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 $处理器$ FetchResults:的getResult:TCLIService.java:1553', 'org.apache.hive.service.cli.thrift.TCLIService $处理器$ FetchResults:的getResult:TCLIService.java:1538', 'org.apache.thrift.ProcessFunction:过程:ProcessFunction.java:39', 'org.apache.thrift.TBaseProcessor:过程:TBaseProcessor.java:39', 'org.apache.hive.service.auth.TSetIpAddressProcessor:过程:TSetIpAddressProcessor.java:56', 'org.apache.thrift.server.TThreadPoolServer $ WorkerProcess:运行:TThreadPoolServer.java:285', 'java.util.concurrent.ThreadPoolExecutor中:runWorker:ThreadPoolExecutor.java:1145', 'java.util.concurrent.ThreadPoolExecutor中的$工人:运行:ThreadPoolExecutor.java:615', 'java.lang.Thread:run:Thread.java:745'],statusCode = 3),results = None, hasMoreRows =无)
答案 0 :(得分:0)
此错误可能是由于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
。