Chinaunix

标题: hive报错,高手帮看看 [打印本页]

作者: zhaopingzi    时间: 2013-12-10 17:31
标题: hive报错,高手帮看看
本帖最后由 zhaopingzi 于 2013-12-10 17:34 编辑

-bash-3.2$ hive
13/12/10 17:28:23 WARN conf.HiveConf: DEPRECATED: Configuration property hive.metastore.local no longer has any effect. Make sure to provide a valid value for hive.metastore.uris if you are connecting to a remote metastore.

  1. ....
  2. <property>
  3.   <name>hive.metastore.uris</name>
  4.   <value></value>
  5.   <description>Thrift uri for the remote metastore. Used by metastore client to connect to remote metastore.</description>
  6. </property>

  7. <property>
  8.   <name>javax.jdo.option.ConnectionURL</name>
  9.   <value>jdbc:mysql://192.168.7.81:3306/hive?createDatabaseIfNotExist=true</value>
  10.   <description>JDBC connect string for a JDBC metastore</description>
  11. </property>

  12. <property>
  13.   <name>javax.jdo.option.ConnectionDriverName</name>
  14.   <value>com.mysql.jdbc.Driver</value>




  15. <property>
  16.   <name>javax.jdo.option.ConnectionUserName</name>
  17.   <value>hadoop</value>
  18.   <description>username to use against metastore database</description>
  19. </property>




  20. <property>
  21.   <name>javax.jdo.option.ConnectionPassword</name>
  22.   <value>hadoop</value>
  23.   <description>password to use against metastore database</description>
  24. </property>
  25. ....
  26. <property>
  27.   <name>hive.metastore.local</name>
  28.   <value>true</value>
  29. </property>

  30. ...
复制代码
mysql已经装好,mysql-connector-java-5.1.27-bin.jar也已经装好

-bash-3.2$ mysql -uhadoop -phadoop
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 60
Server version: 5.5.34 MySQL Community Server (GPL)

Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql>
作者: send_linux    时间: 2013-12-10 19:31
zhaopingzi 发表于 2013-12-10 17:31
-bash-3.2$ hive
13/12/10 17:28:23 WARN conf.HiveConf: DEPRECATED: Configuration property hive.metas ...


兄弟,这个问题,发到nosql版面稍微好点吧?

这里都是linux的人啊
作者: zhaopingzi    时间: 2013-12-11 11:42
回复 2# send_linux


    恩知道了。不过搞hadoop的都是搞linux的,这个问题解决了:

通过修改

  1. <property>
  2.   <name>hive.metastore.schema.verification</name>
  3.   <value>false</value>
  4.    <description>
  5. </property>
复制代码





欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2