MAPREDUCE-5794. SliveMapper always uses default FileSystem. (Contributed by szetszwo)
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1577281 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
70aba7ffcf
commit
763b8ebf46
@ -228,6 +228,9 @@ Release 2.4.0 - UNRELEASED
|
||||
MAPREDUCE-5789. Average Reduce time is incorrect on Job Overview page
|
||||
(Rushabh S Shah via jlowe)
|
||||
|
||||
MAPREDUCE-5794. SliveMapper always uses default FileSystem. (szetszwo via
|
||||
Arpit Agarwal)
|
||||
|
||||
Release 2.3.1 - UNRELEASED
|
||||
|
||||
INCOMPATIBLE CHANGES
|
||||
|
@ -31,7 +31,6 @@
|
||||
/**
|
||||
* A input format which returns one dummy key and value
|
||||
*/
|
||||
@SuppressWarnings("deprecation")
|
||||
class DummyInputFormat implements InputFormat<Object, Object> {
|
||||
|
||||
static class EmptySplit implements InputSplit {
|
||||
|
@ -42,7 +42,6 @@
|
||||
* that have been selected and upon operation completion output the collected
|
||||
* output from that operation (and repeat until finished).
|
||||
*/
|
||||
@SuppressWarnings("deprecation")
|
||||
public class SliveMapper extends MapReduceBase implements
|
||||
Mapper<Object, Object, Text, Text> {
|
||||
|
||||
@ -63,15 +62,10 @@ public class SliveMapper extends MapReduceBase implements
|
||||
*/
|
||||
@Override // MapReduceBase
|
||||
public void configure(JobConf conf) {
|
||||
try {
|
||||
filesystem = FileSystem.get(conf);
|
||||
} catch (Exception e) {
|
||||
throw new RuntimeException(
|
||||
"Unable to get the filesystem from provided configuration", e);
|
||||
}
|
||||
try {
|
||||
config = new ConfigExtractor(conf);
|
||||
ConfigExtractor.dumpOptions(config);
|
||||
filesystem = config.getBaseDirectory().getFileSystem(conf);
|
||||
} catch (Exception e) {
|
||||
LOG.error("Unable to setup slive " + StringUtils.stringifyException(e));
|
||||
throw new RuntimeException("Unable to setup slive configuration", e);
|
||||
|
@ -26,7 +26,6 @@
|
||||
* The partition number is the hash of the operation type modular the total
|
||||
* number of the reducers.
|
||||
*/
|
||||
@SuppressWarnings("deprecation")
|
||||
public class SlivePartitioner implements Partitioner<Text, Text> {
|
||||
@Override // JobConfigurable
|
||||
public void configure(JobConf conf) {}
|
||||
|
@ -35,7 +35,6 @@
|
||||
* The slive reducer which iterates over the given input values and merges them
|
||||
* together into a final output value.
|
||||
*/
|
||||
@SuppressWarnings("deprecation")
|
||||
public class SliveReducer extends MapReduceBase implements
|
||||
Reducer<Text, Text, Text, Text> {
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user