Esempio n. 1
0
  @Before
  public void setUp() throws IOException {
    MapFileDemo.main(new String[] {MAP_URI});

    Configuration conf = new Configuration();
    fs = FileSystem.get(URI.create(MAP_URI), conf);

    reader = new MapFile.Reader(fs, MAP_URI, conf);
    key = (WritableComparable<?>) ReflectionUtils.newInstance(reader.getKeyClass(), conf);
    value = (Writable) ReflectionUtils.newInstance(reader.getValueClass(), conf);
  }
Esempio n. 2
0
 @After
 public void tearDown() throws IOException {
   fs.delete(new Path(MAP_URI), true);
 }