Path path = new Path(tmpFile.getAbsolutePath());
Configuration conf = new Configuration();
FileSystem fs = FileSystem.get(conf);
SequenceFile.Writer seqWriter = new SequenceFile.Writer(fs, conf, path, LongWritable.class, VectorWritable.class);
SequenceFileVectorWriter writer = new SequenceFileVectorWriter(seqWriter);
RandomVectorIterable iter = new RandomVectorIterable(50);
writer.write(iter);
writer.close();
SequenceFile.Reader seqReader = new SequenceFile.Reader(fs, path, conf);
LongWritable key = new LongWritable();