If you try to perform a mapred query, but get a connection refused, your query.run() will simply return None making debugging almost impossible.