我正在使用Twitter Twitter数据处理HIVE。到目前为止,我已经成功创建了表并将数据加载到其中,但是当我想对该外部表运行查询时,出现以下错误。
请求TFetchResultsReq(fetchType = 0,operationHandle = TOperationHandle(hasResultSet = True,modifiedRowCount = None,operationType = 0,operationId = THandleIdentifier(secret ='#\ xabp \ xa3 \ xa7 \ x83K \ xc6 \ x82 \ x94h \ xc3 \ x99 \ xe4 \ x81 \ x01',guid ='\ xae \ xb2 \ x9d \ x19 \ xdc \ xb2 @ i \ xbc \\ x85 \ xb4 \ xd0 \ xfe \ x0cN')),方向= 4 ,maxRows = 100):TFetchResultsResp(status = TStatus(errorCode = 0,errorMessage =“ java.io.IOException:org.apache.hadoop.hive.serde2.SerDeException:org.codehaus.jackson.JsonParseException:意外字符('O '(代码79)):应为有效值(数字,字符串,数组,对象,“ true”,“ false”或“ null”)\ n,位于[来源:java.io.ByteArrayInputStream@19ee3d8e;第1行:列:2]“,sqlState = None,infoMessages = [” * org.apache.hive.service.cli.HiveSQLException:java.io.IOException:org.apache.hadoop.hive.serde2.SerDeException:org.codehaus.jackson .JsonParseException:意外字符(“ O”(代码79)):预期为有效值(数字,字符串,数组,对象,“真”,“假”或“空”)\ n在[来源:java.io.ByteArrayInputStream@19ee3d8e;行:1,列:2]:26:25“,'org.apache.hive.service.cli.operation.SQLOperation:getNextRowSet:SQLOperation.java:463','org.apache.hive.service.cli.operation .OperationManager:getOperationNextRowSet:OperationManager.java:294','org.apache.hive.service.cli.session.HiveSessionImpl:fetchResults:HiveSessionImpl.java:769','sun.reflect.NativeMethodAccessorImpl:invoke0:NativeMethodAccessorImpl.java:- 2','sun.reflect.NativeMethodAccessorImpl:invoke:NativeMethodAccessorImpl.java:57','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.j ava:415','org.apache.hadoop.security.UserGroupInformation:doAs:UserGroupInformation.java:1917','org.apache.hive.service.cli.session.HiveSessionProxy:invoke:HiveSessionProxy.java:59',' com.sun.proxy。$ Proxy26:fetchResults ::-1','org.apache.hive.service.cli.CLIService:fetchResults:CLIService.java:462','org.apache.hive.service.cli.thrift .ThriftCLIService:FetchResults:ThriftCLIService.java:694','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:286','java .util.concurrent.ThreadPoolExecutor:runWorker:ThreadPoolExecutor.ja va:1145','java.util.concurrent.ThreadPoolExecutor $ Worker:run:ThreadPoolExecutor.java:615','java.lang.Thread:run:Thread.java:745',“ * java.io.IOException:org .apache.hadoop.hive.serde2.SerDeException:org.codehaus.jackson.JsonParseException:意外的字符('O'(代码79)):预期的有效值(数字,字符串,数组,对象,'true','false '或'null')\ n,位于[来源:java.io.ByteArrayInputStream@19ee3d8e;行:1,列:2]:30:4“,'org.apache.hadoop.hive.ql.exec.FetchOperator:getNextRow:FetchOperator.java:508','org.apache.hadoop.hive.ql.exec .FetchOperator:pushRow:FetchOperator.java:415','org.apache.hadoop.hive.ql.exec.FetchTask:fetch:FetchTask.java:140','org.apache.hadoop.hive.ql.Driver:getResults :Driver.java:2069','org.apache.hive.service.cli.operation.SQLOperation:getNextRowSet:SQLOperation.java:458',“ * org.apache.hadoop.hive.serde2.SerDeException:org.codehaus。 jackson.JsonParseException:意外字符(“ O”(代码79)):预期为有效值(数字,字符串,数组,对象,“真”,“假”或“空”)\ n,位于[来源:java.io .ByteArrayInputStream @ 19ee3d8e;行:1,列:2]:31:1“,'org.apache.hive.hcatalog.data.JsonSerDe:deserialize:JsonSerDe.java:174','org.apache.hadoop.hive.ql.exec.FetchOperator :getNextRow:FetchOperator.java:489',“ * org.codehaus.jackson.JsonParseException:意外的字符(“ O”(代码79)):预期的有效值(数字,字符串,数组,对象,“ true”,“ false”或“ null”)\ n,位于[来源:java.io.ByteArrayInputStream@19ee3d8e;行:1,列:2]:37:6“,'org.codehaus.jackson.JsonParser:_constructError:JsonParser.java:1291','org.codehaus.jackson.impl.JsonParserMinimalBase:_reportError:JsonParserMinimalBase.java:385 ','org.codehaus.jackson.impl.JsonParserMinimalBase:_reportUnexpectedChar:JsonParserMinimalBase.java:306','org.codehaus.jackson.impl.Utf8StreamParser:_handleUnexpectedValue:Utf8StreamParser.java:1582','org.codehaus.jackson.impl .Utf8StreamParser:_nextTokenNotInObject:Utf8StreamParser.java:437','org.codehaus.jackson.impl.Utf8StreamParser:nextToken:Utf8StreamParser.java:323','org.apache.hive.hcatalog.data.JsonSerDe:Deserialize:JsonS :163'],statusCode = 3),结果=无,hasMoreRows =无)
在此错误之前,HIVE给我成功查询消息,但稍后显示上述错误,并且不会显示任何查询的结果。有人可以告诉我我的错误在哪里以及什么原因导致此错误吗?
答案 0 :(得分:0)
在hue.ini配置文件的beeswax部分中设置use_get_log_api = true。
更改以下命令后运行的hue.ini文件以重新启动hive服务器,否则我将无法工作。
sudo服务hive-server2停止 须藤服务色相停止 sudo服务hive-server2启动 sudo服务色相启动