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. 安装SSMS出现许可证被颁发者直接吊销

    出现这种情况,使用以下链接下载rootsupd.exe程序:http://media.kaspersky.com/utilities/CorporateUtilities/rootsupd.zip 运 ...

  2. Onur Mutlu 18-447 Lecture9 分支预测-1

    =============== 第一部分:branch prediction =========== 1. 最简单的分支预测:总是预测下一条指令的地址在 PC+4 如何让这种分支预测更加有效呢? Id ...

  3. We've detected suspicious behavior from phone numbers similar to yours. Please try again later or contact us through our help center at help.openai.com.

    原因 很多人使用该地区号码,被限制住了 解决办法 过会儿再试,或者换个地区接码

  4. js中的对象方法中this指向问题

    对象方法调用this所在函数fn的是b,所以this指向b,b.a1='hello a3' ,b没有a2属性,b.a2=undefinedvar a1='hello a1'var a2='hello ...

  5. Mac技术服务, 感谢 点赞打赏!

    Mac技术服务 首先,非常感谢大家对我的支持和鼓励,我会继续给大家提供更好更优秀的服务 如果需要单独解决Mac问题,您也可以选择付费服务,感谢大家的理解与支持! * 普通问题/软件安装:10元--10 ...

  6. java面经学习002

    2. Java都有哪些map,分别怎么实现的,具体讲 3. 除了LinkedHashMap,你还知道哪些有序map 4. ConcurrentHashMap讲一讲 5. 为什么要有线程池 6. 线程池 ...

  7. js apply 与 call

    简介 用来调用方法,第一个参数替换掉用方法的this对象 区别:call:A.fn.call(B, arg1,arg2,argn...),后面的参数用逗号分隔 apply:A.fn.apply(B, ...

  8. CCF 202006-2 稀疏向量

    #include <iostream> #include <bits/stdc++.h> #include <string> using namespace std ...

  9. 第三课 Hello World显示

    HelloWorld 1.新建文件件 2.新建java文件 3.编写代码 public class Hello{ public static void main(String[] args){ Sys ...

  10. 学习笔记||Vue踩过的坑3.0

    11.VUE之const,var,let VUE-var 用var命令声明的变量,是在全局范围内有效的 VUE-let let声明的变量,只是在当前循环的代码块中有效. let不允许在相同的作用域内重 ...