1、问题示例

使用hive直接选择查看表中数据报错,而相同语句在spark-sql却不报错。

实在无力吐槽hive了,因它受伤太多了。

(1)使用hive

hive (test)> select * from t1;
FAILED: LockException [Error 10280]: Error communicating with the metastore
hive (test)> select * from t2;
FAILED: LockException [Error 10280]: Error communicating with the metastore
hive (test)> select * from t3;
FAILED: LockException [Error 10280]: Error communicating with the metastore
hive (test)> select * from t_orcfile;
FAILED: LockException [Error 10280]: Error communicating with the metastore
hive (test)> select * from t_textfile;
FAILED: LockException [Error 10280]: Error communicating with the metastore
hive (test)> select * from t_sequencefile;
FAILED: LockException [Error 10280]: Error communicating with the metastore

(2)使用spark-sql

spark-sql> select * from t1;
1 aaa
2 bbb
Time taken: 0.234 seconds, Fetched 2 row(s)
spark-sql> select * from t2;
Time taken: 0.086 seconds
spark-sql> select * from t3;
1 aaa
Time taken: 0.135 seconds, Fetched 1 row(s)
spark-sql> select * from t_orcfile;
a1 1 b1 c1
a2 2 b2 c2
a3 3 b3 c3
a4 4 b4 c4
a5 5 b5 c5
Time taken: 0.255 seconds, Fetched 5 row(s)
spark-sql> select * from t_textfile;
a1 3 b3 c3
a4 4 b4 c4
a1 1 b1 c1
a2 2 b2 c2
Time taken: 0.211 seconds, Fetched 4 row(s)
spark-sql> select * from t_sequencefile;
a1 1 b1 c1
a2 2 b2 c2
Time taken: 1.673 seconds, Fetched 2 row(s)

2、解决方案

尚未解决,确信hive-site.xml没有问题。

3、问题剖析

尚未知晓。

Hive:FAILED: LockException [Error 10280]: Error communicating with the metastore的更多相关文章

  1. idea报错:error java compilation failed internal java compiler error

    idea下面报如下问题 error java compilation failed internal java compiler error 解决办法:Setting->Compiler-> ...

  2. MDK st-link下载STM32程序出现Internal command error和Error:Flash download failed. Target DLL

    MDK st-link下载STM32程序出现Internal command error和Error:Flash download failed. Target DLL   是因为目标板的芯片处于休眠 ...

  3. idea Error:java: Compilation failed: internal java compiler error

    idea 遇到Error:java: Compilation failed: internal java compiler error 是提示说你当前使用的编译器jdk版本不对. 按住Ctrl+Alt ...

  4. Error:java:Compilation failed: internal java compiler error

    在IDEA中编译时出现这个错误:Error:java:Compilation failed: internal java compiler error! Information:Using javac ...

  5. Deployment failed due to an error in FastDev assembly synchronization.

    在编译的时候发生Assembly synchronization error,显示信息为:Deployment failed due to an error in FastDev assembly s ...

  6. ERROR: transport error 202: bind failed: Address already in use

    早上上班,同事反应服务上不去,后台看了一下,发现tomcat挂掉了,重新启动tomcat时报错. ERROR: transport error 202: bind failed: Address al ...

  7. iOS9 白名单问题 -canOpenURL: failed for URL: "xx" - error:"This app is not allowed to query for scheme xx"

    [iOS开发]-canOpenURL: failed for URL: "xx" - error:"This app is not allowed to query fo ...

  8. VS 2017 Git failed with a fatal error的解决办法

    前几天,满怀欣喜的从VS2015更新到了VS2017,经过这几天的试用,整体来说感觉还是挺不错的.昨天推送项目到远程服务器的时候,发现出现了推送失败的错误,错误如图: 按照提示,我看到输出窗口的输入内 ...

  9. composer在update时提示file could not be downloaded: SSL operation failed with code 1. OpenSSL Error messages: error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO

    在开发的时候,需要把依赖的服务更新到最新,然后 手动composer update一下,提示如下: failed) Update failed (The "e "https://a ...

  10. postman Installation has failed: There was an error while installing the application. Check the setup log for more information and contact the author

    Error msg: Installation has failed: There was an error while installing the application. Check the s ...

随机推荐

  1. java技术系列(四) 泛型

    泛型声明 有限制泛型声明方式: //确保class即表示枚举有表示Operation的子类型: private static <T extends Enum<T> & Ope ...

  2. struts2 显示表格

    <%@ taglib uri="/struts-tags" prefix="s"%> <h3>All Records:</h3&g ...

  3. input点击焦点后阴影

    input[type=text]:focus { outline: none; border-color: rgba(82, 168, 236, 0.8); box-shadow:inset 0 1p ...

  4. ionic 架构

    1.路由:rout,页面内容:html,页面css:scss,js脚本内容:ts 2.功能介绍 路由:负责组织每个页面. 页面css:scss,负责定制每个组件的内容,比如组件是iobag,那么在这个 ...

  5. 781. 森林中的兔子 (Medium)

    问题描述 781. 森林中的兔子 (Medium) 森林中有未知数量的兔子.提问其中若干只兔子 "还有多少只兔子与你(指被提问的兔子)颜色相同?" ,将答案收集到一个整数数组 an ...

  6. windows 批量杀进程

    1 import psutil 2 from subprocess import Popen, PIPE 3 4 process_name ="bsmr.exe,fxclient.exe,F ...

  7. 2022-04-18内部群每日三题-清辉PMP

    1.在为一个有预算限制的项目生成状态报告时,项目经理发现该项目比进度计划落后一周.若要将项目拉回正轨,项目经理应该怎么做? A.重新分配关键路径活动的团队成员. B.向项目发起人要求额外的时间. C. ...

  8. Visual Studio 2019注册码

    最近在学习Visual Studio,但是晕斗士(筛子系统)提示需要注册码,否则只能试用30天,由于是学习购买就没必要了,找Google找到了一下两段注册码. 目前测试了专业版已经注册成功. Visu ...

  9. JavaScript Math(算数) 对象

    JavaScript Math(算数) 对象 Math(算数)对象的作用是:执行常见的算数任务. 在线实例 round()如何使用 round(). random()如何使用 random() 来返回 ...

  10. 060_关于Component Event的介绍 (本文为转载)

    转载自:https://www.cnblogs.com/zero-zyq/p/8977093.html lightning component基于事件驱动模型来处理用户界面的交互.这种事件驱动模型和j ...