安装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)他們不使用Supportallsqloperations,限制DatamanipulationThroughViewSwithJoinsOrsubqueries.2)他們canimpactperformance,尤其是withcomplexcomplexclexeriesorlargedatasets.3)

porthusermanagementinmysqliscialforenhancingsEcurityAndsingsmenting效率databaseoperation.1)usecReateusertoAddusers,指定connectionsourcewith@'localhost'or@'%'。

mysqldoes notimposeahardlimitontriggers,butacticalfactorsdeterminetheireffactective:1)serverConfiguration impactactStriggerGermanagement; 2)複雜的TriggerSincreaseSySystemsystem load; 3)largertablesslowtriggerperfermance; 4)highConconcConcrencerCancancancancanceTigrignecentign; 5); 5)

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

通過PHP網頁界面添加MySQL用戶可以使用MySQLi擴展。步驟如下:1.連接MySQL數據庫,使用MySQLi擴展。 2.創建用戶,使用CREATEUSER語句,並使用PASSWORD()函數加密密碼。 3.防止SQL注入,使用mysqli_real_escape_string()函數處理用戶輸入。 4.為新用戶分配權限,使用GRANT語句。

mysql'sblobissuitableForStoringBinaryDataWithInareLationalDatabase,而ilenosqloptionslikemongodb,redis和calablesolutionsolutionsolutionsoluntionsoluntionsolundortionsolunsonstructureddata.blobobobissimplobisslowdeperformberbutslowderformandperformancewithlararengedata;

toaddauserinmysql,使用:createUser'username'@'host'Indessify'password'; there'showtodoitsecurely:1)choosethehostcarecarefullytocon trolaccess.2)setResourcelimitswithoptionslikemax_queries_per_hour.3)usestrong,iniquepasswords.4)Enforcessl/tlsconnectionswith

toAvoidCommonMistakeswithStringDatatatPesInMysQl,CloseStringTypenuances,chosethirtightType,andManageEngencodingAndCollationsEttingSefectery.1)usecharforfixed lengengtrings,varchar forvariable-varchar forbariaible length,andtext/blobforlargerdataa.2 seterters seterters seterters


熱AI工具

Undresser.AI Undress
人工智慧驅動的應用程序,用於創建逼真的裸體照片

AI Clothes Remover
用於從照片中去除衣服的線上人工智慧工具。

Undress AI Tool
免費脫衣圖片

Clothoff.io
AI脫衣器

Video Face Swap
使用我們完全免費的人工智慧換臉工具,輕鬆在任何影片中換臉!

熱門文章

熱工具

SublimeText3 英文版
推薦:為Win版本,支援程式碼提示!

PhpStorm Mac 版本
最新(2018.2.1 )專業的PHP整合開發工具

SAP NetWeaver Server Adapter for Eclipse
將Eclipse與SAP NetWeaver應用伺服器整合。

Safe Exam Browser
Safe Exam Browser是一個安全的瀏覽器環境,安全地進行線上考試。該軟體將任何電腦變成一個安全的工作站。它控制對任何實用工具的訪問,並防止學生使用未經授權的資源。

WebStorm Mac版
好用的JavaScript開發工具