Add a 3-node cluster specification and a
task for running wordcount with Hadoop on Ceph.
Signed-off-by: Joe Buck <jbbuck@gmail.com>
Reviewed-by: Sam Lang <sam.lang@inktank.com>
--- /dev/null
+roles:
+- [mon.0, mds.0, osd.0, hadoop.master.0]
+- [mon.1, osd.1, hadoop.slave.0]
+- [mon.2, hadoop.slave.1, client.0]
+
--- /dev/null
+tasks:
+- ssh_keys:
+- ceph:
+- hadoop:
+- pexec:
+ hadoop.slave.0:
+ - mkdir -p /tmp/hadoop_input
+ - wget http://ceph.com/qa/hadoop_input_files.tar -O /tmp/hadoop_input/files.tar
+ - cd /tmp/hadoop_input/; tar -xf /tmp/hadoop_input/files.tar
+ - /tmp/cephtest/hadoop/bin/hadoop fs -mkdir wordcount_input
+ - /tmp/cephtest/hadoop/bin/hadoop fs -put /tmp/hadoop_input/*txt wordcount_input/
+ - /tmp/cephtest/hadoop/bin/hadoop jar /tmp/cephtest/hadoop/build/hadoop-example*jar wordcount wordcount_input wordcount_output
+ - rm -rf /tmp/hadoop_input