一、下载
wget https://downloads.alluxio.io/downloads/files/2.0.1/alluxio-2.0.1-bin.tar.gz
二、配置
1)对本机用户免密码登录
2)修改alluxio-site.preperties
alluxio.master.hostname=localhost
alluxio.master.mount.table.root.ufs=hdfs://192.168.2.101:8020/
# Security properties
# alluxio.security.authorization.permission.enabled=true
# alluxio.security.authentication.type=SIMPLE
# Worker properties
# alluxio.worker.memory.size=1GB
# alluxio.worker.tieredstore.levels=1
# alluxio.worker.tieredstore.level0.alias=MEM
alluxio.worker.tieredstore.level0.dirs.path=/dev/shm
3)格式化
alluxio format
4)启动
./bin/alluxio-start.sh all NoMount
5)访问
http://localhost:19999/
三、操作
1)上传文件到alluxio
alluxio fs copyFromLocal anaconda-ks.cfg /
2) alluxio文件固化到HDFS
alluxio fs persist /anaconda-ks.cfg
hadoop fs -ls /alluxio
3)释放alluxio的文件
alluxio fs free /anaconda-ks.cfg
4) 重新加载HDFS文件到alluxio文件
alluxio fs load /anaconda-ks.cfg
5)删除alluxio的文件
alluxio fs rm /anaconda-ks.cfg