1. 程式人生 > >hive的mysql作元數據的hive-site.xml配置

hive的mysql作元數據的hive-site.xml配置

true per 註意 pan 配置 vax 數據 spa created

<property>
<name>javax.jdo.option.ConnectionURL</name>
<value>jdbc:mysql://server110:3306/hive?createDatabaseIfNotExist=true</value>
</property>
<property>
<name>javax.jdo.option.ConnectionDriverName</name>
<value>com.mysql.jdbc.Driver</value>
</property>
<property>
<name>javax.jdo.option.ConnectionUserName</name>
<value>root</value>
</property>
<property>
<name>javax.jdo.option.ConnectionPassword</name>
<value>root</value>
</property>


<!--註意要上傳mysql驅動到hive的lib文件夾-->

hive的mysql作元數據的hive-site.xml配置