p.MsoNormal { margin: 0pt; margin-bottom: .0001pt; text-align: justify; font-family: Calibri; font-size: 10.5000pt }
h1 { margin-top: 5.0000pt; margin-bottom: 5.0000pt; text-align: left; font-family: 宋体; font-weight: bold; font-size: 24.0000pt }
span.10 { font-family: "Times New Roman" }
span.15 { font-family: "Times New Roman"; color: rgb(0,0,255); text-decoration: underline }
span.16 { font-family: "Courier New"; font-size: 10.0000pt }
p.pre { margin: 0pt; margin-bottom: .0001pt; text-align: left; font-family: "Courier New"; font-size: 10.0000pt }
span.msoIns { text-decoration: underline; color: blue }
span.msoDel { text-decoration: line-through; color: red }
table.MsoNormalTable { font-family: "Times New Roman"; font-size: 10.0000pt }
table.MsoTableGrid { text-align: justify; font-family: "Times New Roman"; font-size: 10.0000pt }
div.Section0 { }

下载安装包

git clone https://github.com/cloudera/hue.git

cd hue

依赖安装包:

CentOS:

ant

asciidoc

cyrus-sasl-devel

cyrus-sasl-gssapi

gcc

gcc-c++

krb5-devel

libtidy (for unit tests only)

libxml2-devel

libxslt-devel

mvn (from maven2 package or tarball)

mysql

mysql-devel

openldap-devel

python-devel

python-simplejson

sqlite-devel

make apps

build/env/bin/hue runserver

Mvn安装

sudo wget http://repos.fedorapeople.org/repos/dchen/apache-maven/epel-apache-maven.repo -O /etc/yum.repos.d/epel-apache-maven.repo

sudo sed -i s/\$releasever/6/g /etc/yum.repos.d/epel-apache-maven.repo

sudo yum install -y apache-maven

mvn --version

这个错误很莫名其妙  没什么关系:本人解决方式是更换到root用户下进行的重新编译就可以了

成功编译

复制一份配置文件

在这里更改访问的端口号和访问地址

访问时直接输入IP地址和端口号

例如本人使用的是 sp-06:8000

未更改状况是sp-06:8888

错误解决

因为本人使用hadoop用户启动

Traceback (most recent call last):

File "build/env/bin/supervisor", line 9, in <module>

load_entry_point('desktop==3.12.0', 'console_scripts', 'supervisor')()

File "/home/hadoop/hue/desktop/core/src/desktop/supervisor.py", line 358, in main

_init_log(log_dir)

File "/home/hadoop/hue/desktop/core/src/desktop/supervisor.py", line 294, in _init_log

desktop.log.basic_logging(PROC_NAME, log_dir)

File "/home/hadoop/hue/desktop/core/src/desktop/log/__init__.py", line 149, in basic_logging

logging.config.fileConfig(log_conf)

File "/usr/lib64/python2.7/logging/config.py", line 78, in fileConfig

handlers = _install_handlers(cp, formatters)

File "/usr/lib64/python2.7/logging/config.py", line 156, in _install_handlers

h = klass(*args)

File "/usr/lib64/python2.7/logging/handlers.py", line 117, in __init__

BaseRotatingHandler.__init__(self, filename, mode, encoding, delay)

File "/usr/lib64/python2.7/logging/handlers.py", line 64, in __init__

logging.FileHandler.__init__(self, filename, mode, encoding, delay)

File "/usr/lib64/python2.7/logging/__init__.py", line 902, in __init__

StreamHandler.__init__(self, self._open())

File "/usr/lib64/python2.7/logging/__init__.py", line 925, in _open

stream = open(self.baseFilename, self.mode)

IOError: [Errno 13] Permission denied: '/home/hadoop/hue/logs/supervisor.log'

之前因为格式需要设置了 chown -R hue.hue /home/hadoop/hue

将全部权限设置给了hue用户

解决办法:、

根据IOError: [Errno 13] Permission denied: '/home/hadoop/hue/logs/supervisor.log'

将/home/hadoop/hue/logs/supervisor.log'

的权限更改为hadoop

再次启动:

build/env/bin/supervisor

打开界面:sp-06:8000

报错

OperationalError at /accounts/login/

unable to open database file

Request Method:

GET

Request URL:

http://sp-06:8000/accounts/login/?next=/

Django Version:

1.6.10

Exception Type:

OperationalError

Exception Value:

unable to open database file

Exception Location:

/home/hadoop/hue/build/env/lib/python2.7/site-packages/Django-1.6.10-py2.7.egg/django/db/backends/sqlite3/base.py in execute, line 452

Python Executable:

/home/hadoop/hue/build/env/bin/python2.7

Python Version:

2.7.5

Python Path:

