MPICH-yarn is an application running on Hadoop YARN that enables
MPI programs running on Hadoop YARN clusters.
Prerequisite
As a prerequisite, you need to
The cluster has been deployed Hadoop YARN and HDFS.
Each node in the cluster has installed mpich-3.1.2 and its ./bin
folder has been added to PATH.
This version of mpich-yarn uses MPICH-3.1.2 as implementation of MPI
and uses ssh as communication daemon.
Recommended Configuation
Ubuntu 12.04 LTS
hadoop 2.4.1
gcc 4.6.3
jdk 1.7.0_25
Apache Maven 3.2.3
Compile
To compile MPICH-yarn, first you need to have maven installed. Then
type command at source folder:
mvn clean package -Dmaven.test.skip=true
You need to ensure Internet connected as maven needs to download plugins
on the maven repository, this may take minutes.
After this command, you will get mpich2-yarn-1.0-SNAPSHOT.jar at
./target folder. This is the application running at YARN to execute
MPI programs.
Configuation
There are many tutorials on the Internet about configuring Hadoop. However,
there are many troubles in configuring YARN to make it work well with mpich2-
yarn. To save your time, here is a sample configuration that has successfully
run in our cluster for your reference.
<configuration>
<property>
<name>yarn.mpi.scratch.dir</name>
<value></value>
<description>
The HDFS address that stores temporary file like:
hdfs://sandking04:9000/home/hadoop/mpi-tmp
</description>
</property>
<property>
<name>yarn.mpi.ssh.authorizedkeys.path</name>
<value>/home/hadoop/.ssh/authorized_keys</value>
<description>
MPICH-YARN will create a temporary RSA key pair for
password-less login and automatically configure it.
All of your hosts should enable public_key login.
</description>
</property>
</configuration>
Submit Jobs
CPI
On the client nodes:
mpicc -o cpi cpi.c
hadoop jar mpich2-yarn-1.0-SNAPSHOT.jar -a cpi -M 1024 -m 1024 -n 2
Hello world
hadoop jar mpich2-yarn-1.0-SNAPSHOT.jar -a hellow -M 1024 -m 1024 -n 2
PLDA
svn checkout http://plda.googlecode.com/svn/trunk/ plda # Prepare source code
cd plda
make # call mpicc to compile
cd ..
Put the input data to the hdfs (P.S. there is a testdata in the PLDA source
code dir):
mpich-yarn
Introduction
MPICH-yarn is an application running on Hadoop YARN that enables MPI programs running on Hadoop YARN clusters.
Prerequisite
As a prerequisite, you need to
This version of mpich-yarn uses MPICH-3.1.2 as implementation of MPI and uses ssh as communication daemon.
Recommended Configuation
Compile
To compile MPICH-yarn, first you need to have maven installed. Then type command at source folder:
You need to ensure Internet connected as maven needs to download plugins on the maven repository, this may take minutes.
After this command, you will get mpich2-yarn-1.0-SNAPSHOT.jar at ./target folder. This is the application running at YARN to execute MPI programs.
Configuation
There are many tutorials on the Internet about configuring Hadoop. However, there are many troubles in configuring YARN to make it work well with mpich2- yarn. To save your time, here is a sample configuration that has successfully run in our cluster for your reference.
yarn-site.xml
mpi-site.conf
Submit Jobs
CPI
On the client nodes:
Hello world
PLDA
Put the input data to the hdfs (P.S. there is a testdata in the PLDA source code dir):