Tez port for Spark API