['/home/hadoop/hue/build/env/bin',

'/home/hadoop/hue/apps/about/src',

'/home/hadoop/hue/apps/beeswax/gen-py',

'/home/hadoop/hue/apps/beeswax/src',

'/home/hadoop/hue/apps/filebrowser/src',

'/home/hadoop/hue/apps/hbase/gen-py',

'/home/hadoop/hue/apps/hbase/src',

'/home/hadoop/hue/apps/help/src',

'/home/hadoop/hue/apps/impala/gen-py',

'/home/hadoop/hue/apps/impala/src',

'/home/hadoop/hue/apps/jobbrowser/src',

'/home/hadoop/hue/apps/jobsub/src',

'/home/hadoop/hue/apps/metastore/src',

'/home/hadoop/hue/apps/oozie/src',

'/home/hadoop/hue/apps/pig/src',

'/home/hadoop/hue/apps/proxy/src',

'/home/hadoop/hue/apps/rdbms/src',

'/home/hadoop/hue/apps/search/src',

'/home/hadoop/hue/apps/security/src',

'/home/hadoop/hue/apps/spark/src',

'/home/hadoop/hue/apps/sqoop/src',

'/home/hadoop/hue/apps/useradmin/src',

'/home/hadoop/hue/apps/zookeeper/src',

'/home/hadoop/hue/build/env/lib/python2.7/site-packages/python_openid-2.2.5-py2.7.egg',

'/home/hadoop/hue/build/env/lib/python2.7/site-packages/backports.csv-1.0.2-py2.7.egg',

'/home/hadoop/hue/build/env/lib/python2.7/site-packages/Django-1.6.10-py2.7.egg',

'/home/hadoop/hue/build/env/lib/python2.7/site-packages/MarkupSafe-0.9.3-py2.7-linux-x86_64.egg',

'/home/hadoop/hue/build/env/lib/python2.7/site-packages/kazoo-2.0-py2.7.egg',

'/home/hadoop/hue/build/env/lib/python2.7/site-packages/pycparser-2.14-py2.7.egg',

'/home/hadoop/hue/build/env/lib/python2.7/site-packages/pyOpenSSL-0.15.1-py2.7.egg',

'/home/hadoop/hue/build/env/lib/python2.7/site-packages/enum-0.4.4-py2.7.egg',

'/home/hadoop/hue/build/env/lib/python2.7/site-packages/pytz-2015.2-py2.7.egg',

'/home/hadoop/hue/build/env/lib/python2.7/site-packages/urllib2_kerberos-0.1.6-py2.7.egg',

'/home/hadoop/hue/build/env/lib/python2.7/site-packages/pyasn1-0.1.8-py2.7.egg',

'/home/hadoop/hue/build/env/lib/python2.7/site-packages/argparse-1.4.0-py2.7.egg',

'/home/hadoop/hue/build/env/lib/python2.7/site-packages/BabelDjango-0.2.2-py2.7.egg',

'/home/hadoop/hue/build/env/lib/python2.7/site-packages/elementtree-1.2.6.post20050316-py2.7.egg',

'/home/hadoop/hue/build/env/lib/python2.7/site-packages/Mako-0.8.1-py2.7.egg',

'/home/hadoop/hue/build/env/lib/python2.7/site-packages/djangosaml2-0.13.0-py2.7.egg',

'/home/hadoop/hue/build/env/lib/python2.7/site-packages/httplib2-0.8-py2.7.egg',

'/home/hadoop/hue/build/env/lib/python2.7/site-packages/django_axes-1.5.0-py2.7.egg',

'/home/hadoop/hue/build/env/lib/python2.7/site-packages/django_auth_ldap-1.2.0-py2.7.egg',

'/home/hadoop/hue/build/env/lib/python2.7/site-packages/django_extensions-1.5.0-py2.7.egg',

'/home/hadoop/hue/build/env/lib/python2.7/site-packages/kerberos-1.1.1-py2.7-linux-x86_64.egg',

'/home/hadoop/hue/build/env/lib/python2.7/site-packages/Markdown-2.0.3-py2.7.egg',

'/home/hadoop/hue/build/env/lib/python2.7/site-packages/Paste-2.0.1-py2.7.egg',

'/home/hadoop/hue/build/env/lib/python2.7/site-packages/boto-2.42.0-py2.7.egg',

'/home/hadoop/hue/build/env/lib/python2.7/site-packages/cffi-1.5.2-py2.7-linux-x86_64.egg',

'/home/hadoop/hue/build/env/lib/python2.7/site-packages/rsa-3.4.2-py2.7.egg',

'/home/hadoop/hue/build/env/lib/python2.7/site-packages/pycrypto-2.6.1-py2.7-linux-x86_64.egg',

'/home/hadoop/hue/build/env/lib/python2.7/site-packages/django_openid_auth-0.5-py2.7.egg',

'/home/hadoop/hue/build/env/lib/python2.7/site-packages/jdcal-1.0-py2.7.egg',

'/home/hadoop/hue/build/env/lib/python2.7/site-packages/cryptography-1.3.1-py2.7-linux-x86_64.egg',

'/home/hadoop/hue/build/env/lib/python2.7/site-packages/parquet-1.1-py2.7.egg',

'/home/hadoop/hue/build/env/lib/python2.7/site-packages/navoptapi-0+untagged.3628.g9db772a.dirty-py2.7.egg',

'/home/hadoop/hue/build/env/lib/python2.7/site-packages/pam-0.1.3-py2.7.egg',

'/home/hadoop/hue/build/env/lib/python2.7/site-packages/six-1.9.0-py2.7.egg',

'/home/hadoop/hue/build/env/lib/python2.7/site-packages/python_daemon-1.5.1-py2.7.egg',

'/home/hadoop/hue/build/env/lib/python2.7/site-packages/simplejson-2.0.9-py2.7-linux-x86_64.egg',

'/home/hadoop/hue/build/env/lib/python2.7/site-packages/python_ldap-2.3.13-py2.7-linux-x86_64.egg',

'/home/hadoop/hue/build/env/lib/python2.7/site-packages/MySQL_python-1.2.5-py2.7-linux-x86_64.egg',

'/home/hadoop/hue/build/env/lib/python2.7/site-packages/pysaml2-2.4.0-py2.7.egg',

'/home/hadoop/hue/build/env/lib/python2.7/site-packages/oauth2-1.5.211-py2.7.egg',

'/home/hadoop/hue/build/env/lib/python2.7/site-packages/pyformance-0.3.2-py2.7.egg',

'/home/hadoop/hue/build/env/lib/python2.7/site-packages/Babel-0.9.6-py2.7.egg',

'/home/hadoop/hue/build/env/lib/python2.7/site-packages/django_nose-1.3-py2.7.egg',

'/home/hadoop/hue/build/env/lib/python2.7/site-packages/avro-1.7.6-py2.7.egg',

'/home/hadoop/hue/build/env/lib/python2.7/site-packages/configobj-4.6.0-py2.7.egg',

'/home/hadoop/hue/build/env/lib/python2.7/site-packages/pytidylib-0.2.1-py2.7.egg',

'/home/hadoop/hue/build/env/lib/python2.7/site-packages/requests-2.10.0-py2.7.egg',

'/home/hadoop/hue/build/env/lib/python2.7/site-packages/pysqlite-2.5.5-py2.7-linux-x86_64.egg',

'/home/hadoop/hue/build/env/lib/python2.7/site-packages/South-1.0.2-py2.7.egg',

'/home/hadoop/hue/build/env/lib/python2.7/site-packages/ply-3.9-py2.7.egg',

'/home/hadoop/hue/build/env/lib/python2.7/site-packages/ordereddict-1.1-py2.7.egg',

'/home/hadoop/hue/build/env/lib/python2.7/site-packages/lockfile-0.8-py2.7.egg',

'/home/hadoop/hue/build/env/lib/python2.7/site-packages/python_dateutil-2.4.2-py2.7.egg',

'/home/hadoop/hue/build/env/lib/python2.7/site-packages/importlib-1.0.3-py2.7.egg',

'/home/hadoop/hue/build/env/lib/python2.7/site-packages/ndg_httpsclient-0.4.0-py2.7.egg',

'/home/hadoop/hue/build/env/lib/python2.7/site-packages/openpyxl-2.3.0b2-py2.7.egg',

'/home/hadoop/hue/build/env/lib/python2.7/site-packages/lxml-3.3.6-py2.7-linux-x86_64.egg',

'/home/hadoop/hue/build/env/lib/python2.7/site-packages/guppy-0.1.10-py2.7-linux-x86_64.egg',

'/home/hadoop/hue/build/env/lib/python2.7/site-packages/thriftpy-0.3.9-py2.7-linux-x86_64.egg',

'/home/hadoop/hue/build/env/lib/python2.7/site-packages/tablib-0.10.0-py2.7.egg',

'/home/hadoop/hue/build/env/lib/python2.7/site-packages/requests_kerberos-0.6.1-py2.7.egg',

'/home/hadoop/hue/build/env/lib/python2.7/site-packages/sqlparse-0.2.0-py2.7.egg',

'/home/hadoop/hue/build/env/lib/python2.7/site-packages/asn1crypto-0.22.0-py2.7.egg',

'/home/hadoop/hue/build/env/lib/python2.7/site-packages/thrift-0.9.1-py2.7-linux-x86_64.egg',

'/home/hadoop/hue/build/env/lib/python2.7/site-packages/sasl-0.1.1-py2.7-linux-x86_64.egg',

'/home/hadoop/hue/build/env/lib/python2.7/site-packages/Pygments-1.3.1-py2.7.egg',

'/home/hadoop/hue/build/env/lib/python2.7/site-packages/py4j-0.9-py2.7.egg',

'/home/hadoop/hue/desktop/core/src',

'/home/hadoop/hue/desktop/libs/aws/src',

'/home/hadoop/hue/desktop/libs/hadoop/src',

'/home/hadoop/hue/desktop/libs/indexer/src',

'/home/hadoop/hue/desktop/libs/liboauth/src',

'/home/hadoop/hue/desktop/libs/liboozie/src',

'/home/hadoop/hue/desktop/libs/libopenid/src',

'/home/hadoop/hue/desktop/libs/librdbms/src',

'/home/hadoop/hue/desktop/libs/libsaml/src',

'/home/hadoop/hue/desktop/libs/libsentry/src',

'/home/hadoop/hue/desktop/libs/libsolr/src',

'/home/hadoop/hue/desktop/libs/libzookeeper/src',

'/home/hadoop/hue/desktop/libs/metadata/src',

'/home/hadoop/hue/desktop/libs/notebook/src',

'/home/hadoop/hue/desktop/libs/dashboard/src',

'/home/hadoop/hue/build/env/lib/python2.7/site-packages/ipdb-0.1dev_r1716-py2.7.egg',

'/home/hadoop/hue/build/env/lib/python2.7/site-packages/ipython-0.10-py2.7.egg',

'/home/hadoop/hue/build/env/lib/python2.7/site-packages/nose-0.11.3-py2.7.egg',

'/home/hadoop/hue/build/env/lib/python2.7/site-packages/coverage-3.7.1-py2.7-linux-x86_64.egg',

'/home/hadoop/hue/build/env/lib/python2.7/site-packages/nosetty-0.4-py2.7.egg',

'/home/hadoop/hue/build/env/lib/python2.7/site-packages/Werkzeug-0.6-py2.7.egg',

'/home/hadoop/hue/build/env/lib/python2.7/site-packages/windmill-1.3-py2.7.egg',

'/home/hadoop/hue/build/env/lib/python2.7/site-packages/pylint-0.28.0-py2.7.egg',

'/home/hadoop/hue/build/env/lib/python2.7/site-packages/logilab_astng-0.24.3-py2.7.egg',

'/home/hadoop/hue/build/env/lib/python2.7/site-packages/logilab_common-1.4.0-py2.7.egg',

'/home/hadoop/hue/build/env/lib64/python27.zip',

'/home/hadoop/hue/build/env/lib64/python2.7',

'/home/hadoop/hue/build/env/lib64/python2.7/plat-linux2',

'/home/hadoop/hue/build/env/lib64/python2.7/lib-tk',

'/home/hadoop/hue/build/env/lib64/python2.7/lib-old',

'/home/hadoop/hue/build/env/lib64/python2.7/lib-dynload',

'/usr/lib64/python2.7',

'/usr/lib/python2.7',

'/home/hadoop/hue/build/env/lib/python2.7/site-packages',

'/usr/lib64/python2.7/site-packages',

'/usr/lib64/python2.7/site-packages/gtk-2.0',

'/usr/lib/python2.7/site-packages',

'/home/hadoop/hue/desktop/libs/libsentry/src/libsentry/../../gen-py',

'/home/hadoop/hue/apps/beeswax/src/beeswax/../../gen-py',

'/home/hadoop/hue/apps/hbase/src/hbase/../../gen-py',

'/home/hadoop/hue/apps/impala/src/impala/../../gen-py',

'/home/hadoop/hue/apps/jobbrowser/src/jobbrowser/../../gen-py',

'/home/hadoop/hue/apps/proxy/src/proxy/../../gen-py']

