Hive配置hive-site.xml后启动出错
来源:互联网 发布:淘宝收货人霸气名字 编辑:程序博客网 时间:2024/05/29 12:56
错误信息:
[hadoop@hadoop1 conf]$ hiveLogging initialized using configuration in jar:file:/home/hadoop/happ/apache-hive-0.14.0-bin/lib/hive-common-0.14.0.jar!/hive-log4j.propertiesSLF4J: Class path contains multiple SLF4J bindings.SLF4J: Found binding in [jar:file:/home/hadoop/happ/hadoop-2.4.1/share/hadoop/common/lib/slf4j-log4j12-1.7.5.jar!/org/slf4j/impl/StaticLoggerBinder.class]SLF4J: Found binding in [jar:file:/home/hadoop/happ/apache-hive-0.14.0-bin/lib/hive-jdbc-0.14.0-standalone.jar!/org/slf4j/impl/StaticLoggerBinder.class]SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.SLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory]Exception in thread "main" java.lang.RuntimeException: java.lang.RuntimeException: Unable to instantiate org.apache.hadoop.hive.ql.metadata.SessionHiveMetaStoreClientat org.apache.hadoop.hive.ql.session.SessionState.start(SessionState.java:444)at org.apache.hadoop.hive.cli.CliDriver.run(CliDriver.java:672)at org.apache.hadoop.hive.cli.CliDriver.main(CliDriver.java:616)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.main(RunJar.java:212)Caused by: java.lang.RuntimeException: Unable to instantiate org.apache.hadoop.hive.ql.metadata.SessionHiveMetaStoreClientat org.apache.hadoop.hive.metastore.MetaStoreUtils.newInstance(MetaStoreUtils.java:1449)at org.apache.hadoop.hive.metastore.RetryingMetaStoreClient.<init>(RetryingMetaStoreClient.java:63)at org.apache.hadoop.hive.metastore.RetryingMetaStoreClient.getProxy(RetryingMetaStoreClient.java:73)at org.apache.hadoop.hive.ql.metadata.Hive.createMetaStoreClient(Hive.java:2661)at org.apache.hadoop.hive.ql.metadata.Hive.getMSC(Hive.java:2680)at org.apache.hadoop.hive.ql.session.SessionState.start(SessionState.java:425)... 7 moreCaused by: java.lang.reflect.InvocationTargetExceptionat 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:1447)... 12 moreCaused by: javax.jdo.JDOFatalDataStoreException: Unable to open a test connection to the given database. JDBC url = jdbc:mysql://hadoop1:3306/hive?createDatabaseIfNotExist=true, username = root. Terminating connection pool (set lazyInit to true if you expect to start your database after your app). Original Exception: ------java.sql.SQLException: Access denied for user 'root'@'hadoop1' (using password: YES)at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1086)at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:4237)at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:4169)at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:928)at com.mysql.jdbc.MysqlIO.secureAuth411(MysqlIO.java:4736)at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:1342)at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2493)at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2526)at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2311)at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:834)at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:47)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 com.mysql.jdbc.Util.handleNewInstance(Util.java:411)at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:416)at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:347)at java.sql.DriverManager.getConnection(DriverManager.java:571)at java.sql.DriverManager.getConnection(DriverManager.java:187)at com.jolbox.bonecp.BoneCP.obtainRawInternalConnection(BoneCP.java:361)at com.jolbox.bonecp.BoneCP.<init>(BoneCP.java:416)at com.jolbox.bonecp.BoneCPDataSource.getConnection(BoneCPDataSource.java:120)at org.datanucleus.store.rdbms.ConnectionFactoryImpl$ManagedConnectionImpl.getConnection(ConnectionFactoryImpl.java:501)at org.datanucleus.store.rdbms.RDBMSStoreManager.<init>(RDBMSStoreManager.java:298)at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45 ........从第三个cause by的Original Exception可以看出登陆Mysql数据库被拒绝,想到root@hadoop1可能没有权限,
进入mysql查看一下:
mysql> select user,host from mysql.user;+------+-----------+| user | host |+------+-----------+| root | % || root | 127.0.0.1 || root | hadoop1 || root | localhost |+------+-----------+4 rows in set (0.01 sec) //给root@'hadoop1'赋权限mysql> grant all privileges on *.* to root@'hadoop1' identified by 'root';Query OK, 0 rows affected (0.01 sec)mysql> exitBye[hadoop@hadoop1 conf]$ hive //启动正常Logging initialized using configuration in jar:file:/home/hadoop/happ/apache-hive-0.14.0-bin/lib/hive-common-0.14.0.jar!/hive-log4j.propertiesSLF4J: Class path contains multiple SLF4J bindings.SLF4J: Found binding in [jar:file:/home/hadoop/happ/hadoop-2.4.1/share/hadoop/common/lib/slf4j-log4j12-1.7.5.jar!/org/slf4j/impl/StaticLoggerBinder.class]SLF4J: Found binding in [jar:file:/home/hadoop/happ/apache-hive-0.14.0-bin/lib/hive-jdbc-0.14.0-standalone.jar!/org/slf4j/impl/StaticLoggerBinder.class]SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.SLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory]hive> exit > ;
0 0
- Hive配置hive-site.xml后启动出错
- hive-site.xml
- hive中设置查询不启动mapreduce作业(默认不启动)hive-site.xml关键配置
- hive-site.xml for hive-0.12.0
- 修改配置文件conf/hive-site.xml
- hive-site.xml的数据库配置文件
- 配置hive的坑 hive-site.xml:2787:3: The element type "configuration" must be terminated by the matching
- Spark On Yarn之指定hive-site.xml找不到metastore
- hive元数据配置本地mysql出错
- spark使用hive出错,添加以下配置
- 配置hive的常见出错总结
- 启动HIVE
- HIVE 启动
- hive安装后首次启动遇到问题
- 安装、配置好hive后,在启动过程中报的错及解决方法
- hive配置
- Hive 配置
- hive 配置
- openCV—converTo()用法
- 以友善征服他人
- linux查看JDK安装目录
- MongoDB基本操作
- CentOS Yum源
- Hive配置hive-site.xml后启动出错
- 欢迎使用CSDN-markdown编辑器
- android事件分发机制和消费机制
- Guava 的使用示例
- linux操作mysql命令
- Oracle 取随机数
- HNUOJ_10495
- 前端UI设计的一些个人觉得比较好的网站收藏
- Vim 使用小结(一)