hive-萌芽求救 HIVE启动失败

问题描述

萌芽求救 HIVE启动失败
IT届 萌芽求救

 [root@h1 ~]# hiveLogging initialized using configuration in jar:file:/usr/local/apache-hive-0.13.0-bin/lib/hive-common-0.13.0.jar!/hive-log4j.propertiesJava HotSpot(TM) Client VM warning: You have loaded library /usr/local/hadoop-2.6.0/lib/native/libhadoop.so.1.0.0 which might have disabled stack guard. The VM will try to fix the stack guard now.It's highly recommended that you fix the library with 'execstack -c <libfile>' or link it with '-z noexecstack'.Exception in thread ""main"" java.lang.RuntimeException: java.lang.RuntimeException: Unable to instantiate org.apache.hadoop.hive.metastore.HiveMetaStoreClient        at org.apache.hadoop.hive.ql.session.SessionState.start(SessionState.java:344)        at org.apache.hadoop.hive.cli.CliDriver.run(CliDriver.java:681)        at org.apache.hadoop.hive.cli.CliDriver.main(CliDriver.java:625)        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)        at java.lang.reflect.Method.invoke(Method.java:606)        at org.apache.hadoop.util.RunJar.run(RunJar.java:221)        at org.apache.hadoop.util.RunJar.main(RunJar.java:136)Caused by: java.lang.RuntimeException: Unable to instantiate org.apache.hadoop.hive.metastore.HiveMetaStoreClient        at org.apache.hadoop.hive.metastore.MetaStoreUtils.newInstance(MetaStoreUtils.java:1412)        at org.apache.hadoop.hive.metastore.RetryingMetaStoreClient.<init>(RetryingMetaStoreClient.java:62)        at org.apache.hadoop.hive.metastore.RetryingMetaStoreClient.getProxy(RetryingMetaStoreClient.java:72)        at org.apache.hadoop.hive.ql.metadata.Hive.createMetaStoreClient(Hive.java:2444)        at org.apache.hadoop.hive.ql.metadata.Hive.getMSC(Hive.java:2456)        at org.apache.hadoop.hive.ql.session.SessionState.start(SessionState.java:338)        ... 8 moreCaused by: java.lang.reflect.InvocationTargetException        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)        at java.lang.reflect.Constructor.newInstance(Constructor.java:526)        at org.apache.hadoop.hive.metastore.MetaStoreUtils.newInstance(MetaStoreUtils.java:1410)        ... 13 moreCaused by: javax.jdo.JDOFatalInternalException: Error creating transactional connection factoryNestedThrowables:java.lang.reflect.InvocationTargetException       ...

这是我的配置文件hive-env.sh:

 [root@h1 conf]# cat hive-env.sh# 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.# Set Hive and Hadoop environment variables here. These variables can be used# to control the execution of Hive. It should be used by admins to configure# the Hive installation (so that users do not have to set environment variables# or set command line parameters to get correct behavior).## The hive service being invoked (CLI/HWI etc.) is available via the environment# variable SERVICE# Hive Client memory usage can be an issue if a large number of clients# are running at the same time. The flags below have been useful in # reducing memory usage:## if [ ""$SERVICE"" = ""cli"" ]; then#   if [ -z ""$DEBUG"" ]; then#     export HADOOP_OPTS=""$HADOOP_OPTS -XX:NewRatio=12 -Xms10m -XX:MaxHeapFreeRatio=40 -XX:MinHeapFreeRatio=15 -XX:+UseParNewGC -XX:-UseGCOverheadLimit""#   else#     export HADOOP_OPTS=""$HADOOP_OPTS -XX:NewRatio=12 -Xms10m -XX:MaxHeapFreeRatio=40 -XX:MinHeapFreeRatio=15 -XX:-UseGCOverheadLimit""#   fi# fi# The heap size of the jvm stared by hive shell script can be controlled via:# export HADOOP_HEAPSIZE=1024## Larger heap size may be required when running queries over large number of files or partitions. # By default hive shell scripts use a heap size of 256 (MB).  Larger heap size would also be # appropriate for hive server (hwi etc).# Set HADOOP_HOME to point to a specific hadoop install directory# HADOOP_HOME=${bin}/../../hadoop HADOOP_HOME=${HADOOP_HOME}# Hive Configuration Directory can be controlled by: export HIVE_CONF_DIR=${HIVE_CONF_DIR}# Folder containing extra ibraries required for hive compilation/execution can be controlled by:# export HIVE_AUX_JARS_PATH=

我的hive-site.xml 配置信息:

 [root@h1 conf]# cat hive-site.xml <?xml version=""1.0""?><?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 provided for documentation purposes ONLY!     --><!-- 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 --><property><name>javax.jdo.option.ConnectionURL</name><value>jdbc:mysql://192.168.1.103:3306/hive?createDatabaseIfNotExist=true</value><description>JDBC connect string for a JDBC metastore</description></property><property><name>javax.jdo.option.ConnectionDriverName</name><value>com.mysql.jdbc.Driver</value><description>Driver class name for a JDBC metastore</description></property><property><name>javax.jdo.option.ConnectionUserName</name><value>root</value><description>username to use against metastore database</description></property><property><name>javax.jdo.option.ConnectionPassword</name><value>root</value><description>password to use against metastore database</description></property></configuration>