Server time:

Thu, 6 Apr 2017 20:30:02 -0700

根据所抛异常是因为MySQL数据库的问题

本人使用的系统是centos7 与原来安装MySQL数据库的方式不一样猜测可能是这里的问题

重新安装MySQL数据库

1、配置YUM源

MySQL官网中下载YUM源rpm安装包:http://dev.mysql.com/downloads/repo/yum/ 

# 下载mysql源安装包shell> wget http://dev.mysql.com/get/mysql57-community-release-el7-8.noarch.rpm# 安装mysql源shell> yum localinstall mysql57-community-release-el7-8.noarch.rpm

检查mysql源是否安装成功

shell> yum repolist enabled | grep "mysql.*-community.*"

 
看到上图所示表示安装成功

2、安装MySQL

shell> yum install mysql-community-server

3、启动MySQL服务

shell> systemctl start mysqld

查看MySQL的启动状态

shell> systemctl status mysqld

● mysqld.service - MySQL Server

Loaded: loaded (/usr/lib/systemd/system/mysqld.service; disabled; vendor preset: disabled)

Active: active (running) since 五 2016-06-24 04:37:37 CST; 35min ago

Main PID: 2888 (mysqld)

CGroup: /system.slice/mysqld.service

└─2888 /usr/sbin/mysqld --daemonize --pid-file=/var/run/mysqld/mysqld.pid

