异常堆栈如下:

2015-11-24 16:49:11,495 ERROR org.apache.hive.service.cli.operation.Operation: Error running hive query:

org.apache.hive.service.cli.HiveSQLException: Illegal Operation state transition from CLOSED to ERROR
        at org.apache.hive.service.cli.OperationState.validateTransition(OperationState.java:91)
        at org.apache.hive.service.cli.OperationState.validateTransition(OperationState.java:97)
        at org.apache.hive.service.cli.operation.Operation.setState(Operation.java:116)
        at org.apache.hive.service.cli.operation.SQLOperation.runInternal(SQLOperation.java:159)
        at org.apache.hive.service.cli.operation.SQLOperation.access$000(SQLOperation.java:69)
        at org.apache.hive.service.cli.operation.SQLOperation$1$1.run(SQLOperation.java:200)
        at java.security.AccessController.doPrivileged(Native Method)
        at javax.security.auth.Subject.doAs(Subject.java:415)
        at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1642)
        at org.apache.hadoop.hive.shims.HadoopShimsSecure.doAs(HadoopShimsSecure.java:502)
        at org.apache.hive.service.cli.operation.SQLOperation$1.run(SQLOperation.java:213)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
        at java.util.concurrent.FutureTask.run(FutureTask.java:262)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)

at java.lang.Thread.run(Thread.java:745)

When server close a operation(for example because of session timeout), it set the state to CLOSED, then the background operation is canceled, hive driver failed and try to set the state to ERROR, but it is illegal to do that. So exception occurs. 
The patch simply ignore driver error when the current state is CLOSED(or CANCELED).

https://issues.apache.org/jira/browse/HIVE-9005

https://issues.apache.org/jira/browse/HIVE-5799

转载于:https://www.cnblogs.com/dailidong/p/7571167.html

hive Illegal Operation state transition from CLOSED to ERROR的处理相关推荐

  1. 解决npm instal 或者npm run build 构建错误 Error:EISDIR:illegal operation on a directory 的错误提示

    在执行 npm install 的时候出现这个错误:Error:EISDIR:illegal operation on a directory EISDIR代表"错误,是目录"这意 ...

  2. react 警告Warning: Cannot update during an existing state transition (such as within `render`). Render

    react 报错Warning: Cannot update during an existing state transition (such as within `render`). Render ...

  3. react警告:setState(...): Cannot update during an existing state transition (such as within `render` or

    在使用react的时候,发现一个警告 Warning: setState(...):Cannot update during an existing state transition (such as ...

  4. React使用路由跳转时控制台报Cannot update during an existing state transition (such as within `render`)错误

    React使用路由跳转时控制台报Cannot update during an existing state transition (such as within render).Render met ...

  5. MySQL 数据库show processlist where条件筛选报错解决方法,[Code: 1064, SQL State: 42000] You have an error in your

    -- 筛选报错 show processlist where user = 'root'; -- 筛选可用 select * from information_schema.processlist w ...

  6. The operation couldn’t be completed. (LaunchServicesError error 0.)

    The operation couldn't be completed. (LaunchServicesError error 0.) 每次运行都会报这错误,但是只要clear下工程就可以运行.搞得每 ...

  7. The operation couldn't be completed.(LaunchServicesError error 0.)问题描述和解决方法

    The operation couldn't be completed.(LaunchServicesError error 0.)模拟器问题描述和解决方法 一:问题描述 1.在iOS模拟器下运行AP ...

  8. Error Domain=NSCocoaErrorDomain Code=3840 The operation couldn’t be completed. (Cocoa error 3840.)

    AF解析json出错: Error Domain=NSCocoaErrorDomain Code=3840 "The operation couldn't be completed. (Co ...

  9. PHP getimagesize(): SSL operation failed with code 1. OpenSSL Error messages: error:14090086:SSL rou

    今天碰到客户应用服务器(CentOS)一个问题,使用getimagesize()时总是报错: PHP getimagesize(): SSL operation failed with code 1. ...

最新文章

  1. java怎么获取固定的日期,如何获取一个指定时间的java.util.Date对象
  2. abp框架mysql连接配置,abp框架连接数据库
  3. [转] Silverlight Navigation(多页面切换、传值)
  4. 使用java实现数字滤波器
  5. CSS+DIV:理论实战缺一不可
  6. python学习网站-关于python学习,最系统的学习网站看这里
  7. Atitit.java 反编译 工具  attilax 总结
  8. 麻瓜编程python web_麻瓜编程 Python Web开发工程师教程 完整版
  9. 计算机屏幕颜色变黄色,win10系统电脑屏幕颜色偏黄如何调节
  10. Captain Flint and Crew Recruitment
  11. 【Seedlabs】Local DNS Attack Lab
  12. 宇宙是计算机控制的,宇宙被计算机精确控制到秒,暗能量被否定之后我们活在一个程序中...
  13. c++基础题:判断某整数是正整数、负整数还是零
  14. 哨兵 (sentinal) 机制的工作原理
  15. Chap.6 总结《CL: An Introduction》 (Vyvyan Evans)
  16. android:layout_gravity=end,android layout_gravity 和gravity
  17. animate.css 签字动画,使用animate.css完成动画
  18. 搜狐邮箱的Python经验
  19. 【Matlab】绘制EEG脑电头皮地形图
  20. win10系统5小时休眠—windows日志查看 判断非法关机

热门文章

  1. tmp ubuntu 自动删除吗_Linux tmp目录自动清理总结
  2. c# ssh到linux,C#通过SharpSSH库与Linux服务器建立SSH连接并执行命令
  3. 由于采用分时技术 用户可以独占计算机资源,计算机操作系统第1章练习题
  4. 【百家稷学】卷积神经网络的前世、今生与未来(武汉工程大学技术分享)
  5. 【每周CV论文】初学深度学习图像修复应该要读的文章
  6. 【chainer速成】chainer图像分类从模型自定义到测试
  7. 全球及中国汽车轮胎再制造市场销售产值与运营发展模式分析报告2022年
  8. 如何使用live writer客户端来发布CSDN的博客文章?
  9. vb制作可输出函数的通用DLL---VB_DLL_Link用法
  10. box-sizing:border-box