hive-site.xml配置

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<?xml-stylesheet type="text/xsl" href="configuration.xsl"?>

<configuration>
    <property>
        <name>javax.jdo.option.ConnectionURL</name>
        <value>jdbc:mysql://spark02:3306/hive?createDatabaseIfNotExsit=true;characterEncoding=UTF-8</value>
    </property>
    <property>
        <name>javax.jdo.option.ConnectionDriverName</name>
        <value>com.mysql.jdbc.Driver</value>
    </property>
    <property>
        <name>javax.jdo.option.ConnectionUserName</name>
        <value>hive</value>
    </property>
    <property>
        <name>javax.jdo.option.ConnectionPassword</name>
        <value>p@d1111</value>
    </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>

上一篇:最精简的自定义.net 开发框架


下一篇:C#并行编程