6月 24 04:37:36 localhost.localdomain systemd[1]: Starting MySQL Server...6月 24 04:37:37 localhost.localdomain systemd[1]: Started MySQL Server.

4、开机启动

shell> systemctl enable mysqldshell> systemctl daemon-reload

5、修改root默认密码

mysql安装完成之后,在/var/log/mysqld.log文件中给root生成了一个默认密码。通过下面的方式找到root默认密码,然后登录mysql进行修改:

shell> grep 'temporary password' /var/log/mysqld.log

shell> mysql -uroot -p

mysql> ALTER USER 'root'@'localhost' IDENTIFIED BY 'MyNewPass4!';

或者

mysql> set password for 'root'@'localhost'=password('MyNewPass4!');

注意:mysql5.7默认安装了密码安全检查插件(validate_password),默认密码检查策略要求密码必须包含:大小写字母、数字和特殊符号,并且长度不能少于8位。否则会提示ERROR 1819 (HY000): Your password does not satisfy the current policy requirements错误,如下图所示: 

通过msyql环境变量可以查看密码策略的相关信息:

mysql> show variables like '%password%';


  validate_password_policy:密码策略,默认为MEDIUM策略  validate_password_dictionary_file:密码策略文件,策略为STRONG才需要  validate_password_length:密码最少长度  validate_password_mixed_case_count:大小写字符长度,至少1个  validate_password_number_count :数字至少1个  validate_password_special_char_count:特殊字符至少1个  上述参数是默认策略MEDIUM的密码检查规则。

共有以下几种密码策略:

策略

检查规则

0 or LOW

Length

1 or MEDIUM

Length; numeric, lowercase/uppercase, and special characters

2 or STRONG

Length; numeric, lowercase/uppercase, and special characters; dictionary file

MySQL官网密码策略详细说明:http://dev.mysql.com/doc/refman/5.7/en/validate-password-options-variables.html#sysvar_validate_password_policy

修改密码策略

在/etc/my.cnf文件添加validate_password_policy配置,指定密码策略

# 选择0(LOW),1(MEDIUM),2(STRONG)其中一种,选择2需要提供密码字典文件

validate_password_policy=0

如果不需要密码策略,添加my.cnf文件中添加如下配置禁用即可:

validate_password = off

重新启动mysql服务使配置生效:

systemctl restart mysqld

6、添加远程登录用户

默认只允许root帐户在本地登录,如果要在其它机器上连接mysql,必须修改root允许远程连接,或者添加一个允许远程连接的帐户,为了安全起见,我添加一个新的帐户:

mysql> GRANT ALL PRIVILEGES ON *.* TO 'yangxin'@'%' IDENTIFIED BY 'Yangxin0917!' WITH GRANT OPTION;

