hive设置外部数据仓库(36)

原创
2014/04/08 22:00
阅读数 28

           使用MySQL作为hive的metastore
           1.1 安装mysql
           1.2 把mysql-connector-java-11.10.jar放到hive的lib目录下
           1.3 修改hive/conf目录下的文件hive-site.xml
                <property>
                      <name>javax.jdo.option.ConnectionURL</name>
                      <value>jdbc:mysql://hadoop0: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>admin</value>
                      <description>password to use against metastore database</description>
             </property>

 

                                                                                                                            Name:Xr

                                                                                                                            Date:2014-04-08 22:00

展开阅读全文
打赏
0
0 收藏
分享
加载中
更多评论
打赏
0 评论
0 收藏
0
分享
返回顶部
顶部