无法访问使用配置单元创建的数据库并无法在色调上运行查询

时间:2018-10-23 19:24:20

标签: hadoop hive hue

我想将Hue用作hive的可视化界面,服务器hiveserver 2可以很好地启动,并且我可以毫无问题地在命令中工作。

我的hadoop也可以运行(在本地主机上运行的单个节点),我设法将hdfs文件配置为hue,并且可以使用hue界面轻松查看hdfs文件。但是我几个星期的最大问题是提出带有色相的HIVE请求(即使我根据我在互联网上发现的研究进行了配置)。我无法做到并陷入困境

您的帮助将不胜感激。

这是hive-site.xml

<?xml version="1.0"?>

-<configuration>


-<property>

<name>hive.exec.local.scratchdir</name>

<value>/tmp/hive_temp</value>

<description>Local scratch space for Hive jobs</description>

</property>


-<property>

<name>hive.execution.engine</name>

<value>mr</value>

<description> Expects one of [mr, tez, spark]. Chooses execution engine. Options are: mr (Map reduce, default)</description>

</property>


-<property>

<name>javax.jdo.option.ConnectionURL</name>

<value>jdbc:mysql://localhost/metastore?createDatabaseIfNotExist=true&useSSL=false</value>

<description>metadata is stored in a MySQL server</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>hive</value>

<description>Username to use against metastore database</description>

</property>


-<property>

<name>javax.jdo.option.ConnectionPassword</name>

<value>hivepassword</value>

<description>password to use against metastore database</description>

</property>


-<property>

<name>hive.exec.scratchdir</name>

<value>/tmp/hive_tmp</value>

<description>HDFS root scratch dir for Hive jobs which gets created with write all (733) permission</description>

</property>


-<property>

<name>hive.exec.scratchdir</name>

<value>/user/hive/warehouse</value>

<description>HDFS root scratch dir for Hive jobs which gets created with write all (733) permission</description>

</property>

</configuration>

和HUE pseudo-distributed.ini中的配置单元配置

 # Host where HiveServer2 is running.
  # If Kerberos security is enabled, use fully-qualified domain name (FQDN).
   hive_server_host=localhost

  # Port where HiveServer2 Thrift server runs on.
  hive_server_port=10002

  # Hive configuration directory, where hive-site.xml is located
  hive_conf_dir=/usr/local/hive/conf

0 个答案:

没有答案