write kirchhoff codes on hadoop and spark