- 论坛徽章:
- 71
|
本帖最后由 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.
- ....
- <property>
- <name>hive.metastore.uris</name>
- <value></value>
- <description>Thrift uri for the remote metastore. Used by metastore client to connect to remote metastore.</description>
- </property>
- <property>
- <name>javax.jdo.option.ConnectionURL</name>
- <value>jdbc:mysql://192.168.7.81: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>
- <property>
- <name>javax.jdo.option.ConnectionUserName</name>
- <value>hadoop</value>
- <description>username to use against metastore database</description>
- </property>
- <property>
- <name>javax.jdo.option.ConnectionPassword</name>
- <value>hadoop</value>
- <description>password to use against metastore database</description>
- </property>
- ....
- <property>
- <name>hive.metastore.local</name>
- <value>true</value>
- </property>
- ...
复制代码 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> |
|