Hive error on all queries: Couldn't find log associated with operation handle












4















Getting an error on all hive queries running on Hadoop.



Simply running a select statement from a table that exists and getting the following results:



Fetching results ran into the following error(s):

Couldn't find log associated with operation handle:
OperationHandle[opType=EXECUTE_STATEMENT,
getHandleIdentifier()=263df9c3-c076-454f-a025-23f5b919e957]


And the accompaning logs for the query are:




Bad status for request TFetchResultsReq(fetchType=1,
operationHandle=TOperationHandle(hasResultSet=False,
modifiedRowCount=None, operationType=0,
operationId=THandleIdentifier(secret='%x1dx0fx11xcexf4Bxd6xb8xb5x8ddvxceKV',
guid="xbc5xd9|xfax13J'x86x8e4xb3x87xa0xf4x05")),
orientation=4, maxRows=-1):
TFetchResultsResp(status=TStatus(errorCode=0, errorMessage="Couldn't
find log associated with operation handle: OperationHandle
[opType=EXECUTE_STATEMENT,
getHandleIdentifier()=bc35d97c-fa13-4a27-868e-34b387a0f405]",
sqlState=None,
infoMessages=["*org.apache.hive.service.cli.HiveSQLException:Couldn't
find log associated with operation handle: OperationHandle
[opType=EXECUTE_STATEMENT,
getHandleIdentifier()=bc35d97c-fa13-4a27-868e-34b387a0f405]:25:24",
'org.apache.hive.service.cli.operation.OperationManager:getOperationLogRowSet:OperationManager.java:257',
'org.apache.hive.service.cli.session.HiveSessionImpl:fetchResults:HiveSessionImpl.java:656',
'sun.reflect.GeneratedMethodAccessor29: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:79',
'org.apache.hive.service.cli.session.HiveSessionProxy:access$000:HiveSessionProxy.java:37',
'org.apache.hive.service.cli.session.HiveSessionProxy$1:run:HiveSessionProxy.java:64',
'java.security.AccessController:doPrivileged:AccessController.java:-2',
'javax.security.auth.Subject:doAs:Subject.java:415',
'org.apache.hadoop.security.UserGroupInformation:doAs:UserGroupInformation.java:1628',
'org.apache.hadoop.hive.shims.HadoopShimsSecure:doAs:HadoopShimsSecure.java:536',
'org.apache.hive.service.cli.session.HiveSessionProxy:invoke:HiveSessionProxy.java:60',
'com.sun.proxy.$Proxy28:fetchResults::-1',
'org.apache.hive.service.cli.CLIService:fetchResults:CLIService.java:427',
'org.apache.hive.service.cli.thrift.ThriftCLIService:FetchResults:ThriftCLIService.java:587',
'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:206',
'java.util.concurrent.ThreadPoolExecutor:runWorker:ThreadPoolExecutor.java:1145',
'java.util.concurrent.ThreadPoolExecutor$Worker:run:ThreadPoolExecutor.java:615',
'java.lang.Thread:run:Thread.java:744'], statusCode=3), results=None,
hasMoreRows=None) Bad status for request TFetchResultsReq(fetchType=1,
operationHandle=TOperationHandle(hasResultSet=False,
modifiedRowCount=None, operationType=0,
operationId=THandleIdentifier(secret='cxdfxfexb7x8ax10DxeaxbaDx93}Bxb5xc3xe7',
guid='&=xf9xc3xc0vEOxa0%#xf5xb9x19xe9W')), orientation=0,
maxRows=-1): TFetchResultsResp(status=TStatus(errorCode=0,
errorMessage="Couldn't find log associated with operation handle:
OperationHandle [opType=EXECUTE_STATEMENT,
getHandleIdentifier()=263df9c3-c076-454f-a025-23f5b919e957]",
sqlState=None,
infoMessages=["*org.apache.hive.service.cli.HiveSQLException:Couldn't
find log associated with operation handle: OperationHandle
[opType=EXECUTE_STATEMENT,
getHandleIdentifier()=263df9c3-c076-454f-a025-23f5b919e957]:25:24",
'org.apache.hive.service.cli.operation.OperationManager:getOperationLogRowSet:OperationManager.java:257',
'org.apache.hive.service.cli.session.HiveSessionImpl:fetchResults:HiveSessionImpl.java:656',
'sun.reflect.GeneratedMethodAccessor29: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:79',
'org.apache.hive.service.cli.session.HiveSessionProxy:access$000:HiveSessionProxy.java:37',
'org.apache.hive.service.cli.session.HiveSessionProxy$1:run:HiveSessionProxy.java:64',
'java.security.AccessController:doPrivileged:AccessController.java:-2',
'javax.security.auth.Subject:doAs:Subject.java:415',
'org.apache.hadoop.security.UserGroupInformation:doAs:UserGroupInformation.java:1628',
'org.apache.hadoop.hive.shims.HadoopShimsSecure:doAs:HadoopShimsSecure.java:536',
'org.apache.hive.service.cli.session.HiveSessionProxy:invoke:HiveSessionProxy.java:60',
'com.sun.proxy.$Proxy28:fetchResults::-1',
'org.apache.hive.service.cli.CLIService:fetchResults:CLIService.java:427',
'org.apache.hive.service.cli.thrift.ThriftCLIService:FetchResults:ThriftCLIService.java:587',
'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:206',
'java.util.concurrent.ThreadPoolExecutor:runWorker:ThreadPoolExecutor.java:1145',
'java.util.concurrent.ThreadPoolExecutor$Worker:run:ThreadPoolExecutor.java:615',
'java.lang.Thread:run:Thread.java:744'], statusCode=3), results=None,
hasMoreRows=None) Bad status for request TFetchResultsReq(fetchType=1,
operationHandle=TOperationHandle(hasResultSet=False,
modifiedRowCount=None, operationType=0,
operationId=THandleIdentifier(secret='cxdfxfexb7x8ax10DxeaxbaDx93}Bxb5xc3xe7',
guid='&=xf9xc3xc0vEOxa0%#xf5xb9x19xe9W')), orientation=0,
maxRows=-1): TFetchResultsResp(status=TStatus(errorCode=0,
errorMessage="Couldn't find log associated with operation handle:
OperationHandle [opType=EXECUTE_STATEMENT,
getHandleIdentifier()=263df9c3-c076-454f-a025-23f5b919e957]",
sqlState=None,
infoMessages=["*org.apache.hive.service.cli.HiveSQLException:Couldn't
find log associated with operation handle: OperationHandle
[opType=EXECUTE_STATEMENT,
getHandleIdentifier()=263df9c3-c076-454f-a025-23f5b919e957]:25:24",
'org.apache.hive.service.cli.operation.OperationManager:getOperationLogRowSet:OperationManager.java:257',
'org.apache.hive.service.cli.session.HiveSessionImpl:fetchResults:HiveSessionImpl.java:656',
'sun.reflect.GeneratedMethodAccessor29: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:79',
'org.apache.hive.service.cli.session.HiveSessionProxy:access$000:HiveSessionProxy.java:37',
'org.apache.hive.service.cli.session.HiveSessionProxy$1:run:HiveSessionProxy.java:64',
'java.security.AccessController:doPrivileged:AccessController.java:-2',
'javax.security.auth.Subject:doAs:Subject.java:415',
'org.apache.hadoop.security.UserGroupInformation:doAs:UserGroupInformation.java:1628',
'org.apache.hadoop.hive.shims.HadoopShimsSecure:doAs:HadoopShimsSecure.java:536',
'org.apache.hive.service.cli.session.HiveSessionProxy:invoke:HiveSessionProxy.java:60',
'com.sun.proxy.$Proxy28:fetchResults::-1',
'org.apache.hive.service.cli.CLIService:fetchResults:CLIService.java:427',
'org.apache.hive.service.cli.thrift.ThriftCLIService:FetchResults:ThriftCLIService.java:587',
'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:206',
'java.util.concurrent.ThreadPoolExecutor:runWorker:ThreadPoolExecutor.java:1145',
'java.util.concurrent.ThreadPoolExecutor$Worker:run:ThreadPoolExecutor.java:615',
'java.lang.Thread:run:Thread.java:744'], statusCode=3), results=None,
hasMoreRows=None)











