Alluxio 部署

櫰木2年前技术文章835

1、基础环境准备

配置java环境变量

tar -xzvf jdk-8u281-linux-x64.tar.gz -C /opt
ln -s /opt/jdk1.8.0_281 /opt/java
cat /etc/profile
export JAVA_HOME="/opt/java"
export PATH=$JAVA_HOME/bin:$PATH

配置alluxio 环境变量

tar -xzvf alluxio-2.8.1-bin.tar.gz -C /opt/
ln -s /opt/alluxio-2.8.1 /opt/alluxio
cat /etc/profile
export ALLUXIO_HOME=/opt/alluxio
export PATH=$ALLUXIO_HOME/bin:$JAVA_HOME/bin:$PATH

修改系统参数

cat /etc/security/limits.conf
#在最后添加以下内同
*                soft    nofile          65536
*                hard    nofile          65536
*                soft    nproc           4096
*                hard    nproc           4096

ssh免密

每个节点进行ssh免密

2、Alluxio配置修改

参考文档:https://docs.alluxio.io/os/user/stable/en/deploy/Running-Alluxio-On-a-HA-Cluster.html

修改alluxio-site.properties 文件

cd /opt/alluxio/conf
cp alluxio-site.properties.template alluxio-site.properties
#修改配置参数
cat alluxio-site.properties
#######
alluxio.master.hostname=hd1.dtstack.com  #每个节点的主机名
alluxio.master.journal.type=EMBEDDED     #使用内置的
alluxio.master.embedded.journal.addresses=hd1.dtstack.com:19200,hd2.dtstack.com:19200,hd3.dtstack.com:19200
alluxio.security.authorization.permission.enabled=true
alluxio.security.authentication.type=SIMPLE
###集成hdfs
alluxio.master.mount.table.root.option.alluxio.underfs.hdfs.configuration=/opt/hadoop/etc/hadoop/core-site.xml:/opt/hadoop/etc/hadoop/hdfs-site.xml
alluxio.master.mount.table.root.ufs=hdfs://mycluster/
alluxio.master.keytab.file=/etc/security/keytab/hdfs.keytab
alluxio.master.principal=hdfs/hd1.dtstack.com@DTSTACK.COM   #每个节点的
alluxio.worker.keytab.file=/etc/security/keytab/hdfs.keytab
alluxio.worker.principal=hdfs/hd1.dtstack.com@DTSTACK.COM    #每个节点的
alluxio.hadoop.security.kerberos.keytab.login.autorenewal=true

添加works节点

cat workers
hd1.dtstack.com
hd2.dtstack.com
hd3.dtstack.com

添加master节点

cat masters 
hd1.dtstack.com
hd2.dtstack.com
hd3.dtstack.com

3、初始化alluxio

将安装包及配置分发到其他节点。并更改对应主机名的配置

在第一次启动之前,需要初始化Alluxio master journal 和 worker storage。

格式化将删除alluxio配置的目录中的所有数据

./bin/alluxio format

启动alluxio

在其中一个主节点中,使用以下命令启动 Alluxio 集群:

./bin/alluxio-start.sh all SudoMount

4、验证Alluxio集群

要验证 Alluxio 是否正在运行,可以访问 leading master 的 web UI

./bin/alluxio fs masterInfo

yan1.png

然后访问访问http://<LEADER_HOSTNAME>:19999

yan2.png

执行自带的程序简单测试Alluxio集群

./bin/alluxio runTests

yan3.png

5、使用Alluxio

访问对应信息

./bin/alluxio fs ls  /user

yan4.png


相关文章

MongoDB的索引(三)

七、Compound Indexes{  "item": "Banana",  "category": ["food", "produce", "grocery"],  "location": ...

Linux高并发Nginx配置优化

在日常的运维工作中,经常会用到nginx服务,也时常会碰到nginx因高并发导致的性能瓶颈问题。一般来说nginx配置文件中对优化比较有作用的主要有以下几项:1)nginx进程数,建议按照cpu数目来...

更改默认StorageClass

为什么要更改默认StorageClass根据安装方式的不同,你的Kubernetes集群可以使用标记为默认值的现有StorageClass进行部署。然后,这个默认的StorageClass用于动态地为...

mysql binlog文件删除情况下恢复主从

mysql binlog文件删除情况下恢复主从

1、对主库的数据进行全库dump2、删除自建的从库数据库3、将主库数据source到从库(1)将全库dump文件传到从库服务器节点scp ./backup_2023-12-08_14_49_17.sq...

Ambari部署

Ambari部署

Ambari 官方资料入口:https://www.cloudera.com/products/open-source/apache-hadoop/apache-ambari.htmlAmbari 相...

xtrabackup报错记录

xtrabackup报错记录

报错记录报错一:报错显示需要依赖,但是当我们执行 yum install -y libstdc++ 显示已是最新版本,且通过 yum 安装 一般会将依赖包都直接安装成功。这时候可以核实一下安装包和当前...

发表评论    

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。