7、配置默认编码为utf8

修改/etc/my.cnf配置文件,在[mysqld]下添加编码配置,如下所示:

[mysqld]character_set_server=utf8    init_connect='SET NAMES utf8'

重新启动mysql服务,查看数据库默认编码如下所示:

安装之后重新启动

几面再次登录:

报错和原来一样

OperationalError at /accounts/login/

unable to open database file

Request Method:

GET

Request URL:

http://sp-06:8000/accounts/login/?next=/

Django Version:

1.6.10

Exception Type:

OperationalError

Exception Value:

unable to open database file

Exception Location:

/home/hadoop/hue/build/env/lib/python2.7/site-packages/Django-1.6.10-py2.7.egg/django/db/backends/sqlite3/base.py in execute, line 452

Python Executable:

/home/hadoop/hue/build/env/bin/python2.7

Python Version:

2.7.5

Python Path:

['/home/hadoop/hue/build/env/bin',

'/home/hadoop/hue/apps/about/src',

'/home/hadoop/hue/apps/beeswax/gen-py',

'/home/hadoop/hue/apps/beeswax/src',

'/home/hadoop/hue/apps/filebrowser/src',

'/home/hadoop/hue/apps/hbase/gen-py',

'/home/hadoop/hue/apps/hbase/src',

'/home/hadoop/hue/apps/help/src',

'/home/hadoop/hue/apps/impala/gen-py',

'/home/hadoop/hue/apps/impala/src',

'/home/hadoop/hue/apps/jobbrowser/src',

'/home/hadoop/hue/apps/jobsub/src',

'/home/hadoop/hue/apps/metastore/src',

'/home/hadoop/hue/apps/oozie/src',

'/home/hadoop/hue/apps/pig/src',

'/home/hadoop/hue/apps/proxy/src',

'/home/hadoop/hue/apps/rdbms/src',

'/home/hadoop/hue/apps/search/src',

'/home/hadoop/hue/apps/security/src',

'/home/hadoop/hue/apps/spark/src',

'/home/hadoop/hue/apps/sqoop/src',

'/home/hadoop/hue/apps/useradmin/src',

'/home/hadoop/hue/apps/zookeeper/src',

'/home/hadoop/hue/build/env/lib/python2.7/site-packages/python_openid-2.2.5-py2.7.egg',

'/home/hadoop/hue/build/env/lib/python2.7/site-packages/backports.csv-1.0.2-py2.7.egg',

'/home/hadoop/hue/build/env/lib/python2.7/site-packages/Django-1.6.10-py2.7.egg',

'/home/hadoop/hue/build/env/lib/python2.7/site-packages/MarkupSafe-0.9.3-py2.7-linux-x86_64.egg',

'/home/hadoop/hue/build/env/lib/python2.7/site-packages/kazoo-2.0-py2.7.egg',

'/home/hadoop/hue/build/env/lib/python2.7/site-packages/pycparser-2.14-py2.7.egg',

'/home/hadoop/hue/build/env/lib/python2.7/site-packages/pyOpenSSL-0.15.1-py2.7.egg',

'/home/hadoop/hue/build/env/lib/python2.7/site-packages/enum-0.4.4-py2.7.egg',

'/home/hadoop/hue/build/env/lib/python2.7/site-packages/pytz-2015.2-py2.7.egg',

'/home/hadoop/hue/build/env/lib/python2.7/site-packages/urllib2_kerberos-0.1.6-py2.7.egg',

'/home/hadoop/hue/build/env/lib/python2.7/site-packages/pyasn1-0.1.8-py2.7.egg',

'/home/hadoop/hue/build/env/lib/python2.7/site-packages/argparse-1.4.0-py2.7.egg',

'/home/hadoop/hue/build/env/lib/python2.7/site-packages/BabelDjango-0.2.2-py2.7.egg',

'/home/hadoop/hue/build/env/lib/python2.7/site-packages/elementtree-1.2.6.post20050316-py2.7.egg',

'/home/hadoop/hue/build/env/lib/python2.7/site-packages/Mako-0.8.1-py2.7.egg',

'/home/hadoop/hue/build/env/lib/python2.7/site-packages/djangosaml2-0.13.0-py2.7.egg',

'/home/hadoop/hue/build/env/lib/python2.7/site-packages/httplib2-0.8-py2.7.egg',

'/home/hadoop/hue/build/env/lib/python2.7/site-packages/django_axes-1.5.0-py2.7.egg',

'/home/hadoop/hue/build/env/lib/python2.7/site-packages/django_auth_ldap-1.2.0-py2.7.egg',

'/home/hadoop/hue/build/env/lib/python2.7/site-packages/django_extensions-1.5.0-py2.7.egg',

'/home/hadoop/hue/build/env/lib/python2.7/site-packages/kerberos-1.1.1-py2.7-linux-x86_64.egg',

'/home/hadoop/hue/build/env/lib/python2.7/site-packages/Markdown-2.0.3-py2.7.egg',

'/home/hadoop/hue/build/env/lib/python2.7/site-packages/Paste-2.0.1-py2.7.egg',

'/home/hadoop/hue/build/env/lib/python2.7/site-packages/boto-2.42.0-py2.7.egg',

'/home/hadoop/hue/build/env/lib/python2.7/site-packages/cffi-1.5.2-py2.7-linux-x86_64.egg',

'/home/hadoop/hue/build/env/lib/python2.7/site-packages/rsa-3.4.2-py2.7.egg',

'/home/hadoop/hue/build/env/lib/python2.7/site-packages/pycrypto-2.6.1-py2.7-linux-x86_64.egg',

'/home/hadoop/hue/build/env/lib/python2.7/site-packages/django_openid_auth-0.5-py2.7.egg',

'/home/hadoop/hue/build/env/lib/python2.7/site-packages/jdcal-1.0-py2.7.egg',

'/home/hadoop/hue/build/env/lib/python2.7/site-packages/cryptography-1.3.1-py2.7-linux-x86_64.egg',

'/home/hadoop/hue/build/env/lib/python2.7/site-packages/parquet-1.1-py2.7.egg',

'/home/hadoop/hue/build/env/lib/python2.7/site-packages/navoptapi-0+untagged.3628.g9db772a.dirty-py2.7.egg',

'/home/hadoop/hue/build/env/lib/python2.7/site-packages/pam-0.1.3-py2.7.egg',

'/home/hadoop/hue/build/env/lib/python2.7/site-packages/six-1.9.0-py2.7.egg',

'/home/hadoop/hue/build/env/lib/python2.7/site-packages/python_daemon-1.5.1-py2.7.egg',

'/home/hadoop/hue/build/env/lib/python2.7/site-packages/simplejson-2.0.9-py2.7-linux-x86_64.egg',

'/home/hadoop/hue/build/env/lib/python2.7/site-packages/python_ldap-2.3.13-py2.7-linux-x86_64.egg',

'/home/hadoop/hue/build/env/lib/python2.7/site-packages/MySQL_python-1.2.5-py2.7-linux-x86_64.egg',

'/home/hadoop/hue/build/env/lib/python2.7/site-packages/pysaml2-2.4.0-py2.7.egg',

'/home/hadoop/hue/build/env/lib/python2.7/site-packages/oauth2-1.5.211-py2.7.egg',

'/home/hadoop/hue/build/env/lib/python2.7/site-packages/pyformance-0.3.2-py2.7.egg',

'/home/hadoop/hue/build/env/lib/python2.7/site-packages/Babel-0.9.6-py2.7.egg',

'/home/hadoop/hue/build/env/lib/python2.7/site-packages/django_nose-1.3-py2.7.egg',

'/home/hadoop/hue/build/env/lib/python2.7/site-packages/avro-1.7.6-py2.7.egg',

'/home/hadoop/hue/build/env/lib/python2.7/site-packages/configobj-4.6.0-py2.7.egg',

'/home/hadoop/hue/build/env/lib/python2.7/site-packages/pytidylib-0.2.1-py2.7.egg',

'/home/hadoop/hue/build/env/lib/python2.7/site-packages/requests-2.10.0-py2.7.egg',

'/home/hadoop/hue/build/env/lib/python2.7/site-packages/pysqlite-2.5.5-py2.7-linux-x86_64.egg',

'/home/hadoop/hue/build/env/lib/python2.7/site-packages/South-1.0.2-py2.7.egg',

'/home/hadoop/hue/build/env/lib/python2.7/site-packages/ply-3.9-py2.7.egg',

'/home/hadoop/hue/build/env/lib/python2.7/site-packages/ordereddict-1.1-py2.7.egg',

'/home/hadoop/hue/build/env/lib/python2.7/site-packages/lockfile-0.8-py2.7.egg',

'/home/hadoop/hue/build/env/lib/python2.7/site-packages/python_dateutil-2.4.2-py2.7.egg',

'/home/hadoop/hue/build/env/lib/python2.7/site-packages/importlib-1.0.3-py2.7.egg',

'/home/hadoop/hue/build/env/lib/python2.7/site-packages/ndg_httpsclient-0.4.0-py2.7.egg',

'/home/hadoop/hue/build/env/lib/python2.7/site-packages/openpyxl-2.3.0b2-py2.7.egg',

'/home/hadoop/hue/build/env/lib/python2.7/site-packages/lxml-3.3.6-py2.7-linux-x86_64.egg',

'/home/hadoop/hue/build/env/lib/python2.7/site-packages/guppy-0.1.10-py2.7-linux-x86_64.egg',

'/home/hadoop/hue/build/env/lib/python2.7/site-packages/thriftpy-0.3.9-py2.7-linux-x86_64.egg',

'/home/hadoop/hue/build/env/lib/python2.7/site-packages/tablib-0.10.0-py2.7.egg',

'/home/hadoop/hue/build/env/lib/python2.7/site-packages/requests_kerberos-0.6.1-py2.7.egg',

'/home/hadoop/hue/build/env/lib/python2.7/site-packages/sqlparse-0.2.0-py2.7.egg',

'/home/hadoop/hue/build/env/lib/python2.7/site-packages/asn1crypto-0.22.0-py2.7.egg',

'/home/hadoop/hue/build/env/lib/python2.7/site-packages/thrift-0.9.1-py2.7-linux-x86_64.egg',

'/home/hadoop/hue/build/env/lib/python2.7/site-packages/sasl-0.1.1-py2.7-linux-x86_64.egg',

'/home/hadoop/hue/build/env/lib/python2.7/site-packages/Pygments-1.3.1-py2.7.egg',

'/home/hadoop/hue/build/env/lib/python2.7/site-packages/py4j-0.9-py2.7.egg',

'/home/hadoop/hue/desktop/core/src',

'/home/hadoop/hue/desktop/libs/aws/src',

'/home/hadoop/hue/desktop/libs/hadoop/src',

'/home/hadoop/hue/desktop/libs/indexer/src',

'/home/hadoop/hue/desktop/libs/liboauth/src',

'/home/hadoop/hue/desktop/libs/liboozie/src',

'/home/hadoop/hue/desktop/libs/libopenid/src',

'/home/hadoop/hue/desktop/libs/librdbms/src',

'/home/hadoop/hue/desktop/libs/libsaml/src',

'/home/hadoop/hue/desktop/libs/libsentry/src',

'/home/hadoop/hue/desktop/libs/libsolr/src',

'/home/hadoop/hue/desktop/libs/libzookeeper/src',

'/home/hadoop/hue/desktop/libs/metadata/src',

'/home/hadoop/hue/desktop/libs/notebook/src',

'/home/hadoop/hue/desktop/libs/dashboard/src',

'/home/hadoop/hue/build/env/lib/python2.7/site-packages/ipdb-0.1dev_r1716-py2.7.egg',

'/home/hadoop/hue/build/env/lib/python2.7/site-packages/ipython-0.10-py2.7.egg',

'/home/hadoop/hue/build/env/lib/python2.7/site-packages/nose-0.11.3-py2.7.egg',

'/home/hadoop/hue/build/env/lib/python2.7/site-packages/coverage-3.7.1-py2.7-linux-x86_64.egg',

'/home/hadoop/hue/build/env/lib/python2.7/site-packages/nosetty-0.4-py2.7.egg',

'/home/hadoop/hue/build/env/lib/python2.7/site-packages/Werkzeug-0.6-py2.7.egg',

'/home/hadoop/hue/build/env/lib/python2.7/site-packages/windmill-1.3-py2.7.egg',

'/home/hadoop/hue/build/env/lib/python2.7/site-packages/pylint-0.28.0-py2.7.egg',

'/home/hadoop/hue/build/env/lib/python2.7/site-packages/logilab_astng-0.24.3-py2.7.egg',

'/home/hadoop/hue/build/env/lib/python2.7/site-packages/logilab_common-1.4.0-py2.7.egg',

'/home/hadoop/hue/build/env/lib64/python27.zip',

'/home/hadoop/hue/build/env/lib64/python2.7',

'/home/hadoop/hue/build/env/lib64/python2.7/plat-linux2',

'/home/hadoop/hue/build/env/lib64/python2.7/lib-tk',

'/home/hadoop/hue/build/env/lib64/python2.7/lib-old',

'/home/hadoop/hue/build/env/lib64/python2.7/lib-dynload',

'/usr/lib64/python2.7',

'/usr/lib/python2.7',

'/home/hadoop/hue/build/env/lib/python2.7/site-packages',

'/usr/lib64/python2.7/site-packages',

'/usr/lib64/python2.7/site-packages/gtk-2.0',

'/usr/lib/python2.7/site-packages',

'/home/hadoop/hue/desktop/libs/libsentry/src/libsentry/../../gen-py',

'/home/hadoop/hue/apps/beeswax/src/beeswax/../../gen-py',

'/home/hadoop/hue/apps/hbase/src/hbase/../../gen-py',

'/home/hadoop/hue/apps/impala/src/impala/../../gen-py',

'/home/hadoop/hue/apps/jobbrowser/src/jobbrowser/../../gen-py',

'/home/hadoop/hue/apps/proxy/src/proxy/../../gen-py']

