Detect Hadoop version