hive中conf/hive-site.xml文件配置(没有该文件则新建)

<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="configuration.xsl"?>
<configuration>
        <property>
          <name>javax.jdo.option.ConnectionURL</name>
          <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.cli.print.header</name>
                <value>true</value>
        </property>
        <property>
                <name>hive.cli.print.current.db</name>
                <value>true</value>
        </property>


</configuration>

  

相关文章:

  • 2022-12-23
  • 2022-02-07
  • 2022-12-23
  • 2020-09-30
  • 2022-12-23
  • 2021-11-09
  • 2021-07-26
  • 2021-07-16
猜你喜欢
  • 2022-12-23
  • 2021-10-08
  • 2021-07-25
  • 2022-12-23
  • 2022-12-23
  • 2021-07-16
相关资源
相似解决方案