错误:

ERROR : FAILED: Error in acquiring locks: Locks on the underlying objects cannot be acquired. retry after some timeorg.apache.hadoop.hive.ql.lockmgr.LockException: Locks on the underlying objects cannot be acquired. retry after some time

解决办法: set hive.support.concurrency=false;

Hive中定义了两种锁的模式:共享锁(S)和排它锁(X),顾名思义,多个共享锁(S)可以同时获取,但是排它锁(X)会阻塞其它所有锁。

如果select一张表,这张表则会进入shared模式,增加、插入、删除、修改数据和修改表名等操作都会在shared锁被释放之后再执行,会一直等待。

如果插入、删除、修改数据则进入Exclusive锁模式,进入排他锁模式之后不允许增删改操作,会报错

ERROR : FAILED: Error in acquiring locks: Locks on the underlying objects cannot be acquired. retry after some time org.apache.hadoop.hive.ql.lockmgr.LockException: Locks on the underlying objects cannot be acquired. retry after some time

释放掉Exclusive锁模式即可操作。

hive: Error in acquiring locks相关推荐

  1. sqoop将oracle数据导入到hive报错:Error: java.io.IOException: SQLException in nextKeyValue

    提示:文章写完后,目录可以自动生成,如何生成可参考右边的帮助文档 文章目录 问题 一.问题是什么导致的? 二.验证问题 总结 问题 sqoop将oracle数据导入到hive报错:Error: jav ...

  2. hive 格式化:Error: Table ‘CTLGS‘ already exists (state=42S01,code=1050) Closing: 0: jdbc:mysql://hadoop

    hive 格式化schematool -initSchema -dbType mysql -verbose 出现:Error: Table 'CTLGS' already exists (state= ...

  3. sqoop导出数据时:ERROR tool.ExportTool: Error during export: Export job failed!解决

    sqoop导出数据时:ERROR tool.ExportTool: Error during export: Export job failed!解决 这里的错误就是经典的hive和mysql的表结构 ...

  4. 错误:Error: Could not open client transport with JDBC Uri: jdbc:hive2://ducking:10000: java.net.Connec

    启动Hive客户端[root@node02 hive-2.3.6]# beeline -u jdbc:hive2://node01:10000 -n root -p 1213 时报下面错: Error ...

  5. flume 对接 kafka 报错: Error while fetching metadata with correlation id 35 {=INVALID_TOPIC_EXCEPTION}

    flume 对接 kafka 报错:Error while fetching metadata with correlation id 35 : {=INVALID_TOPIC_EXCEPTION} ...

  6. pycharm中报错:Error: failed to send plot to http://127.0.0.1:63342

    pycharm中报错:Error: failed to send plot to http://127.0.0.1:63342 import matplotlib.pyplot as plt impo ...

  7. Spring Boot项目错误:Error parsing lifecycle processing instructions

    pom.xml文件错误:Error parsing lifecycle processing instructions 解决方法:清空.m2/repository下的所有依赖文件,重新下载即可解决该问 ...

  8. 【ffmpeg】编译时报错:error: undefined reference to `av...

    1.问题描述 昨天使用ffmpeg库编译demo一切正常,今天再次链接ffmpeg库时报了一堆错误: error: undefined reference to `av_frame_alloc()' ...

  9. 【C++】mingw32-make+cmake:error: ‘nullptr‘ was not declared in this scope解决方法

    ###问题 使用cmake成功(Configuring done Generating done)后,在cmd终端中执行 mingw32-make报错: error: 'nullptr' was no ...

  10. 错误:Error #2032解决方案

    问题: Error #2032错误要访问外部数据,必须信任此文件. 现象: 要访问外部数据,必须信任此文件. 对于 PDF 文件,在 Adobe Reader 中,单击"Edit" ...

最新文章

  1. Java常用类之【Math类、Random类、System类、Runtime类】
  2. 惠普z840工作站linux,HP Z840 工作站,高清非编工作站
  3. Golang的指针类型
  4. [转]关于父亲的故事
  5. [BZOJ2017][Usaco2009 Nov]硬币游戏
  6. 俄罗斯:自由软件在这里生根
  7. 太阳能板如何串联_太阳能光伏系统单晶和多晶模组的差异?农村家庭自用如何科学选择...
  8. iview table数据直接导出_使用iview的exportcsv怎样导出嵌套数据
  9. jfinal 获取路径
  10. rhel6.3-64 yum问题
  11. VXLAN Ethernet Virtual Private Network集中式和分布式网关实验(华为设备)
  12. 如何用excel制作xy曲线图_如何用excel制作表格?
  13. PS 动图修改背景坑
  14. 美团三面挂了....这个坑千万别踩!
  15. 计算机装两个显示器怎么操作,一台电脑两个显示器的设置方法
  16. 清华大学计算机与科学分数线,清华大学各地录取情况及调档线一览
  17. 任正非:小公司别讲复杂价值观 认真磨好豆腐就有人买
  18. 在iframe中写html,使用jQuery在iframe中获取HTML
  19. 用10000个电极窃听大脑
  20. 图片抠图怎么抠干净?学会这几种方法轻松抠图

热门文章

  1. python汉字简繁体转换方法
  2. 苹果手机换电池对手机有影响吗_换手机不如换电池?手机电池影响手机寿命,这些知识早知道为好...
  3. Python+BI分析5000条招聘数据,原来数据分析工作在这儿最好找
  4. 获取淘宝天猫商品历史价格信息API接口
  5. 第四章 sysrepo共享内存机制
  6. 2007年浙江高考满分作文——行走在消逝中
  7. poj2142 The Balance
  8. Ubuntu下 百度在线语音合成使用
  9. markdown格式,默写
  10. HackerRank python练习——Quartiles