Difference between revisions of "Bright:Testing Hadoop"

From Define Wiki
Jump to navigation Jump to search
(Created page with "== Bright's Hadoop Tests == <syntaxhighlight> cd /cm/local/apps/cluster-tools/hadoop/ ./cm-hadoop-tests.sh <instance> # instance is hdfs1 in our case </syntaxhighlight>")
 
Line 1: Line 1:
 
== Bright's Hadoop Tests ==
 
== Bright's Hadoop Tests ==
 +
 +
=== Automatic tests: ===
  
 
<syntaxhighlight>
 
<syntaxhighlight>
 
cd /cm/local/apps/cluster-tools/hadoop/
 
cd /cm/local/apps/cluster-tools/hadoop/
 
./cm-hadoop-tests.sh <instance> # instance is hdfs1 in our case
 
./cm-hadoop-tests.sh <instance> # instance is hdfs1 in our case
 +
</syntaxhighlight>
 +
 +
=== End User test runs: ===
 +
 +
*Firstly, you must give the user access to the Hadoop instance:
 +
<syntaxhighlight> [bright70->user[fred]]% set hadoophdfsaccess apache220; commit </syntaxhighlight>
 +
 +
* Then the user can run the tests like this:
 +
<syntaxhighlight>
 +
[fred@bright70 ~]$ module add hadoop/Apache220/Apache/2.2.0
 +
[fred@bright70 ~]$ hadoop jar $HADOOP_PREFIX/share/hadoop/mapreduce/hado\
 +
op-mapreduce-examples-2.2.0.jar pi 1 5
 +
...
 +
Job Finished in 19.732 seconds
 +
Estimated value of Pi is 4.00000000000000000000
 
</syntaxhighlight>
 
</syntaxhighlight>

Revision as of 12:06, 11 February 2015

Bright's Hadoop Tests

Automatic tests:

cd /cm/local/apps/cluster-tools/hadoop/
./cm-hadoop-tests.sh <instance> # instance is hdfs1 in our case

End User test runs:

  • Firstly, you must give the user access to the Hadoop instance:
 [bright70->user[fred]]% set hadoophdfsaccess apache220; commit
  • Then the user can run the tests like this:
[fred@bright70 ~]$ module add hadoop/Apache220/Apache/2.2.0
[fred@bright70 ~]$ hadoop jar $HADOOP_PREFIX/share/hadoop/mapreduce/hado\
op-mapreduce-examples-2.2.0.jar pi 1 5
...
Job Finished in 19.732 seconds
Estimated value of Pi is 4.00000000000000000000