share|improve this question





























    4















    Getting an error on all hive queries running on Hadoop.



    Simply running a select statement from a table that exists and getting the following results:



    Fetching results ran into the following error(s):

    Couldn't find log associated with operation handle:
    OperationHandle[opType=EXECUTE_STATEMENT,
    getHandleIdentifier()=263df9c3-c076-454f-a025-23f5b919e957]


    And the accompaning logs for the query are:




    Bad status for request TFetchResultsReq(fetchType=1,
    operationHandle=TOperationHandle(hasResultSet=False,
    modifiedRowCount=None, operationType=0,
    operationId=THandleIdentifier(secret='%x1dx0fx11xcexf4Bxd6xb8xb5x8ddvxceKV',
    guid="xbc5xd9|xfax13J'x86x8e4xb3x87xa0xf4x05")),
    orientation=4, maxRows=-1):
    TFetchResultsResp(status=TStatus(errorCode=0, errorMessage="Couldn't
    find log associated with operation handle: OperationHandle
    [opType=EXECUTE_STATEMENT,
    getHandleIdentifier()=bc35d97c-fa13-4a27-868e-34b387a0f405]",
    sqlState=None,
    infoMessages=["*org.apache.hive.service.cli.HiveSQLException:Couldn't
    find log associated with operation handle: OperationHandle
    [opType=EXECUTE_STATEMENT,
    getHandleIdentifier()=bc35d97c-fa13-4a27-868e-34b387a0f405]:25:24",
    'org.apache.hive.service.cli.operation.OperationManager:getOperationLogRowSet:OperationManager.java:257',
    'org.apache.hive.service.cli.session.HiveSessionImpl:fetchResults:HiveSessionImpl.java:656',
    'sun.reflect.GeneratedMethodAccessor29: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:79',
    'org.apache.hive.service.cli.session.HiveSessionProxy:access$000:HiveSessionProxy.java:37',
    'org.apache.hive.service.cli.session.HiveSessionProxy$1:run:HiveSessionProxy.java:64',
    'java.security.AccessController:doPrivileged:AccessController.java:-2',
    'javax.security.auth.Subject:doAs:Subject.java:415',
    'org.apache.hadoop.security.UserGroupInformation:doAs:UserGroupInformation.java:1628',
    'org.apache.hadoop.hive.shims.HadoopShimsSecure:doAs:HadoopShimsSecure.java:536',
    'org.apache.hive.service.cli.session.HiveSessionProxy:invoke:HiveSessionProxy.java:60',
    'com.sun.proxy.$Proxy28:fetchResults::-1',
    'org.apache.hive.service.cli.CLIService:fetchResults:CLIService.java:427',
    'org.apache.hive.service.cli.thrift.ThriftCLIService:FetchResults:ThriftCLIService.java:587',
    '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:206',
    'java.util.concurrent.ThreadPoolExecutor:runWorker:ThreadPoolExecutor.java:1145',
    'java.util.concurrent.ThreadPoolExecutor$Worker:run:ThreadPoolExecutor.java:615',
    'java.lang.Thread:run:Thread.java:744'], statusCode=3), results=None,
    hasMoreRows=None) Bad status for request TFetchResultsReq(fetchType=1,
    operationHandle=TOperationHandle(hasResultSet=False,
    modifiedRowCount=None, operationType=0,
    operationId=THandleIdentifier(secret='cxdfxfexb7x8ax10DxeaxbaDx93}Bxb5xc3xe7',
    guid='&=xf9xc3xc0vEOxa0%#xf5xb9x19xe9W')), orientation=0,
    maxRows=-1): TFetchResultsResp(status=TStatus(errorCode=0,
    errorMessage="Couldn't find log associated with operation handle:
    OperationHandle [opType=EXECUTE_STATEMENT,
    getHandleIdentifier()=263df9c3-c076-454f-a025-23f5b919e957]",
    sqlState=None,
    infoMessages=["*org.apache.hive.service.cli.HiveSQLException:Couldn't
    find log associated with operation handle: OperationHandle
    [opType=EXECUTE_STATEMENT,
    getHandleIdentifier()=263df9c3-c076-454f-a025-23f5b919e957]:25:24",
    'org.apache.hive.service.cli.operation.OperationManager:getOperationLogRowSet:OperationManager.java:257',
    'org.apache.hive.service.cli.session.HiveSessionImpl:fetchResults:HiveSessionImpl.java:656',
    'sun.reflect.GeneratedMethodAccessor29: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:79',
    'org.apache.hive.service.cli.session.HiveSessionProxy:access$000:HiveSessionProxy.java:37',
    'org.apache.hive.service.cli.session.HiveSessionProxy$1:run:HiveSessionProxy.java:64',
    'java.security.AccessController:doPrivileged:AccessController.java:-2',
    'javax.security.auth.Subject:doAs:Subject.java:415',
    'org.apache.hadoop.security.UserGroupInformation:doAs:UserGroupInformation.java:1628',
    'org.apache.hadoop.hive.shims.HadoopShimsSecure:doAs:HadoopShimsSecure.java:536',
    'org.apache.hive.service.cli.session.HiveSessionProxy:invoke:HiveSessionProxy.java:60',
    'com.sun.proxy.$Proxy28:fetchResults::-1',
    'org.apache.hive.service.cli.CLIService:fetchResults:CLIService.java:427',
    'org.apache.hive.service.cli.thrift.ThriftCLIService:FetchResults:ThriftCLIService.java:587',
    '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:206',
    'java.util.concurrent.ThreadPoolExecutor:runWorker:ThreadPoolExecutor.java:1145',
    'java.util.concurrent.ThreadPoolExecutor$Worker:run:ThreadPoolExecutor.java:615',
    'java.lang.Thread:run:Thread.java:744'], statusCode=3), results=None,
    hasMoreRows=None) Bad status for request TFetchResultsReq(fetchType=1,
    operationHandle=TOperationHandle(hasResultSet=False,
    modifiedRowCount=None, operationType=0,
    operationId=THandleIdentifier(secret='cxdfxfexb7x8ax10DxeaxbaDx93}Bxb5xc3xe7',
    guid='&=xf9xc3xc0vEOxa0%#xf5xb9x19xe9W')), orientation=0,
    maxRows=-1): TFetchResultsResp(status=TStatus(errorCode=0,
    errorMessage="Couldn't find log associated with operation handle:
    OperationHandle [opType=EXECUTE_STATEMENT,
    getHandleIdentifier()=263df9c3-c076-454f-a025-23f5b919e957]",
    sqlState=None,
    infoMessages=["*org.apache.hive.service.cli.HiveSQLException:Couldn't
    find log associated with operation handle: OperationHandle
    [opType=EXECUTE_STATEMENT,
    getHandleIdentifier()=263df9c3-c076-454f-a025-23f5b919e957]:25:24",
    'org.apache.hive.service.cli.operation.OperationManager:getOperationLogRowSet:OperationManager.java:257',
    'org.apache.hive.service.cli.session.HiveSessionImpl:fetchResults:HiveSessionImpl.java:656',
    'sun.reflect.GeneratedMethodAccessor29: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:79',
    'org.apache.hive.service.cli.session.HiveSessionProxy:access$000:HiveSessionProxy.java:37',
    'org.apache.hive.service.cli.session.HiveSessionProxy$1:run:HiveSessionProxy.java:64',
    'java.security.AccessController:doPrivileged:AccessController.java:-2',
    'javax.security.auth.Subject:doAs:Subject.java:415',
    'org.apache.hadoop.security.UserGroupInformation:doAs:UserGroupInformation.java:1628',
    'org.apache.hadoop.hive.shims.HadoopShimsSecure:doAs:HadoopShimsSecure.java:536',
    'org.apache.hive.service.cli.session.HiveSessionProxy:invoke:HiveSessionProxy.java:60',
    'com.sun.proxy.$Proxy28:fetchResults::-1',
    'org.apache.hive.service.cli.CLIService:fetchResults:CLIService.java:427',
    'org.apache.hive.service.cli.thrift.ThriftCLIService:FetchResults:ThriftCLIService.java:587',
    '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:206',
    'java.util.concurrent.ThreadPoolExecutor:runWorker:ThreadPoolExecutor.java:1145',
    'java.util.concurrent.ThreadPoolExecutor$Worker:run:ThreadPoolExecutor.java:615',
    'java.lang.Thread:run:Thread.java:744'], statusCode=3), results=None,
    hasMoreRows=None)











    share|improve this question



























      4












      4








      4


      1






      Getting an error on all hive queries running on Hadoop.



      Simply running a select statement from a table that exists and getting the following results:



      Fetching results ran into the following error(s):

      Couldn't find log associated with operation handle:
      OperationHandle[opType=EXECUTE_STATEMENT,
      getHandleIdentifier()=263df9c3-c076-454f-a025-23f5b919e957]


      And the accompaning logs for the query are:




      Bad status for request TFetchResultsReq(fetchType=1,
      operationHandle=TOperationHandle(hasResultSet=False,
      modifiedRowCount=None, operationType=0,
      operationId=THandleIdentifier(secret='%x1dx0fx11xcexf4Bxd6xb8xb5x8ddvxceKV',
      guid="xbc5xd9|xfax13J'x86x8e4xb3x87xa0xf4x05")),
      orientation=4, maxRows=-1):
      TFetchResultsResp(status=TStatus(errorCode=0, errorMessage="Couldn't
      find log associated with operation handle: OperationHandle
      [opType=EXECUTE_STATEMENT,
      getHandleIdentifier()=bc35d97c-fa13-4a27-868e-34b387a0f405]",
      sqlState=None,
      infoMessages=["*org.apache.hive.service.cli.HiveSQLException:Couldn't
      find log associated with operation handle: OperationHandle
      [opType=EXECUTE_STATEMENT,
      getHandleIdentifier()=bc35d97c-fa13-4a27-868e-34b387a0f405]:25:24",
      'org.apache.hive.service.cli.operation.OperationManager:getOperationLogRowSet:OperationManager.java:257',
      'org.apache.hive.service.cli.session.HiveSessionImpl:fetchResults:HiveSessionImpl.java:656',
      'sun.reflect.GeneratedMethodAccessor29: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:79',
      'org.apache.hive.service.cli.session.HiveSessionProxy:access$000:HiveSessionProxy.java:37',
      'org.apache.hive.service.cli.session.HiveSessionProxy$1:run:HiveSessionProxy.java:64',
      'java.security.AccessController:doPrivileged:AccessController.java:-2',
      'javax.security.auth.Subject:doAs:Subject.java:415',
      'org.apache.hadoop.security.UserGroupInformation:doAs:UserGroupInformation.java:1628',
      'org.apache.hadoop.hive.shims.HadoopShimsSecure:doAs:HadoopShimsSecure.java:536',
      'org.apache.hive.service.cli.session.HiveSessionProxy:invoke:HiveSessionProxy.java:60',
      'com.sun.proxy.$Proxy28:fetchResults::-1',
      'org.apache.hive.service.cli.CLIService:fetchResults:CLIService.java:427',
      'org.apache.hive.service.cli.thrift.ThriftCLIService:FetchResults:ThriftCLIService.java:587',
      '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:206',
      'java.util.concurrent.ThreadPoolExecutor:runWorker:ThreadPoolExecutor.java:1145',
      'java.util.concurrent.ThreadPoolExecutor$Worker:run:ThreadPoolExecutor.java:615',
      'java.lang.Thread:run:Thread.java:744'], statusCode=3), results=None,
      hasMoreRows=None) Bad status for request TFetchResultsReq(fetchType=1,
      operationHandle=TOperationHandle(hasResultSet=False,
      modifiedRowCount=None, operationType=0,
      operationId=THandleIdentifier(secret='cxdfxfexb7x8ax10DxeaxbaDx93}Bxb5xc3xe7',
      guid='&=xf9xc3xc0vEOxa0%#xf5xb9x19xe9W')), orientation=0,
      maxRows=-1): TFetchResultsResp(status=TStatus(errorCode=0,
      errorMessage="Couldn't find log associated with operation handle:
      OperationHandle [opType=EXECUTE_STATEMENT,
      getHandleIdentifier()=263df9c3-c076-454f-a025-23f5b919e957]",
      sqlState=None,
      infoMessages=["*org.apache.hive.service.cli.HiveSQLException:Couldn't
      find log associated with operation handle: OperationHandle
      [opType=EXECUTE_STATEMENT,
      getHandleIdentifier()=263df9c3-c076-454f-a025-23f5b919e957]:25:24",
      'org.apache.hive.service.cli.operation.OperationManager:getOperationLogRowSet:OperationManager.java:257',
      'org.apache.hive.service.cli.session.HiveSessionImpl:fetchResults:HiveSessionImpl.java:656',
      'sun.reflect.GeneratedMethodAccessor29: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:79',
      'org.apache.hive.service.cli.session.HiveSessionProxy:access$000:HiveSessionProxy.java:37',
      'org.apache.hive.service.cli.session.HiveSessionProxy$1:run:HiveSessionProxy.java:64',
      'java.security.AccessController:doPrivileged:AccessController.java:-2',
      'javax.security.auth.Subject:doAs:Subject.java:415',
      'org.apache.hadoop.security.UserGroupInformation:doAs:UserGroupInformation.java:1628',
      'org.apache.hadoop.hive.shims.HadoopShimsSecure:doAs:HadoopShimsSecure.java:536',
      'org.apache.hive.service.cli.session.HiveSessionProxy:invoke:HiveSessionProxy.java:60',
      'com.sun.proxy.$Proxy28:fetchResults::-1',
      'org.apache.hive.service.cli.CLIService:fetchResults:CLIService.java:427',
      'org.apache.hive.service.cli.thrift.ThriftCLIService:FetchResults:ThriftCLIService.java:587',
      '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:206',
      'java.util.concurrent.ThreadPoolExecutor:runWorker:ThreadPoolExecutor.java:1145',
      'java.util.concurrent.ThreadPoolExecutor$Worker:run:ThreadPoolExecutor.java:615',
      'java.lang.Thread:run:Thread.java:744'], statusCode=3), results=None,
      hasMoreRows=None) Bad status for request TFetchResultsReq(fetchType=1,
      operationHandle=TOperationHandle(hasResultSet=False,
      modifiedRowCount=None, operationType=0,
      operationId=THandleIdentifier(secret='cxdfxfexb7x8ax10DxeaxbaDx93}Bxb5xc3xe7',
      guid='&=xf9xc3xc0vEOxa0%#xf5xb9x19xe9W')), orientation=0,
      maxRows=-1): TFetchResultsResp(status=TStatus(errorCode=0,
      errorMessage="Couldn't find log associated with operation handle:
      OperationHandle [opType=EXECUTE_STATEMENT,
      getHandleIdentifier()=263df9c3-c076-454f-a025-23f5b919e957]",
      sqlState=None,
      infoMessages=["*org.apache.hive.service.cli.HiveSQLException:Couldn't
      find log associated with operation handle: OperationHandle
      [opType=EXECUTE_STATEMENT,
      getHandleIdentifier()=263df9c3-c076-454f-a025-23f5b919e957]:25:24",
      'org.apache.hive.service.cli.operation.OperationManager:getOperationLogRowSet:OperationManager.java:257',
      'org.apache.hive.service.cli.session.HiveSessionImpl:fetchResults:HiveSessionImpl.java:656',
      'sun.reflect.GeneratedMethodAccessor29: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:79',
      'org.apache.hive.service.cli.session.HiveSessionProxy:access$000:HiveSessionProxy.java:37',
      'org.apache.hive.service.cli.session.HiveSessionProxy$1:run:HiveSessionProxy.java:64',
      'java.security.AccessController:doPrivileged:AccessController.java:-2',
      'javax.security.auth.Subject:doAs:Subject.java:415',
      'org.apache.hadoop.security.UserGroupInformation:doAs:UserGroupInformation.java:1628',
      'org.apache.hadoop.hive.shims.HadoopShimsSecure:doAs:HadoopShimsSecure.java:536',
      'org.apache.hive.service.cli.session.HiveSessionProxy:invoke:HiveSessionProxy.java:60',
      'com.sun.proxy.$Proxy28:fetchResults::-1',
      'org.apache.hive.service.cli.CLIService:fetchResults:CLIService.java:427',
      'org.apache.hive.service.cli.thrift.ThriftCLIService:FetchResults:ThriftCLIService.java:587',
      '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:206',
      'java.util.concurrent.ThreadPoolExecutor:runWorker:ThreadPoolExecutor.java:1145',
      'java.util.concurrent.ThreadPoolExecutor$Worker:run:ThreadPoolExecutor.java:615',
      'java.lang.Thread:run:Thread.java:744'], statusCode=3), results=None,
      hasMoreRows=None)











      share|improve this question
















      Getting an error on all hive queries running on Hadoop.



      Simply running a select statement from a table that exists and getting the following results:



      Fetching results ran into the following error(s):

      Couldn't find log associated with operation handle:
      OperationHandle[opType=EXECUTE_STATEMENT,
      getHandleIdentifier()=263df9c3-c076-454f-a025-23f5b919e957]


      And the accompaning logs for the query are:




      Bad status for request TFetchResultsReq(fetchType=1,
      operationHandle=TOperationHandle(hasResultSet=False,
      modifiedRowCount=None, operationType=0,
      operationId=THandleIdentifier(secret='%x1dx0fx11xcexf4Bxd6xb8xb5x8ddvxceKV',
      guid="xbc5xd9|xfax13J'x86x8e4xb3x87xa0xf4x05")),
      orientation=4, maxRows=-1):
      TFetchResultsResp(status=TStatus(errorCode=0, errorMessage="Couldn't
      find log associated with operation handle: OperationHandle
      [opType=EXECUTE_STATEMENT,
      getHandleIdentifier()=bc35d97c-fa13-4a27-868e-34b387a0f405]",
      sqlState=None,
      infoMessages=["*org.apache.hive.service.cli.HiveSQLException:Couldn't
      find log associated with operation handle: OperationHandle
      [opType=EXECUTE_STATEMENT,
      getHandleIdentifier()=bc35d97c-fa13-4a27-868e-34b387a0f405]:25:24",
      'org.apache.hive.service.cli.operation.OperationManager:getOperationLogRowSet:OperationManager.java:257',
      'org.apache.hive.service.cli.session.HiveSessionImpl:fetchResults:HiveSessionImpl.java:656',
      'sun.reflect.GeneratedMethodAccessor29: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:79',
      'org.apache.hive.service.cli.session.HiveSessionProxy:access$000:HiveSessionProxy.java:37',
      'org.apache.hive.service.cli.session.HiveSessionProxy$1:run:HiveSessionProxy.java:64',
      'java.security.AccessController:doPrivileged:AccessController.java:-2',
      'javax.security.auth.Subject:doAs:Subject.java:415',
      'org.apache.hadoop.security.UserGroupInformation:doAs:UserGroupInformation.java:1628',
      'org.apache.hadoop.hive.shims.HadoopShimsSecure:doAs:HadoopShimsSecure.java:536',
      'org.apache.hive.service.cli.session.HiveSessionProxy:invoke:HiveSessionProxy.java:60',
      'com.sun.proxy.$Proxy28:fetchResults::-1',
      'org.apache.hive.service.cli.CLIService:fetchResults:CLIService.java:427',
      'org.apache.hive.service.cli.thrift.ThriftCLIService:FetchResults:ThriftCLIService.java:587',
      '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:206',
      'java.util.concurrent.ThreadPoolExecutor:runWorker:ThreadPoolExecutor.java:1145',
      'java.util.concurrent.ThreadPoolExecutor$Worker:run:ThreadPoolExecutor.java:615',
      'java.lang.Thread:run:Thread.java:744'], statusCode=3), results=None,
      hasMoreRows=None) Bad status for request TFetchResultsReq(fetchType=1,
      operationHandle=TOperationHandle(hasResultSet=False,
      modifiedRowCount=None, operationType=0,
      operationId=THandleIdentifier(secret='cxdfxfexb7x8ax10DxeaxbaDx93}Bxb5xc3xe7',
      guid='&=xf9xc3xc0vEOxa0%#xf5xb9x19xe9W')), orientation=0,
      maxRows=-1): TFetchResultsResp(status=TStatus(errorCode=0,
      errorMessage="Couldn't find log associated with operation handle:
      OperationHandle [opType=EXECUTE_STATEMENT,
      getHandleIdentifier()=263df9c3-c076-454f-a025-23f5b919e957]",
      sqlState=None,
      infoMessages=["*org.apache.hive.service.cli.HiveSQLException:Couldn't
      find log associated with operation handle: OperationHandle
      [opType=EXECUTE_STATEMENT,
      getHandleIdentifier()=263df9c3-c076-454f-a025-23f5b919e957]:25:24",
      'org.apache.hive.service.cli.operation.OperationManager:getOperationLogRowSet:OperationManager.java:257',
      'org.apache.hive.service.cli.session.HiveSessionImpl:fetchResults:HiveSessionImpl.java:656',
      'sun.reflect.GeneratedMethodAccessor29: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:79',
      'org.apache.hive.service.cli.session.HiveSessionProxy:access$000:HiveSessionProxy.java:37',
      'org.apache.hive.service.cli.session.HiveSessionProxy$1:run:HiveSessionProxy.java:64',
      'java.security.AccessController:doPrivileged:AccessController.java:-2',
      'javax.security.auth.Subject:doAs:Subject.java:415',
      'org.apache.hadoop.security.UserGroupInformation:doAs:UserGroupInformation.java:1628',
      'org.apache.hadoop.hive.shims.HadoopShimsSecure:doAs:HadoopShimsSecure.java:536',
      'org.apache.hive.service.cli.session.HiveSessionProxy:invoke:HiveSessionProxy.java:60',
      'com.sun.proxy.$Proxy28:fetchResults::-1',
      'org.apache.hive.service.cli.CLIService:fetchResults:CLIService.java:427',
      'org.apache.hive.service.cli.thrift.ThriftCLIService:FetchResults:ThriftCLIService.java:587',
      '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:206',
      'java.util.concurrent.ThreadPoolExecutor:runWorker:ThreadPoolExecutor.java:1145',
      'java.util.concurrent.ThreadPoolExecutor$Worker:run:ThreadPoolExecutor.java:615',
      'java.lang.Thread:run:Thread.java:744'], statusCode=3), results=None,
      hasMoreRows=None) Bad status for request TFetchResultsReq(fetchType=1,
      operationHandle=TOperationHandle(hasResultSet=False,
      modifiedRowCount=None, operationType=0,
      operationId=THandleIdentifier(secret='cxdfxfexb7x8ax10DxeaxbaDx93}Bxb5xc3xe7',
      guid='&=xf9xc3xc0vEOxa0%#xf5xb9x19xe9W')), orientation=0,
      maxRows=-1): TFetchResultsResp(status=TStatus(errorCode=0,
      errorMessage="Couldn't find log associated with operation handle:
      OperationHandle [opType=EXECUTE_STATEMENT,
      getHandleIdentifier()=263df9c3-c076-454f-a025-23f5b919e957]",
      sqlState=None,
      infoMessages=["*org.apache.hive.service.cli.HiveSQLException:Couldn't
      find log associated with operation handle: OperationHandle
      [opType=EXECUTE_STATEMENT,
      getHandleIdentifier()=263df9c3-c076-454f-a025-23f5b919e957]:25:24",
      'org.apache.hive.service.cli.operation.OperationManager:getOperationLogRowSet:OperationManager.java:257',
      'org.apache.hive.service.cli.session.HiveSessionImpl:fetchResults:HiveSessionImpl.java:656',
      'sun.reflect.GeneratedMethodAccessor29: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:79',
      'org.apache.hive.service.cli.session.HiveSessionProxy:access$000:HiveSessionProxy.java:37',
      'org.apache.hive.service.cli.session.HiveSessionProxy$1:run:HiveSessionProxy.java:64',
      'java.security.AccessController:doPrivileged:AccessController.java:-2',
      'javax.security.auth.Subject:doAs:Subject.java:415',
      'org.apache.hadoop.security.UserGroupInformation:doAs:UserGroupInformation.java:1628',
      'org.apache.hadoop.hive.shims.HadoopShimsSecure:doAs:HadoopShimsSecure.java:536',
      'org.apache.hive.service.cli.session.HiveSessionProxy:invoke:HiveSessionProxy.java:60',
      'com.sun.proxy.$Proxy28:fetchResults::-1',
      'org.apache.hive.service.cli.CLIService:fetchResults:CLIService.java:427',
      'org.apache.hive.service.cli.thrift.ThriftCLIService:FetchResults:ThriftCLIService.java:587',
      '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:206',
      'java.util.concurrent.ThreadPoolExecutor:runWorker:ThreadPoolExecutor.java:1145',
      'java.util.concurrent.ThreadPoolExecutor$Worker:run:ThreadPoolExecutor.java:615',
      'java.lang.Thread:run:Thread.java:744'], statusCode=3), results=None,
      hasMoreRows=None)








      hadoop hive hue






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Sep 20 '16 at 15:42









      Alastor Moody

      1,06651535




      1,06651535










      asked Aug 19 '15 at 8:59









      Brian DohertyBrian Doherty

      471110




      471110
























          5 Answers
          5






          active

          oldest

          votes


















          5














          This error can happen with the i.e(“hive.server2.logging.operation.log.location”) is pointing to a location that does not exist to write logs.



          Look at the code from OperationManager.java



          OperationLog operationLog = getOperation(opHandle).getOperationLog();
          if (operationLog == null) {
          throw new HiveSQLException("Couldn't find log associated with operation handle: " + opHandle);
          }





          share|improve this answer


























          • Thanks for the reply. How would I go about checking where / changing where it is pointed to?

            – Brian Doherty
            Aug 19 '15 at 9:20






          • 1





            Follow this link to know configure log file location. cwiki.apache.org/confluence/display/Hive/…

            – java_bee
            Aug 19 '15 at 9:41











          • Generally this is caused by due to connection string issue, I have faced similar issues and generally once I corrected my connection string: jdbc://hive2:<servername>:port/default, the issue gets resolved.

            – Deepesh Rehi
            Dec 31 '18 at 9:37



















          8














          If you are seeing this in a Cloudera distro when you use Hue, then add the following to the Hive Service Advanced Configuration Snippet (Safety Valve) for hive-site.xml in Cloudera Manager (or straight to the hive-site.xml for other distros):



          <property>
          <name>hive.server2.logging.operation.enabled</name>
          <value>true</value>
          </property>





          share|improve this answer
























          • Thanks so much! Worked perfectly for me.

            – Chaos
            Jun 17 '16 at 5:46











          • This was what I needed, thanks.

            – Robert Rapplean
            Mar 9 '17 at 21:19



















          1














          If you are using AWS EMR, then add the following to the hive-site.xml file at /etc/hive/conf.dist/hive-site.xml:



          <property>
          <name>hive.server2.logging.operation.enabled</name>
          <value>true</value>
          </property>


          Then log into the master node and restart hue and hive server



          sudo stop hive-server2
          sudo stop hue
          sudo start hue
          sudo start hive-server2


          This fixed it for me (tested in Release label emr-4.6.0).






          share|improve this answer































            0














            In Windows 8.1, I were also facing the same issue part inside hive query part -



            org.apache.hive.service.cli.HiveSQLException: Couldn't find log associated with operation handle: OperationHandle [opType=EXECUTE_STATEMENT, getHandleIdentifier()=230485c4-a1be-4a17-94c8-a1ebce426319]


            thus, I went to the %HIVE_HOME%/conf/hive-site.xml and changed the property name hive.server2.logging.operation.log.location earlier value ${system:user.name}/operation_logs to like below said -



              <property>
            <name>hive.server2.logging.operation.log.location</name>
            <value>/tmp/${user.name}/operation_logs</value>
            <description>Top level directory where operation logs are stored if logging functionality is enabled</description>
            </property>


            and also replaced all the values which contains the ${system:user.name} to /tmp/${user.name} and this brings me up by the job logging issue in hive, thanks.






            share|improve this answer































              0














              If you're running into this issue due to a shell script or java program, the first thing you need to check is the connection string, I have faced similar issue few months back, when in my script I was running the queries in such manner:



              beeline -u  jdbc:hive2:// -e "show databases;"


              This was due to missing of proper Hive Connection string, once I corrected the connection string and ran the query, it ran without any issues:



              beeline -u  jdbc:hive2://server.enterprise.org:10000/default -e "show databases;"


              This answer is only specific to the developers who are using a script or code, for Hue/Cloudera distro, kindly refer to the above answers.



              Cheers!






              share|improve this answer























                Your Answer






                StackExchange.ifUsing("editor", function () {
                StackExchange.using("externalEditor", function () {
                StackExchange.using("snippets", function () {
                StackExchange.snippets.init();
                });
                });
                }, "code-snippets");

                StackExchange.ready(function() {
                var channelOptions = {
                tags: "".split(" "),
                id: "1"
                };
                initTagRenderer("".split(" "), "".split(" "), channelOptions);

                StackExchange.using("externalEditor", function() {
                // Have to fire editor after snippets, if snippets enabled
                if (StackExchange.settings.snippets.snippetsEnabled) {
                StackExchange.using("snippets", function() {
                createEditor();
                });
                }
                else {
                createEditor();
                }
                });

                function createEditor() {
                StackExchange.prepareEditor({
                heartbeatType: 'answer',
                autoActivateHeartbeat: false,
                convertImagesToLinks: true,
                noModals: true,
                showLowRepImageUploadWarning: true,
                reputationToPostImages: 10,
                bindNavPrevention: true,
                postfix: "",
                imageUploader: {
                brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
                contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
                allowUrls: true
                },
                onDemand: true,
                discardSelector: ".discard-answer"
                ,immediatelyShowMarkdownHelp:true
                });


                }
                });














                draft saved

                draft discarded


















                StackExchange.ready(
                function () {
                StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f32090918%2fhive-error-on-all-queries-couldnt-find-log-associated-with-operation-handle%23new-answer', 'question_page');
                }
                );

                Post as a guest















                Required, but never shown

























                5 Answers
                5






                active

                oldest

                votes








                5 Answers
                5






                active

                oldest

                votes









                active

                oldest

                votes






                active

                oldest

                votes









                5














                This error can happen with the i.e(“hive.server2.logging.operation.log.location”) is pointing to a location that does not exist to write logs.



                Look at the code from OperationManager.java



                OperationLog operationLog = getOperation(opHandle).getOperationLog();
                if (operationLog == null) {
                throw new HiveSQLException("Couldn't find log associated with operation handle: " + opHandle);
                }





                share|improve this answer


























                • Thanks for the reply. How would I go about checking where / changing where it is pointed to?

                  – Brian Doherty
                  Aug 19 '15 at 9:20






                • 1





                  Follow this link to know configure log file location. cwiki.apache.org/confluence/display/Hive/…

                  – java_bee
                  Aug 19 '15 at 9:41











                • Generally this is caused by due to connection string issue, I have faced similar issues and generally once I corrected my connection string: jdbc://hive2:<servername>:port/default, the issue gets resolved.

                  – Deepesh Rehi
                  Dec 31 '18 at 9:37
















                5














                This error can happen with the i.e(“hive.server2.logging.operation.log.location”) is pointing to a location that does not exist to write logs.



                Look at the code from OperationManager.java



                OperationLog operationLog = getOperation(opHandle).getOperationLog();
                if (operationLog == null) {
                throw new HiveSQLException("Couldn't find log associated with operation handle: " + opHandle);
                }





                share|improve this answer


























                • Thanks for the reply. How would I go about checking where / changing where it is pointed to?

                  – Brian Doherty
                  Aug 19 '15 at 9:20






                • 1





                  Follow this link to know configure log file location. cwiki.apache.org/confluence/display/Hive/…

                  – java_bee
                  Aug 19 '15 at 9:41











                • Generally this is caused by due to connection string issue, I have faced similar issues and generally once I corrected my connection string: jdbc://hive2:<servername>:port/default, the issue gets resolved.

                  – Deepesh Rehi
                  Dec 31 '18 at 9:37














                5












                5








                5







                This error can happen with the i.e(“hive.server2.logging.operation.log.location”) is pointing to a location that does not exist to write logs.



                Look at the code from OperationManager.java



                OperationLog operationLog = getOperation(opHandle).getOperationLog();
                if (operationLog == null) {
                throw new HiveSQLException("Couldn't find log associated with operation handle: " + opHandle);
                }





                share|improve this answer















                This error can happen with the i.e(“hive.server2.logging.operation.log.location”) is pointing to a location that does not exist to write logs.



                Look at the code from OperationManager.java



                OperationLog operationLog = getOperation(opHandle).getOperationLog();
                if (operationLog == null) {
                throw new HiveSQLException("Couldn't find log associated with operation handle: " + opHandle);
                }






                share|improve this answer














                share|improve this answer



                share|improve this answer








                edited Aug 19 '15 at 9:22

























                answered Aug 19 '15 at 9:16









                java_beejava_bee

                38735




                38735













                • Thanks for the reply. How would I go about checking where / changing where it is pointed to?

                  – Brian Doherty
                  Aug 19 '15 at 9:20






                • 1





                  Follow this link to know configure log file location. cwiki.apache.org/confluence/display/Hive/…

                  – java_bee
                  Aug 19 '15 at 9:41











                • Generally this is caused by due to connection string issue, I have faced similar issues and generally once I corrected my connection string: jdbc://hive2:<servername>:port/default, the issue gets resolved.

                  – Deepesh Rehi
                  Dec 31 '18 at 9:37



















                • Thanks for the reply. How would I go about checking where / changing where it is pointed to?

                  – Brian Doherty
                  Aug 19 '15 at 9:20






                • 1





                  Follow this link to know configure log file location. cwiki.apache.org/confluence/display/Hive/…

                  – java_bee
                  Aug 19 '15 at 9:41











                • Generally this is caused by due to connection string issue, I have faced similar issues and generally once I corrected my connection string: jdbc://hive2:<servername>:port/default, the issue gets resolved.

                  – Deepesh Rehi
                  Dec 31 '18 at 9:37

















                Thanks for the reply. How would I go about checking where / changing where it is pointed to?

                – Brian Doherty
                Aug 19 '15 at 9:20





                Thanks for the reply. How would I go about checking where / changing where it is pointed to?

                – Brian Doherty
                Aug 19 '15 at 9:20




                1




                1





                Follow this link to know configure log file location. cwiki.apache.org/confluence/display/Hive/…

                – java_bee
                Aug 19 '15 at 9:41





                Follow this link to know configure log file location. cwiki.apache.org/confluence/display/Hive/…

                – java_bee
                Aug 19 '15 at 9:41













                Generally this is caused by due to connection string issue, I have faced similar issues and generally once I corrected my connection string: jdbc://hive2:<servername>:port/default, the issue gets resolved.

                – Deepesh Rehi
                Dec 31 '18 at 9:37





                Generally this is caused by due to connection string issue, I have faced similar issues and generally once I corrected my connection string: jdbc://hive2:<servername>:port/default, the issue gets resolved.

                – Deepesh Rehi
                Dec 31 '18 at 9:37













                8














                If you are seeing this in a Cloudera distro when you use Hue, then add the following to the Hive Service Advanced Configuration Snippet (Safety Valve) for hive-site.xml in Cloudera Manager (or straight to the hive-site.xml for other distros):



                <property>
                <name>hive.server2.logging.operation.enabled</name>
                <value>true</value>
                </property>





                share|improve this answer
























                • Thanks so much! Worked perfectly for me.

                  – Chaos
                  Jun 17 '16 at 5:46











                • This was what I needed, thanks.

                  – Robert Rapplean
                  Mar 9 '17 at 21:19
















                8














                If you are seeing this in a Cloudera distro when you use Hue, then add the following to the Hive Service Advanced Configuration Snippet (Safety Valve) for hive-site.xml in Cloudera Manager (or straight to the hive-site.xml for other distros):



                <property>
                <name>hive.server2.logging.operation.enabled</name>
                <value>true</value>
                </property>





                share|improve this answer
























                • Thanks so much! Worked perfectly for me.

                  – Chaos
                  Jun 17 '16 at 5:46











                • This was what I needed, thanks.

                  – Robert Rapplean
                  Mar 9 '17 at 21:19














                8












                8








                8







                If you are seeing this in a Cloudera distro when you use Hue, then add the following to the Hive Service Advanced Configuration Snippet (Safety Valve) for hive-site.xml in Cloudera Manager (or straight to the hive-site.xml for other distros):



                <property>
                <name>hive.server2.logging.operation.enabled</name>
                <value>true</value>
                </property>





                share|improve this answer













                If you are seeing this in a Cloudera distro when you use Hue, then add the following to the Hive Service Advanced Configuration Snippet (Safety Valve) for hive-site.xml in Cloudera Manager (or straight to the hive-site.xml for other distros):



                <property>
                <name>hive.server2.logging.operation.enabled</name>
                <value>true</value>
                </property>






                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Mar 31 '16 at 14:57









                wazywazy

                831920




                831920













                • Thanks so much! Worked perfectly for me.

                  – Chaos
                  Jun 17 '16 at 5:46











                • This was what I needed, thanks.

                  – Robert Rapplean
                  Mar 9 '17 at 21:19



















                • Thanks so much! Worked perfectly for me.

                  – Chaos
                  Jun 17 '16 at 5:46











                • This was what I needed, thanks.

                  – Robert Rapplean
                  Mar 9 '17 at 21:19

















                Thanks so much! Worked perfectly for me.

                – Chaos
                Jun 17 '16 at 5:46





                Thanks so much! Worked perfectly for me.

                – Chaos
                Jun 17 '16 at 5:46













                This was what I needed, thanks.

                – Robert Rapplean
                Mar 9 '17 at 21:19





                This was what I needed, thanks.

                – Robert Rapplean
                Mar 9 '17 at 21:19











                1














                If you are using AWS EMR, then add the following to the hive-site.xml file at /etc/hive/conf.dist/hive-site.xml:



                <property>
                <name>hive.server2.logging.operation.enabled</name>
                <value>true</value>
                </property>


                Then log into the master node and restart hue and hive server



                sudo stop hive-server2
                sudo stop hue
                sudo start hue
                sudo start hive-server2


                This fixed it for me (tested in Release label emr-4.6.0).






                share|improve this answer




























                  1














                  If you are using AWS EMR, then add the following to the hive-site.xml file at /etc/hive/conf.dist/hive-site.xml:



                  <property>
                  <name>hive.server2.logging.operation.enabled</name>
                  <value>true</value>
                  </property>


                  Then log into the master node and restart hue and hive server



                  sudo stop hive-server2
                  sudo stop hue
                  sudo start hue
                  sudo start hive-server2


                  This fixed it for me (tested in Release label emr-4.6.0).






                  share|improve this answer


























                    1












                    1








                    1







                    If you are using AWS EMR, then add the following to the hive-site.xml file at /etc/hive/conf.dist/hive-site.xml:



                    <property>
                    <name>hive.server2.logging.operation.enabled</name>
                    <value>true</value>
                    </property>


                    Then log into the master node and restart hue and hive server



                    sudo stop hive-server2
                    sudo stop hue
                    sudo start hue
                    sudo start hive-server2


                    This fixed it for me (tested in Release label emr-4.6.0).






                    share|improve this answer













                    If you are using AWS EMR, then add the following to the hive-site.xml file at /etc/hive/conf.dist/hive-site.xml:



                    <property>
                    <name>hive.server2.logging.operation.enabled</name>
                    <value>true</value>
                    </property>


                    Then log into the master node and restart hue and hive server



                    sudo stop hive-server2
                    sudo stop hue
                    sudo start hue
                    sudo start hive-server2


                    This fixed it for me (tested in Release label emr-4.6.0).







                    share|improve this answer












                    share|improve this answer



                    share|improve this answer










                    answered Feb 2 '17 at 1:13









                    Alastor MoodyAlastor Moody

                    1,06651535




                    1,06651535























                        0














                        In Windows 8.1, I were also facing the same issue part inside hive query part -



                        org.apache.hive.service.cli.HiveSQLException: Couldn't find log associated with operation handle: OperationHandle [opType=EXECUTE_STATEMENT, getHandleIdentifier()=230485c4-a1be-4a17-94c8-a1ebce426319]


                        thus, I went to the %HIVE_HOME%/conf/hive-site.xml and changed the property name hive.server2.logging.operation.log.location earlier value ${system:user.name}/operation_logs to like below said -



                          <property>
                        <name>hive.server2.logging.operation.log.location</name>
                        <value>/tmp/${user.name}/operation_logs</value>
                        <description>Top level directory where operation logs are stored if logging functionality is enabled</description>
                        </property>


                        and also replaced all the values which contains the ${system:user.name} to /tmp/${user.name} and this brings me up by the job logging issue in hive, thanks.






                        share|improve this answer




























                          0














                          In Windows 8.1, I were also facing the same issue part inside hive query part -



                          org.apache.hive.service.cli.HiveSQLException: Couldn't find log associated with operation handle: OperationHandle [opType=EXECUTE_STATEMENT, getHandleIdentifier()=230485c4-a1be-4a17-94c8-a1ebce426319]


                          thus, I went to the %HIVE_HOME%/conf/hive-site.xml and changed the property name hive.server2.logging.operation.log.location earlier value ${system:user.name}/operation_logs to like below said -



                            <property>
                          <name>hive.server2.logging.operation.log.location</name>
                          <value>/tmp/${user.name}/operation_logs</value>
                          <description>Top level directory where operation logs are stored if logging functionality is enabled</description>
                          </property>


                          and also replaced all the values which contains the ${system:user.name} to /tmp/${user.name} and this brings me up by the job logging issue in hive, thanks.






                          share|improve this answer


























                            0












                            0








                            0







                            In Windows 8.1, I were also facing the same issue part inside hive query part -



                            org.apache.hive.service.cli.HiveSQLException: Couldn't find log associated with operation handle: OperationHandle [opType=EXECUTE_STATEMENT, getHandleIdentifier()=230485c4-a1be-4a17-94c8-a1ebce426319]


                            thus, I went to the %HIVE_HOME%/conf/hive-site.xml and changed the property name hive.server2.logging.operation.log.location earlier value ${system:user.name}/operation_logs to like below said -



                              <property>
                            <name>hive.server2.logging.operation.log.location</name>
                            <value>/tmp/${user.name}/operation_logs</value>
                            <description>Top level directory where operation logs are stored if logging functionality is enabled</description>
                            </property>


                            and also replaced all the values which contains the ${system:user.name} to /tmp/${user.name} and this brings me up by the job logging issue in hive, thanks.






                            share|improve this answer













                            In Windows 8.1, I were also facing the same issue part inside hive query part -



                            org.apache.hive.service.cli.HiveSQLException: Couldn't find log associated with operation handle: OperationHandle [opType=EXECUTE_STATEMENT, getHandleIdentifier()=230485c4-a1be-4a17-94c8-a1ebce426319]


                            thus, I went to the %HIVE_HOME%/conf/hive-site.xml and changed the property name hive.server2.logging.operation.log.location earlier value ${system:user.name}/operation_logs to like below said -



                              <property>
                            <name>hive.server2.logging.operation.log.location</name>
                            <value>/tmp/${user.name}/operation_logs</value>
                            <description>Top level directory where operation logs are stored if logging functionality is enabled</description>
                            </property>


                            and also replaced all the values which contains the ${system:user.name} to /tmp/${user.name} and this brings me up by the job logging issue in hive, thanks.







                            share|improve this answer












                            share|improve this answer



                            share|improve this answer










                            answered Dec 17 '17 at 9:04









                            ArifMustafaArifMustafa

                            1,53821831




                            1,53821831























                                0














                                If you're running into this issue due to a shell script or java program, the first thing you need to check is the connection string, I have faced similar issue few months back, when in my script I was running the queries in such manner:



                                beeline -u  jdbc:hive2:// -e "show databases;"


                                This was due to missing of proper Hive Connection string, once I corrected the connection string and ran the query, it ran without any issues:



                                beeline -u  jdbc:hive2://server.enterprise.org:10000/default -e "show databases;"


                                This answer is only specific to the developers who are using a script or code, for Hue/Cloudera distro, kindly refer to the above answers.



                                Cheers!






                                share|improve this answer




























                                  0














                                  If you're running into this issue due to a shell script or java program, the first thing you need to check is the connection string, I have faced similar issue few months back, when in my script I was running the queries in such manner:



                                  beeline -u  jdbc:hive2:// -e "show databases;"


                                  This was due to missing of proper Hive Connection string, once I corrected the connection string and ran the query, it ran without any issues:



                                  beeline -u  jdbc:hive2://server.enterprise.org:10000/default -e "show databases;"


                                  This answer is only specific to the developers who are using a script or code, for Hue/Cloudera distro, kindly refer to the above answers.



                                  Cheers!






                                  share|improve this answer


























                                    0












                                    0








                                    0







                                    If you're running into this issue due to a shell script or java program, the first thing you need to check is the connection string, I have faced similar issue few months back, when in my script I was running the queries in such manner:



                                    beeline -u  jdbc:hive2:// -e "show databases;"


                                    This was due to missing of proper Hive Connection string, once I corrected the connection string and ran the query, it ran without any issues:



                                    beeline -u  jdbc:hive2://server.enterprise.org:10000/default -e "show databases;"


                                    This answer is only specific to the developers who are using a script or code, for Hue/Cloudera distro, kindly refer to the above answers.



                                    Cheers!






                                    share|improve this answer













                                    If you're running into this issue due to a shell script or java program, the first thing you need to check is the connection string, I have faced similar issue few months back, when in my script I was running the queries in such manner:



                                    beeline -u  jdbc:hive2:// -e "show databases;"


                                    This was due to missing of proper Hive Connection string, once I corrected the connection string and ran the query, it ran without any issues:



                                    beeline -u  jdbc:hive2://server.enterprise.org:10000/default -e "show databases;"


                                    This answer is only specific to the developers who are using a script or code, for Hue/Cloudera distro, kindly refer to the above answers.



                                    Cheers!







                                    share|improve this answer












                                    share|improve this answer



                                    share|improve this answer










                                    answered Dec 31 '18 at 9:43









                                    Deepesh RehiDeepesh Rehi

                                    246215




                                    246215






























                                        draft saved

                                        draft discarded




















































                                        Thanks for contributing an answer to Stack Overflow!


                                        • Please be sure to answer the question. Provide details and share your research!

                                        But avoid



                                        • Asking for help, clarification, or responding to other answers.

                                        • Making statements based on opinion; back them up with references or personal experience.


                                        To learn more, see our tips on writing great answers.




                                        draft saved


                                        draft discarded














                                        StackExchange.ready(
                                        function () {
                                        StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f32090918%2fhive-error-on-all-queries-couldnt-find-log-associated-with-operation-handle%23new-answer', 'question_page');
                                        }
                                        );

                                        Post as a guest















                                        Required, but never shown





















































                                        Required, but never shown














                                        Required, but never shown












                                        Required, but never shown







                                        Required, but never shown

































                                        Required, but never shown














                                        Required, but never shown












                                        Required, but never shown







                                        Required, but never shown







                                        Popular posts from this blog

                                        Monofisismo

                                        Angular Downloading a file using contenturl with Basic Authentication

                                        Olmecas