频道栏目
首页 > 资讯 > 其他综合 > 正文

HUE安装及问题

16-12-10        来源:[db:作者]  
收藏   我要投稿

在实际企业中一般会使用Hue来取代HWI功能,Hue提供了远远比HWI更加强大丰富的功能。具体安装配置如下:

搭建环境centos6.5 64

如果想在ubuntu开发的话,请参考这里面的文档

http://gethue.com/how-to-build-hue-on-ubuntu-14-04-trusty/

所需的安装包 jdk8 hue-3.11.0.tgz链接:

链接:http://pan.baidu.com/s/1czgMey 密码:h1fo

安装以下的安装包

ant asciidoc cyrus-sasl-devel cyrus-sasl-gssapi gcc gcc-c++ krb5-devellibtidy libxml2-devel libxslt-devel make mysql mysql-devel openldap-develpython-devel sqlite-devel openssl-devel gmp-devel -y

yuminstall ant asciidoccyrus-sasl-devel cyrus-sasl-gssapi gcc gcc-c++ krb5-devel libtidy libxml2-devellibxslt-devel make mysql mysql-devel openldap-devel python-devel sqlite-developenssl-devel gmp-devel libffi-devel –y

Hadoop配置

第一步,在每个hadoop的配置文件core-site.xml添加这些语句

 

hadoop.proxyuser.hue.hosts

*

 

hadoop.proxyuser.hue.groups

*

第二步,在每个hadoop的配置文件hdfs-site.xml添加这些语句

 

dfs.webhdfs.enabled

true

Hadoop集群重启,分别启动hdfs 和yarn

Hue配置

第一步:解压 tar -xzvf hue-3.11.0.tgz

第二步:进入解压后的目录中 cd hue-3.11.0

第三步:make apps

等待即可

切记,以下的都是基于hude-3.11.0所对应的目录

在desktop/conf/hue.ini中修改配置

[desktop]

# hue webServer 地址和端口号

http_host=0.0.0.0

http_port=8000

# Webserver runs as this user

server_user=hue

server_group=hue

# This should be the Hue admin and proxy user

default_user=hue

# This should be the hadoop cluster admin

default_hdfs_superuser=root

[hadoop]

fs_defaultfs=tdhdfs

webhdfs_url=http://Master:50070/webhdfs/v1/

hadoop_conf_dir=$HADOOP_HOME/etc/hadoop

[[yarn_clusters]]

# Enter the host on which you are runningthe ResourceManager

resourcemanager_host=Master

# URL of the ResourceManager API

resourcemanager_api_url=http://Master:8088

# URL of the ProxyServer API

proxy_api_url=http://192.168.47.216:8089

# URL of the HistoryServer API

history_server_api_url=http://Master:19888

[beeswax]

# If Kerberos security is enabled, use fully-qualifieddomain name

hive_server_host=Master

# Hive configuration directory, wherehive-site.xml is located

hive_conf_dir=$HIVE_HOME/conf

接下来,我们需要创建数据库,这块有些繁琐,

找到这个地址

修改里面的信息

engine=mysql

host=Master

port=3306

user=root

password=123456

name=hue

修改好之后,然后再mysql的数据库中创建一个名字为hue的数据库,创建这个数据库后,或许要对这张表进行授权操作

grant all privileges on hue.* to root@'%' identified by'123456';

flush privileges;

创建完成之后,然后再启动这两个命令

build/env/bin/huesyncdb

这步第一次用的时候会出现让你输入一个这个服务所需要的一个用户名和密码,也就是你待会要登陆这个网站的超级用户和密码

build/env/bin/huemigrate

配置完成之后,尝试启动应用服务

build/env/bin/supervisor

如果出现找不到用户hue这样异常,我们需要手动创建一个linux用户

useradd hue

build/env/bin/supervisor 最后再次启动,在浏览器中这个服务器的地址和端口即可,端口是8000

如果出现如下信息:

No databases are available. Permissions could be missing.

Could not start SASL: Error in sasl_client_start (-4) SASL(-4): nomechanism available: No worthy mechs found


 

Your query has the following error(s):

Could not start SASL: Error in sasl_client_start(-4) SASL(-4): no mechanism available: No worthy mechs found

解决方法:

Re: Error in sasl_client_start (-4) SASL(-4): no mechanism available: Noworthy mechs found

I am guessing you are missing the plain kerbplugin. Try doing a:

yum install cyrus-sasl-plain

What auth are you using on HS2?

Thanks,

Brad

说明手册中要求装:

cyrus-sasl-devel

cyrus-sasl-gssapi

很明显还需要安装上面的库。

相关TAG标签
上一篇:4、SpringBootMongodb
下一篇:SpringMVC源码分析(8)剖析ViewResolver
相关文章
图文推荐

关于我们 | 联系我们 | 广告服务 | 投资合作 | 版权申明 | 在线帮助 | 网站地图 | 作品发布 | Vip技术培训 | 举报中心

版权所有: 红黑联盟--致力于做实用的IT技术学习网站