解决方案

问题已经解决,自己也是被集群折腾疯了!!!
之前有导入MySQL的驱动jar包,后来换了台机器,重新配置后给忘了!
导入jar包后,一切ok!
也算贡献了的连接MySQL的配置信息!

时间: 2024-11-03 16:57:49

hive-萌芽求救 HIVE启动失败的相关文章

安装问题-hive 安装,看似启动了,进入shell就出问题

问题描述 hive 安装,看似启动了,进入shell就出问题 安装完hive,运行${HIVE_HOME}/bin/hive进入shell hive>show tables > > > >sijgliajglajglkjarl >fsdjfksf >sdgfdujhgj > > >sgdgrgh > 就是这种情况,怎么回事啊 而且/tmp/$username/hive/hive.log字节数是0kb

无COM接口Windows服务启动失败的原因及解决方案

将VS创建的Windows服务项目编译生成的程序,通过命令行 "服务.exe -Service"注册为Windows服务后,就可以通过服务管理器进行管理了. 问题 通过服务管理器进行启动的时候,发现服务无法启动,提示错误 由于程序代码是由VS的项目模板生成的,生成后直接编译为Debug版,然后通过命令行进行注册,期间并没有修改过任何代码. 难道是只有Release版本才能通过服务管理器启动吗.于是将Release版注册为服务,通过服务管理器启动,仍然会报同样的错误. 由于服务比较特殊,

防火墙导致的NodeManager启动失败

Hadoop环境CDH4.4 今天年后第一天上班(实习中),还过一个月,实习第一份实习合同就到期了~ Hadoop集群的虚拟环境看上去太乱,所以就将3个节点(1master + 2Slaves)重启,结果NodeManager启动失败.查看日志,记录错误如下: 2014-02-10 18:24:07,635 FATAL org.apache.hadoop.yarn.server.nodemanager.NodeManager: Error starting NodeManager org.apa

360密盘启动失败的原因与解决方法

360密盘启动失败的原因与解决方法   360密盘 360密盘启动失败怎么办? 是9.7版360安全卫士造成的,卸载后重新安装9.6版安全卫士和密盘,密盘就能打开.研究发现:从9.6版升级安装到9.7版能打开,如果全新安装9.7版就会出现360密盘启动失败.

Parallel port driver服务启动失败设置

Parallel port driver服务启动失败设置 解决办法:注册表 HKEY_LOCAL_MACHINESYSTEMControlSet001ServicesParport中,将"start=3"改为"start=0"就可以了.

phpstudy 2013经常启动失败怎么办?

  1.这个程序自带FTP服务器,支持多用户,无需再安装FTP服务器.自带网站挂马监视器,随时记录文件的修改情况,让挂马文件无处可逃. 2.程序启动失败,首要原因是防火墙拦截,二是80端口可能已经被别的程序占用,如IIS,迅雷,电驴等;三是没有安装VC9运行库,php和apache都是VC9编译.解决以上三个问题,99%能一次性安装成功. 3.为了减少出错,程序安装路径不得有汉字和特殊字符,如有防火墙开启,会提示是否信任httpd.mysqld运行,请选择全部允许. 4.由于牵扯到注册服务.自解

APMServ中Apache启动失败

  解决办法之一: Apache 启动失败解决办法~~~ 把左下角的SSL钩上了,如果你没有用证书,就把那个去掉,反正我去掉就可以了.后来装了证书钩上SSL也可以用了. 解决办法之二: 我遇到跟楼主同样问题,在新装了WINDOWS XP之后.以前用WIN2000是正常的.看了前面大家说的把SSL勾掉的办法,也解决不了.后来就去查卡巴,也没看到有什么设置影响;用APM自带的一个解决软件冲突的功能,执行后问题依然. 于是,怀疑是不是APM所在的文件夹的父文件夹是中文的,对它有影响,删掉重建,还是不行

SSH启动失败解决方法

  VPS是3个人合租共用的,不知道谁操作了什么导致SSH启动失败,一直连接不上刚开始以为系统坏了呢,后面通过VPS终端登陆上去发现SSH服务没在运行,于是尝试运行SSHD发现出现如下错误: Starting sshd: @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ WARNING: UNPROTECTED PRIVATE KEY FILE! @ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

电脑安装LMS Amesim软件后提示错误启动失败怎么解决

  电脑安装LMS Amesim软件后提示错误启动失败怎么解决           1.打开LMS Imagine.Lab Amesim 14的安装目录,C:Program Files (x86)LMSLMS Imagine.Lab Amesimv1400licensing,找到该文件夹下的rlm应用程序; 2.双击运行rlm; 3.返回桌面,再次双击打开桌面上的LMS Amesim快捷方式即可打开.