1、安装alluxio
#在hdp1-hdp5安装
yum install alluxio -y
2、修改配置文件
#修改 /etc/alluxio/conf/alluxio-site.properties
alluxio.zookeeper.enabled=true
alluxio.zookeeper.address=hdp1:2181,hdp2:2181,hdp3:2181
alluxio.master.hostname=hdp1
alluxio.underfs.hdfs.configuration=/etc/hadoop/conf/core-site.xml:/etc/hadoop/conf/hdfs-site.xml
alluxio.underfs.address=hdfs://mycluster:9000/alluxio/root/
alluxio.master.journal.folder=hdfs://mycluster:9000/alluxio/journal/
#修改/etc/alluxio/conf/workers
hdp1
hdp2
hdp3
hdp4
hdp5
#分发配置文件
scp conf/ hdp2:/etc/alluxio/
scp conf/ hdp3:/etc/alluxio/
scp conf/ hdp4:/etc/alluxio/
scp conf/ hdp5:/etc/alluxio/
3、启动服务
hdp1
./alluxio-master start
./alluxio-worker start
hdp2-hdp5
./alluxio-worker start
4、查看日志
cat /var/log/alluxio/worker.log
5、测试
./bin/alluxio fs leader
./bin/alluxio runTests
[root@hdp5 init.d]# alluxio fs leader
hdp1