import org.apache.hadoop.mapreduce._
class MyMapper extends Mapper[String,String,String,String] {
type Context = Mapper[String,String,String,String]#Context
override def setup(context: Context) = {}
override def map(key: String, value: String, context: Context) = sys.error("Not implemented")
}
As Context is an inner class of Mapper you need to use a type projection here. Either override setup like this:
override def setup(context: Mapper[String,String,String,String]#Context)
or use the type alias in the example above.
Moritz