initialize publisher and setup to classifier in rdd function.