To rectify this errors, you need to import the respective packages. Add the below statements in your program and the errors will be resolved,
import org.apache.hadoop.io.LongWritable;
import org.apache.hadoop.io.Text;
import org.apache.hadoop.mapreduce.Mapper;