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
// | |
// Old Hadoop API | |
// | |
public org.apache.hadoop.mapred.InputSplit[] getSplits(JobConf jobConf, int numSplits) throws IOException | |
{ | |
//TaskAttemptContext tac = new TaskAttemptContext(jobConf, new TaskAttemptID()); | |
TaskAttemptContext tac = new org.apache.hadoop.mapreduce.task.TaskAttemptContextImpl(jobConf, new TaskAttemptID()); | |
List<org.apache.hadoop.mapreduce.InputSplit> newInputSplits = this.getSplits(tac); | |
org.apache.hadoop.mapred.InputSplit[] oldInputSplits = new org.apache.hadoop.mapred.InputSplit[newInputSplits.size()]; |
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
#! /bin/sh | |
. /etc/rc.conf | |
. /etc/rc.d/functions | |
#change this. too bad emacs daemon can't really work in mutli-user mode. for now. | |
USERNAME=volh | |
DESC="Run the emacs daemon." | |
NAME=emacs | |
#change this |