hadoop - 为 Lustre 配置 Hadoop 时无法启动名称节点

标签 hadoop lustre

我正在尝试将 hadoop 与 intel lustre 集成。我已将 hadoop-lustre-plugin-3.1.0 添加到 hadoop-2.7.3/lib/native 文件夹。 Lustre 安装在 /mnt/lustre。当我使用 start-all.sh

启动 hadoop 时出现以下错误
[root@master hadoop]# start-all.sh 
This script is Deprecated. Instead use start-dfs.sh and start-yarn.sh
17/04/06 17:36:55 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
Incorrect configuration: namenode address dfs.namenode.servicerpc-address or dfs.namenode.rpc-address is not configured.
Starting namenodes on [ ]
... 

核心网站.xml :

<property>
  <name>fs.defaultFS</name>
  <value>lustre:///</value>
</property>
<property>
  <name>fs.lustre.impl</name>
  <value>org.apache.hadoop.fs.LustreFileSystem</value>
</property>
<property>
  <name>fs.AbstractFileSystem.lustre.impl</name>
  <value>org.apache.hadoop.fs.LustreFileSystemlustre</value>
</property
<property>
  <name>fs.lustrefs.mount</name>
    <value>/mnt/lustre/hadoop</value>
     <description>This is the directory on Lustre that acts as the root level for Hadoop services</description>
 </property>
<property>
  <name>lustre.stripe.count</name>
  <value>1</value>
</property>
<property>
  <name>lustre.stripe.size</name>
  <value>4194304</value>
</property>
<property>
  <name>fs.block.size</name>
  <value>1073741824</value>
</property>

maprd-site.xml

<property>
    <name>mapreduce.job.map.output.collector.class</name>
    <value>org.apache.hadoop.mapred.SharedFsPlugins$MapOutputBuffer</value>
</property>
<property>
    <name>mapreduce.job.reduce.shuffle.consumer.plugin.class</name>
    <value>org.apache.hadoop.mapred.SharedFsPlugins$Shuffle</value>
</property>

hdfs-site.xml

<property>
<name>dfs.name.dir</name>
<value>/mnt/lustre/hadoop/hadoop_tmp/namenode</value>
<description>true</description>
</property>

我在配置文件中是否遗漏了任何配置?

最佳答案

由于 fs.defaultFS 持有 lustre 特定的 URI,启动脚本无法确定必须启动 Namenode 的主机。

hdfs-site.xml中添加这个属性,

<property>
   <name>dfs.namenode.rpc-address</name>
   <value>namenode_host:port</value>
</property>

关于hadoop - 为 Lustre 配置 Hadoop 时无法启动名称节点,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43392133/

相关文章:

hadoop - 为什么 hadoop 输入和输出目录不可见?

xml - 将 XML 文件加载到 Hive 表

docker - 在运行容器内安装 Lustre 不起作用(已添加所有功能)

filesystems - 什么是 HPC 中的暂存空间/文件系统

hadoop - 除 select * 外的任何配置单元查询挂起

hadoop - ORC 表上的 Hive 选择查询失败

hadoop - 更改 impala trunc() 返回的一周的开始日期

mongodb - 使用Docker和Luster挂载的驱动器上的MongoDB “Unable to establish lock”错误

mysql - 在 Lustre 文件系统上启动 Mysqld 的持续时间太长(InnoDB : Unable to lock ./ibdata1,错误:38)