Step 8: Verify that Kerberos security is working
Verify that Kerberos security is working by running test MapReduce jobs.
After you have Kerberos credentials, you can verify that Kerberos security is working on
your cluster by trying to run MapReduce jobs. To confirm, try launching a sleep or a pi job
from the provided Hadoop examples
Acquire Kerberos credentials for your user account.
- Enter a password when prompted.
Submit a sample pi calculation as a test MapReduce job. Use the following command if
you use a package-based setup for Cloudera Manager:
If you have a parcel-based setup, use the following command instead:
$ hadoop jar /usr/lib/hadoop-0.20-mapreduce/hadoop-examples.jar pi 10 10000 Number of Maps = 10 Samples per Map = 10000 ... Job Finished in 38.572 seconds Estimated value of Pi is 3.14120000000000000000
$ hadoop jar /opt/cloudera/parcels/CDH/lib/hadoop-0.20-mapreduce/hadoop-examples.jar pi 10 10000 Number of Maps = 10 Samples per Map = 10000 ... Job Finished in 30.958 seconds Estimated value of Pi is 3.14120000000000000000
You have now verified that Kerberos security is working on your cluster.