A hadoopified version of genpmk