dialog.run(true, false, new IRunnableWithProgress() {
public void run(IProgressMonitor monitor)
throws InvocationTargetException, InterruptedException {
Session session = null;
try {
session = location.createSession();
try {
ChannelExec channel =
(ChannelExec) session.openChannel("exec");
channel.setCommand(location.getInstallPath()
+ "/bin/hadoop version");