安装CDH 的 hue 版本是3.5 -3.6 ,其实3.0 也是可以通过此方法安装的 安装前首先要确保你构建好hadoop 的编译环境 如果没有请搜本博客的 hadoop 编译 话不多说开始吧 1.参考官方我们得知需要安装如下东东 yum rsync gcc openldap-devel python-ldap mysql-de
安装CDH 的 hue 版本是3.5 -3.6 ,其实3.0 也是可以通过此方法安装的
安装前首先要确保你构建好hadoop 的编译环境 如果没有请搜本博客的 hadoop 编译
话不多说开始吧
1.参考官方我们得知需要安装如下东东
yum rsync gcc openldap-devel python-ldap mysql-devel python-devel python-setuptools python-simplejson sqlite-devel libxml2-devel libxslt-devel cyrus-sasl-devel
本人默认你这些都装OK了
2. 下载安装
cd /opt wget http://archive-primary.cloudera.com/cdh5/cdh/5/hue-3.5.0-cdh5.0.3.tar.gz tar xvfz hue-3.5.0-cdh5.0.3.tar.gz cd hue-3.5.0-cdh5.0.3 sudo make install PREFIX=指定hue安装路径 HADOOP_HOME=指定你的hadoop所在路径
不建议现在最新版3.6当然如果你是测试的话可以玩玩
3. 配置HUE
首先创建 软链接到hadoop安装目录下的lib 目录
ln -s
/usr/local/cloud-center/hue/desktop/libs/hadoop/java-lib/hue-plugins-2.5.0-cdh4.4.0.jar ./
上述粗体jar 替换成实际编译后的包名
修改 hue目录下的confi/hue.ini 修改相应配置(略)
修改apps/filebrowser/src/filebrowser/view.py (可以跳过)
函数 def _massage_stats(request, stats):
%B %d, %Y %I:%M %p 改为 %Y-%m-%d %H:%M:%S
4.如果使用mysql数据库的话 请修改hue目录下的confi/hue.ini 中的BD 选项默认使用sqlite 并创建MYSQL数据库
create database hue; grant all on hue.* to 'hue'@'localhost' identified by 'abc1234!@#$'; flush privileges;
5.同步数据库。HUE 使用django框架开发因此我们要构建数据库表结构。我们采用的是MYSQL 数据库
因此在配置好数据库连接信息后我们执行如下命令
build/env/bin/hue migrate build/env/bin/hue syncdb
6.修改 desktop/libs/hadoop/src/hadoop/fs/webhdfs.py
中的 DEFAULT_HDFS_SUPERUSER = ‘hdfs’ 为你的hadoop用户
7.最后启动
build/env/bin/supervisor
完毕访问地址:http://你的IP:你端口
PS: 编译完毕后所有的配置均在 hue 的安装的根目录下
原文地址:centos 安装HUE3.5-3.6, 感谢原作者分享。

MySQLviewshavelimitations:1)Theydon'tsupportallSQLoperations,restrictingdatamanipulationthroughviewswithjoinsorsubqueries.2)Theycanimpactperformance,especiallywithcomplexqueriesorlargedatasets.3)Viewsdon'tstoredata,potentiallyleadingtooutdatedinforma

ProperusermanagementinMySQLiscrucialforenhancingsecurityandensuringefficientdatabaseoperation.1)UseCREATEUSERtoaddusers,specifyingconnectionsourcewith@'localhost'or@'%'.2)GrantspecificprivilegeswithGRANT,usingleastprivilegeprincipletominimizerisks.3)

MySQLdoesn'timposeahardlimitontriggers,butpracticalfactorsdeterminetheireffectiveuse:1)Serverconfigurationimpactstriggermanagement;2)Complextriggersincreasesystemload;3)Largertablesslowtriggerperformance;4)Highconcurrencycancausetriggercontention;5)M

Yes,it'ssafetostoreBLOBdatainMySQL,butconsiderthesefactors:1)StorageSpace:BLOBscanconsumesignificantspace,potentiallyincreasingcostsandslowingperformance.2)Performance:LargerrowsizesduetoBLOBsmayslowdownqueries.3)BackupandRecovery:Theseprocessescanbe

Adding MySQL users through the PHP web interface can use MySQLi extensions. The steps are as follows: 1. Connect to the MySQL database and use the MySQLi extension. 2. Create a user, use the CREATEUSER statement, and use the PASSWORD() function to encrypt the password. 3. Prevent SQL injection and use the mysqli_real_escape_string() function to process user input. 4. Assign permissions to new users and use the GRANT statement.

MySQL'sBLOBissuitableforstoringbinarydatawithinarelationaldatabase,whileNoSQLoptionslikeMongoDB,Redis,andCassandraofferflexible,scalablesolutionsforunstructureddata.BLOBissimplerbutcanslowdownperformancewithlargedata;NoSQLprovidesbetterscalabilityand

ToaddauserinMySQL,use:CREATEUSER'username'@'host'IDENTIFIEDBY'password';Here'showtodoitsecurely:1)Choosethehostcarefullytocontrolaccess.2)SetresourcelimitswithoptionslikeMAX_QUERIES_PER_HOUR.3)Usestrong,uniquepasswords.4)EnforceSSL/TLSconnectionswith

ToavoidcommonmistakeswithstringdatatypesinMySQL,understandstringtypenuances,choosetherighttype,andmanageencodingandcollationsettingseffectively.1)UseCHARforfixed-lengthstrings,VARCHARforvariable-length,andTEXT/BLOBforlargerdata.2)Setcorrectcharacters


Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

SublimeText3 Chinese version
Chinese version, very easy to use

VSCode Windows 64-bit Download
A free and powerful IDE editor launched by Microsoft

SecLists
SecLists is the ultimate security tester's companion. It is a collection of various types of lists that are frequently used during security assessments, all in one place. SecLists helps make security testing more efficient and productive by conveniently providing all the lists a security tester might need. List types include usernames, passwords, URLs, fuzzing payloads, sensitive data patterns, web shells, and more. The tester can simply pull this repository onto a new test machine and he will have access to every type of list he needs.

Notepad++7.3.1
Easy-to-use and free code editor

SAP NetWeaver Server Adapter for Eclipse
Integrate Eclipse with SAP NetWeaver application server.