Server time:

Thu, 6 Apr 2017 20:36:13 -0700

问题可能在于用户启动问题

(Ps:本人曾将使用root用户启动但是无果无法启动  目前还未找到原因)

所以用hadoop用户启动

给hadoop用户授权

chown -R hadoop.hadoop /home/hadoop/hue

出现这个界面问题来了:

用户名密码是什么

按照默认的输入用户名admin 密码admin

唯一可能就是在上边你设置MySQL时候设置的远程连接用户

本人设置的就是 root  root(在设置完MySQL密码策略设置后自己更改的)

成功

Hue配置段

Hue配置项

Hue配置值

说明

desktop

default_hdfs_superuser

hadoop

HDFS管理用户

desktop

http_host

10.10.4.125

Hue Web Server所在主机/IP

desktop

http_port

8000

Hue Web Server服务端口

desktop

server_user

hadoop

运行Hue Web Server的进程用户

desktop

server_group

hadoop

运行Hue Web Server的进程用户组

desktop

default_user

yanjun

Hue管理员

hadoop/hdfs_clusters

fs_defaultfs

hdfs://hadoop6:8020

对应core-site.xml配置项fs.defaultFS

hadoop/hdfs_clusters

hadoop_conf_dir

/usr/local/hadoop/etc/hadoop

