Exception in thread "main" java.lang.RuntimeException: org.xml.sax.SAXParseException; sys
temId: file:/opt/hive/conf/hive-site.xml; lineNumber: 2; columnNumber: 6; The processing instruction target matching "[xX][mM][lL]" is not allowed.

 

org.xml.sax.SAXParseException; systemId: file:/opt/hive/conf/hive-site.xml; lineNumber: 2
; columnNumber: 6; The processing instruction target matching "[xX][mM][lL]" is not allowed.

 首先我说明是使用mysql存储元数据的模式,所以只要你确保节点密码用户没写错,还报错的话,reboot重启即可。

<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="configuration.xsl"?>
<configuration>
        <property>
          <name>javax.jdo.option.ConnectionURL</name>
          <value>jdbc:mysql://henu1:3306/metastore?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>123</value>
          <description>password to use against metastore database</description>
        </property>
</configuration>

 

Logo

一站式 AI 云服务平台

更多推荐