我是 Hadoop 技术的新手,并尝试在我的本地机器上配置 hive 数据库,但没有成功。我尝试了另一个版本的 Hive 以及 3.x 和 1.x,但似乎这是 Hive 的稳定版本。请查看我在我的机器上所做的以下配置,如果需要的话,我应该更改什么。 先决条件:
预执行: 下面的命令被执行。 Hadoop启动成功:
我已经完成了一切:
Hive-site.xml 附在下面:
<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="configuration.xsl"?>
<configuration><property> <name>javax.jdo.option.ConnectionURL</name>
<value>jdbc:derby://localhost:1527/metastore_db;create=true</value>
<description>JDBC connect string for a JDBC metastore</description>
</property><property>
<name>javax.jdo.option.ConnectionDriverName</name>
<value>org.apache.derby.jdbc.ClientDriver</value>
<description>Driver class name for a JDBC metastore</description>
</property>
<property>
<name>hive.server2.enable.impersonation</name>
<description>Enable user impersonation for HiveServer2</description>
<value>true</value>
</property>
<property>
<name>hive.server2.authentication</name>
<value>NONE</value>
<description> Client authentication types. NONE: no authentication check LDAP: LDAP/AD based authentication KERBEROS: Kerberos/GSSAPI authentication CUSTOM: Custom authentication provider (Use with property hive.server2.custom.authentication.class) </description>
</property>
<property>
<name>datanucleus.autoCreateTables</name>
<value>True</value>
</property>
</configuration>
现在转到 hive/bin 目录并执行 'hive' 命令并得到如下所示的错误: