adapt terrier to Hadoop YARN