内容简介:需要保证 Alluxio 编译使用的 Hadoop 版本与环境使用的 Hadoop 版本一致。可以选择在以编译 Hadoop 2.7.1 版本的 Alluxio 为例:编辑
Hadoop 版本
需要保证 Alluxio 编译使用的 Hadoop 版本与环境使用的 Hadoop 版本一致。可以选择在 Alluxio 下载页面 下载预编译版本,也可以在 Alluxio GitHub 页面 从源码编译。
以编译 Hadoop 2.7.1 版本的 Alluxio 为例:
mvn install -Phadoop-2 -Dhadoop.version=2.7.1 -DskipTests
HDFS 挂载
编辑 <ALLUXIO_HOME>/conf/alluxio-site.properties
文件:
alluxio.underfs.address=hdfs://namenode:9000
Alluxio 会将 HDFS 根目录挂载到 Alluxio
同样,也可以挂载 HDFS 子目录:
alluxio.underfs.address=hdfs://namenode:9000/data
如果 HDFS 配置了 HA,要么拷贝 core-site.xml
文件和 hdfs-site.xml
文件到 <ALLUXIO_HOME>/conf/
目录,要么编辑 <ALLUXIO_HOME>/conf/alluxio-site.properties
文件:
alluxio.underfs.hdfs.configuration=/etc/hadoop/core-site.xml:/etc/hadoop/hdfs-site.xml
参考:
以上就是本文的全部内容,希望本文的内容对大家的学习或者工作能带来一定的帮助,也希望大家多多支持 码农网
本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们。
Web 2.0 Heroes
Bradley L. Jones / Wiley / 2008-04-14 / USD 24.99
Web 2.0 may be an elusive concept, but one thing is certain: using the Web as merely a means of retrieving and displaying information is history. Today?s Web is immediate, interactive, innovative. It ......一起来看看 《Web 2.0 Heroes》 这本书的介绍吧!