解压
tar -xvf alluxio-2.9.3-bin.tar.gz -C /opt
进入/opt/alluxio-2.9.3/conf,修改配置文件
vim master
hadoop001
vim workers
hadoop001
hadoop002
hadoop003
vim alluxio-env.sh
export JAVA_HOME=/usr/local/jdk1.8.0_192
vim alluxio-site.properties
alluxio.worker.ramdisk.size=4GB
alluxio.worker.tieredstore.level0.dirs.path=/mnt/ramdisk
alluxio.master.hostname=hadoop001
在master节点上格式化
cd /opt/alluxio-2.9.3/bin
hadoop@hadoop001:/opt/alluxio-2.9.3/bin$ ./alluxio format
Executing the following command on all worker nodes and logging to /opt/alluxio-2.9.3/logs/task.log: /opt/alluxio-2.9.3/bin/alluxio formatWorker
Waiting for tasks to finish...
All tasks finished
Executing the following command on all master nodes and logging to /opt/alluxio-2.9.3/logs/task.log: /opt/alluxio-2.9.3/bin/alluxio formatJournal
Waiting for tasks to finish...
All tasks finished
在每个节点下挂载
hadoop@hadoop001:/opt/alluxio-2.9.3/bin$ ./alluxio-mount.sh SudoMount
Formatting RamFS: /mnt/ramdisk (4294967296)
[sudo] password for hadoop:
在master节点上启动服务
hadoop@hadoop001:/opt/alluxio-2.9.3/bin$ ./alluxio-start.sh all
Assuming NoMount by default.
Executing the following command on all master nodes and logging to /opt/alluxio-2.9.3/logs/task.log: /opt/alluxio-2.9.3/bin/alluxio-stop.sh proxy
Waiting for tasks to finish...
All tasks finished
Executing the following command on all worker nodes and logging to /opt/alluxio-2.9.3/logs/task.log: /opt/alluxio-2.9.3/bin/alluxio-stop.sh proxy
Waiting for tasks to finish...
All tasks finished
Executing the following command on all worker nodes and logging to /opt/alluxio-2.9.3/logs/task.log: /opt/alluxio-2.9.3/bin/alluxio-stop.sh job_worker
Waiting for tasks to finish...
All tasks finished
Executing the following command on all worker nodes and logging to /opt/alluxio-2.9.3/logs/task.log: /opt/alluxio-2.9.3/bin/alluxio-stop.sh worker
Waiting for tasks to finish...
All tasks finished
Executing the following command on all master nodes and logging to /opt/alluxio-2.9.3/logs/task.log: /opt/alluxio-2.9.3/bin/alluxio-stop.sh job_master
Waiting for tasks to finish...
All tasks finished
Executing the following command on all master nodes and logging to /opt/alluxio-2.9.3/logs/task.log: /opt/alluxio-2.9.3/bin/alluxio-stop.sh master
Waiting for tasks to finish...
All tasks finished
Executing the following command on all master nodes and logging to /opt/alluxio-2.9.3/logs/task.log: /opt/alluxio-2.9.3/bin/alluxio-start.sh -a master
Waiting for tasks to finish...
All tasks finished
Executing the following command on all master nodes and logging to /opt/alluxio-2.9.3/logs/task.log: /opt/alluxio-2.9.3/bin/alluxio-start.sh -a job_master
Waiting for tasks to finish...
All tasks finished
Executing the following command on all worker nodes and logging to /opt/alluxio-2.9.3/logs/task.log: /opt/alluxio-2.9.3/bin/alluxio-start.sh -a worker NoMount
Waiting for tasks to finish...
All tasks finished
Executing the following command on all worker nodes and logging to /opt/alluxio-2.9.3/logs/task.log: /opt/alluxio-2.9.3/bin/alluxio-start.sh -a job_worker
Waiting for tasks to finish...
All tasks finished
Executing the following command on all master nodes and logging to /opt/alluxio-2.9.3/logs/task.log: /opt/alluxio-2.9.3/bin/alluxio-start.sh -a proxy
Waiting for tasks to finish...
All tasks finished
Executing the following command on all worker nodes and logging to /opt/alluxio-2.9.3/logs/task.log: /opt/alluxio-2.9.3/bin/alluxio-start.sh -a proxy
Waiting for tasks to finish...
All tasks finished
-----------------------------------------
Starting to monitor all remote services.
-----------------------------------------
--- [ OK ] The master service @ hadoop001 is in a healthy state.
--- [ OK ] The job_master service @ hadoop001 is in a healthy state.
--- [ OK ] The worker service @ hadoop001 is in a healthy state.
--- [ OK ] The worker service @ hadoop003 is in a healthy state.
--- [ OK ] The worker service @ hadoop002 is in a healthy state.
--- [ OK ] The job_worker service @ hadoop003 is in a healthy state.
--- [ OK ] The job_worker service @ hadoop001 is in a healthy state.
--- [ OK ] The job_worker service @ hadoop002 is in a healthy state.
--- [ OK ] The proxy service @ hadoop001 is in a healthy state.
--- [ OK ] The proxy service @ hadoop003 is in a healthy state.
--- [ OK ] The proxy service @ hadoop002 is in a healthy state.