Win7安装Hive

前端之家收集整理的这篇文章主要介绍了Win7安装Hive前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

一直用Win7最近需要学习Hadoop相关框架,在windows下安装了hadoop,hbase.hive 等工具,请浏览我blog吧.

Hive版本:2.1.1

Hadoop 版本:2.5.2

元数据存储在MysqL,版本:5.6.23

hive的hive-site.xml内容如下:

<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.       -->

	<!-- config MysqL connection -->
	<property>
		<name>javax.jdo.option.ConnectionURL</name>
		<value>jdbc:MysqL://127.0.0.1:3306/hive?createDatabaseIfNotExist=true&useSSL=false</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>
	<property>
		<name>hive.Metastore.schema.verification</name>
		<value>false</value>
	</property>



	<property>
		<name>javax.jdo.option.DetachAllOnCommit</name>
		<value>true</value>
		<description>detaches all objects from session so that they can be used after transaction is committed</description>
	</property>

	<property>
		<name>javax.jdo.option.NonTransactionalRead</name>
		<value>true</value>
		<description>reads outside of transactions</description>
	</property>

 	<property>
        <name>datanucleus.readOnlyDatastore</name>
        <value>false</value>
    </property>
    <property> 
        <name>datanucleus.fixedDatastore</name>
        <value>false</value> 
    </property>

    <property> 
        <name>datanucleus.autoCreateSchema</name> 
        <value>true</value> 
    </property>
    
    <property>
        <name>datanucleus.autoCreateTables</name>
        <value>true</value>
    </property>
    <property>
        <name>datanucleus.autoCreateColumns</name>
        <value>true</value>
    </property>
    

</configuration>
 
 

运行hive --service Metastore


成功,MysqL的hive库生成相应的表:



win7安装hive参考了:

https://blog.csdn.net/yingxiake/article/details/51656970

http://doudouclever.blog.163.com/blog/static/1751123102013911111513970/

https://blog.csdn.net/m0_37324825/article/details/80185448

https://blog.csdn.net/beidiqiuren/article/details/51274318

https://blog.csdn.net/vipyeshuai/article/details/50847281 详细讲晰hbase与hive 区别

https://ifnoelse.gitbooks.io/learning-hive/content/hive_express/first_hive_app.html 最佳入门例子

文章

原文链接:https://www.f2er.com/windows/372926.html

猜你在找的Windows相关文章