Hadoop配置文件目录

hadoop/yarn_clusters

resourcemanager_host

hadoop6

对应yarn-site.xml配置项yarn.resourcemanager.hostname

hadoop/yarn_clusters

resourcemanager_port

8032

ResourceManager服务端口号

hadoop/yarn_clusters

resourcemanager_api_url

http://hadoop6:8088

对应于yarn-site.xml配置项yarn.resourcemanager.webapp.address

hadoop/yarn_clusters

proxy_api_url

http://hadoop6:8888

对应yarn-site.xml配置项yarn.web-proxy.address

hadoop/yarn_clusters

history_server_api_url

http://hadoo6:19888

对应mapred-site.xml配置项mapreduce.jobhistory.webapp.address

beeswax

hive_server_host

10.10.4.125

Hive所在节点主机名/IP

beeswax

hive_server_port

10000

HiveServer2服务端口号

beeswax

hive_conf_dir

/usr/local/hive/conf

Hive配置文件目录

本文章有很多不足之处,希望大家多多指正。欢迎大家转载,请注明出处!码农打字不易,敬请谅解,谢谢!http://www.cnblogs.com/baierfa/p/6689107.html

参考最多:

http://blog.csdn.net/wenlong237/article/details/19735603

官方参考地址

https://github.com/cloudera/hue

