hive 重启连接不上

异常信息:

FAILED: HiveException java.lang.RuntimeException: Unable to instantiate org.apache.hadoop.hive.ql.metadata.SessionHiveMetaStoreClient

解决方法:

rm   metastore_db/*.lck

一般情况下都可以解决,要是还不行,就把这个目录删了

参考:

https://stackoverflow.com/questions/22711364/java-lang-runtimeexceptionunable-to-instantiate-org-apache-hadoop-hive-metastor

schematool -dbType mysql -initSchema 执行失败的问题

一般就是配置文件有问题 改成这样

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<?xml-stylesheet type="text/xsl" href="configuration.xsl"?><!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
--><configuration>
<!-- WARNING!!! This file is auto generated for documentation purposes ONLY! -->
<property>
<name>javax.jdo.option.ConnectionUserName</name>
<value>root</value>
</property>
<property>
<name>javax.jdo.option.ConnectionPassword</name>
<value>123456</value>
</property>
<property>
<name>javax.jdo.option.ConnectionURL</name>
<value>jdbc:mysql://localhost:3306/hive</value>
</property>
<property>
<name>javax.jdo.option.ConnectionDriverName</name>
<value>com.mysql.jdbc.Driver</value>
</property>
<!-- WARNING!!! Any changes you make to this file will be ignored by Hive. -->
<!-- WARNING!!! You must make your changes in hive-site.xml instead. -->
<!-- Hive Execution Parameters -->
</configuration>

最新文章

  1. kuangbin_SegTree M (HDU 4553)
  2. PRML读书会第十三章 Sequential Data(Hidden Markov Models,HMM)
  3. ubuntu eclipse 不能新建javaweb项目解决方案
  4. 实习小记-python 内置函数__eq__函数引发的探索
  5. yii框架AR详解
  6. I.MX6 git patch
  7. cgroup的测试数据
  8. 132. Palindrome Partitioning II
  9. C#委托 Lamda表达式
  10. 【v2.x OGE课程 14】 控制使用
  11. NDEF消息解析实例[转]
  12. vue报错 Do not use built-in or reserved HTML elements as component id:header
  13. android PM2.5监控demo开发
  14. ansible学习基础知识和模块(一)
  15. docker 7 docker的帮助命令
  16. Android 永久保存简单数据
  17. 题解-APIO2010 特别行动队
  18. Docker概念(二)
  19. js取得background属性url的值--移动端【踩坑】
  20. 五 js对象简介

热门文章

  1. Ztree + bootstarp-table 使用
  2. [LeetCode] 104. Maximum Depth of Binary Tree 二叉树的最大深度
  3. linux操作记录
  4. 2019年上-C语言程序设计-第1次blog作业
  5. nginx服务器图片防盗链的方法
  6. 从URL重写中学习正则表达式
  7. ABA问题的产生及解决
  8. R与金钱游戏:均线黄金交叉2
  9. halcon机器视觉工程开发思路
  10. .net core SIMD范例分析