HUE部署

本文涉及的产品
云数据库 RDS MySQL Serverless,0.5-2RCU 50GB
简介: HUE部署

1、下载&编译 :

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

cd hue

make apps

2、编译遇到的问题&解决

/usr/bin/pip2.7  install setuptools-scm



yum -y install mysql-server mysql mysql-devel



sudo wget https://raw.githubusercontent.com/paulfitz/mysql-connector-c/master/include/my_config.h -P /usr/include/mysql/

yum install sqlite-devel



/usr/bin/pip2.7 install  sasl



yum install openldap-devel


yum install libxslt-devel



yum install nodejs


编译完成


3.部署k8s & helm

1.加载br_netfilter模块

sudo modprobe br_netfilter

2.确保iptable可以正确发现bridge traffic

cat <<EOF | sudo tee /etc/modules-load.d/k8s.conf

br_netfilter

EOF

cat <<EOF | sudo tee /etc/sysctl.d/k8s.conf

net.bridge.bridge-nf-call-ip6tables = 1

net.bridge.bridge-nf-call-iptables = 1

EOF

sysctl --system

3.适配yum仓库

sudo yum install -y yum-utils

sudo yum-config-manager \

--add-repo \

https://download.docker.com/linux/centos/docker-ce.repo

4.安装&启动docker

sudo yum install -y docker-ce docker-ce-cli containerd.io

sudo systemctl start docker

5.配置daemon.json

{

       "registry-mirrors": ["https://j2e6xpgk.mirror.aliyuncs.com"],

       "exec-opts": ["native.cgroupdriver=systemd"],

       "default-runtime": "runc"

}


完成 后重启docker

sudo systemctl start docker

6.配置kubernetes.repo

cat <<EOF | sudo tee /etc/yum.repos.d/kubernetes.repo

[kubernetes]

name=Kubernetes

baseurl=http://mirrors.aliyun.com/kubernetes/yum/repos/kubernetes-el7-x86_64

enabled=1

gpgcheck=1

repo_gpgcheck=0

gpgkey=http://mirrors.aliyun.com/kubernetes/yum/doc/yum-key.gpg http://mirrors.aliyun.com/kubernetes/yum/doc/rpm-package-key.gpg

EOF


# Set SELinux in permissive mode (effectively disabling it)

sudo setenforce 0

sudo sed -i 's/^SELINUX=enforcing$/SELINUX=permissive/' /etc/selinux/config

yum install -y kubelet-1.  23.1-0 kubeadm-1.23.1-0 kubectl-1.23.1-0 --disableexcludes=kubernetes

sudo systemctl enable --now kubelet

5.初始化master

kubeadm init --image-repository=registry.aliyuncs.com/google_containers --control-plane-endpoint="192.168.201.178:6443" --upload-certs --ignore-preflight-errors=Swap --kubernetes-version v1.23.1



mkdir -p $HOME/.kube

sudo cp -i /etc/kubernetes/admin.conf $HOME/.kube/config

sudo chown $(id -u):$(id -g) $HOME/.kube/config


在/etc/kubernetes/manifests/kube-controller-manager.yaml中增加

--allocate-node-cidrs=true

--cluster-cidr=10.244.0.0/16


6.安装helm

wget https://ali-perseus-release.oss-cn-huhehaote.aliyuncs.com/AIACC-Build-Dep/helm-v3.7.2-linux-amd64.tar.gz

tar -zxvf helm-v3.7.2-linux-amd64.tar.gz

cd linux-amd64/

mv helm /usr/bin/

7.使用helm安装HUE

wget https://ali-perseus-release.oss-cn-huhehaote.aliyuncs.com/AIACC-Build-Dep/helm-v3.7.2-linux-amd64.tar.gz

tar -xf helm-v3.7.2-linux-amd64.tar.gz

cd linux-amd64/

mv helm /usr/bin/

helm repo add gethue https://helm.gethue.com

helm install hue gethue/hue



[root@erdma-pl00 linux-amd64]# helm install hue gethue/hue

NAME: hue

LAST DEPLOYED: Fri Aug 19 17:31:22 2022

NAMESPACE: default

STATUS: deployed

REVISION: 1

TEST SUITE: None

NOTES:

Congratulations, you've launched the Hue SQL Editor for Data Warehouses!


To check the status of your installation run:


 helm list --filter hue



Get the recommended URL below and start executing queries:



 export WEB_HOST=$(kubectl get node -o jsonpath="{.items[0].metadata.name}")


 export WEB_PORT=$(kubectl get service hue-balancer -o jsonpath="{.spec.ports[*].nodePort}" --namespace default)


 echo http://$WEB_HOST:$WEB_PORT



Happy Querying!


8.开启tracing

修改配置文件

vi  $HUE_HOME/huevalues.yaml ,tracing 改为true

tracing:

 enabled: true


开启jaeger


相关实践学习
容器服务Serverless版ACK Serverless 快速入门:在线魔方应用部署和监控
通过本实验,您将了解到容器服务Serverless版ACK Serverless 的基本产品能力,即可以实现快速部署一个在线魔方应用,并借助阿里云容器服务成熟的产品生态,实现在线应用的企业级监控,提升应用稳定性。
云原生实践公开课
课程大纲 开篇:如何学习并实践云原生技术 基础篇: 5 步上手 Kubernetes 进阶篇:生产环境下的 K8s 实践 相关的阿里云产品:容器服务&nbsp;ACK 容器服务&nbsp;Kubernetes&nbsp;版(简称&nbsp;ACK)提供高性能可伸缩的容器应用管理能力,支持企业级容器化应用的全生命周期管理。整合阿里云虚拟化、存储、网络和安全能力,打造云端最佳容器化应用运行环境。 了解产品详情:&nbsp;https://www.aliyun.com/product/kubernetes
目录
相关文章
|
分布式计算 数据可视化 大数据
Hue--介绍、功能、架构 | 学习笔记
快速学习 Hue--介绍、功能、架构
1891 0
Hue--介绍、功能、架构 | 学习笔记
|
7月前
|
SQL 分布式计算 分布式数据库
Hive集成Hue安装部署
Hive集成Hue安装部署
98 0
|
7月前
|
SQL HIVE 数据安全/隐私保护
Hive整合Hue组件使用
Hive整合Hue组件使用
91 0
|
SQL 分布式计算 数据可视化
CDH 搭建_Hue|学习笔记
快速学习 CDH 搭建_Hue
265 0
CDH 搭建_Hue|学习笔记
|
存储 分布式计算 关系型数据库
Hue-- 编译、安装部署 | 学习笔记
快速学习 Hue-- 编译、安装部署
887 0
Hue-- 编译、安装部署 | 学习笔记
|
分布式计算 Java Hadoop
|
SQL 分布式计算 Hadoop
|
分布式计算 监控 Apache
HUE
应用场景 按照搭建hadoop2.6.0完全分布式集群博文部署搭建了Hadoop完全分布式集群,发现如果要操作HDFS,HIVE需要到命令行中执行,比较麻烦,而一般情况下命令行是舍不得给业余人士用的,以免把整个环境给...
3161 0