官方hue配置文件参考

http://cloudera.github.io/hue/docs-3.8.0/manual.html

一般参考

http://www.cnblogs.com/smartloli/p/4527168.html

http://blog.cheyo.net/81.html

centos7 hue安装的更多相关文章

  1. 在centos7上安装Jenkins

    在centos7上安装Jenkins 安装 添加yum repos,然后安装 sudo wget -O /etc/yum.repos.d/jenkins.repo http://pkg.jenkins ...

  2. CentOS7 Jenkins安装

    CentOS7 Jenkins安装 CentOS7 Jenkins安装 Download 从Jenkins下载apache-tomcat-8.0.18.tar.gz Install 安装 上传RPM文 ...

  3. 在 CentOS7 上安装 zookeeper-3.4.9 服务

    在 CentOS7 上安装 zookeeper-3.4.9 服务 1.创建 /usr/local/services/zookeeper 文件夹: mkdir -p /usr/local/service ...

  4. 在 CentOS7 上安装 MongoDB

    在 CentOS7 上安装 MongoDB 1 通过 SecureCRT 连接至 CentOS7 服务器: 2 进入到 /usr/local/ 目录: cd /usr/local 3 在当前目录下创建 ...

  5. 在 CentOS7 上安装 MySQL5.7

    在 CentOS7 上安装 MySQL5.7 1 通过 SecureCRT 连接到阿里云 CentOS7 服务器: 2 进入到目录 /usr/local/ 中: cd /usr/local/ 3 创建 ...

  6. 在 CentOS7 上安装 Tomcat9

    在 CentOS7 上安装 Tomcat9 1 通过 SecureCRT 连接到阿里云 CentOS7 服务器: 2 进入到目录 /usr/local/ 中: cd /usr/local/ 3 创建目 ...

  7. 在CentOS7上安装JDK1.8

    在CentOS7上安装JDK1.8 1 通过 SecureCRT 连接到阿里云 CentOS7 服务器: 2 进入到目录 /usr/local/ 中: cd /usr/local/ 3 创建目录 to ...

  8. centos7.0 安装字体库

    最近在centos7.0下用itextpdf将word文档转成pdf时出现字体丢失的情况.网上找了很多资料,各式各样的原因和解决方法.后来经过一番测试发现是centos7.0 minimal没有安装相 ...

  9. 在centos7中安装Robot Framework

    安装前景介绍: 最初,我们是在Windows环境下搭建Robot Framework来对我们的服务进行接口测试的(想知道如何在Windows下安装Robot Framework,可以参考我同事的博客h ...

随机推荐

  1. 653. Two Sum IV - Input is a BST

    Given a Binary Search Tree and a target number, return true if there exist two elements in the BST s ...

  2. php-fpm开机启动

    php-fpm开机自动启动脚本 网上有各种版本的php-fpm开机自动启动脚本, 其实你编译后源目录已经生成自动脚本.不用做任何修改即用. cp {php-5.3.x-source-dir}/sapi ...

  3. df 命令详解

    一.df  作用:  显示磁盘分区上的可使用的磁盘空间, 默认显示单位为kb . 可以利用该命令来获取硬盘被占用了多少空间,目前还剩下多少空间的等信息. 选项: -a :包含全部的文件系统 -h :以 ...

  4. git stash的用法

    使用git stash git stash的使用场景是这样的: 当你正在你的分支下进行开发时,这时候你可能需要切换到你的另一个分支去,你可能要pull新的代码下来,但是你又不想添加无用的commit. ...

  5. 微信公众号H5支付遇到的那些坑

    简史 官方文档说的很清楚,商户已有H5商城网站,用户通过消息或扫描二维码在微信内打开网页时,可以调用微信支付完成下单购买的流程. 当然,最近微信支付平台也加入了纯H5支付,也就是说用户可以在微信以外的 ...

  6. Android模拟器

    一.Genymotion 1.下载安装:https://www.genymotion.com/download/  (注:安装前需要先注册) 因为Genymotion运行需要VirtualBox,如果 ...

  7. Webpack 2 视频教程 017 - Webpack 2 中分离打包项目代码与组件代码

    原文发表于我的技术博客 这是我免费发布的高质量超清「Webpack 2 视频教程」. Webpack 作为目前前端开发必备的框架,Webpack 发布了 2.0 版本,此视频就是基于 2.0 的版本讲 ...

  8. Git上传项目到GitHub

    1.注册账户 https://github.com/ 2.创建仓库 3.需要安装 Git   http://msysgit.github.com/ 4.本地创建ssh key(不是必要,不创建ssh可 ...

  9. linux网路编程:字节序(大端、小端、网络、主机)

    字节序:就是数据在内存中的存放顺序,也可称之为端模式. 大端模式和小端模式的定义 1) Little-Endian就是低位字节排放在内存的低地址端,高位字节排放在内存的高地址端. 2) Big-End ...

  10. VMware虚拟机下为Ubuntu添加磁盘

    20G的磁盘还是不够用啊,正好复习下磁盘分区和逻辑卷. 关闭虚拟机,打开VMware,右键虚拟机点击设置,点下下方的添加,就可以添加磁盘了. 进入虚拟机,查看: root@ubuntu:/# fdis ...