This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private[hadoop] def runMapReduce[K1,V1,K2,V2,K3,V3](paths : Array[Path], | |
m: Mapper[K1,V1,K2,V2], | |
r: Reduce[K2,V2,K3,V3]) | |
(implicit mk2:Manifest[K2], mv2:Manifest[V2], | |
mk3:Manifest[K3], mv3:Manifest[V3]) = { | |
implicit val jobConf = new JobConf(conf, m.getFunClass); | |
val outputPath = genDir; | |
jobConf.setJobName("SMR-"+outputPath.getName); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package smr.plugin; | |
import scala.tools.nsc | |
import nsc.Global | |
import nsc.Phase | |
import nsc.plugins.Plugin | |
import nsc.plugins.PluginComponent | |
import nsc.transform._ | |
import nsc.symtab.Flags._ | |
class SerOverride(val global: Global) extends Plugin { |
NewerOlder