Kevin Liu
07/18/2022, 8:11 AMGenericRowFileWriter class:
/**
* Writes the given row into the files.
*/
public void write(GenericRow genericRow)
throws IOException {
_offsetStream.writeLong(_nextOffset);
byte[] bytes = _serializer.serialize(genericRow);
_dataStream.write(bytes);
_nextOffset += bytes.length;
}
I use GenericRowFileWriter to write GenericRow to the record.data file. It takes several hours to write more than 20 million data. Why is it so slow to write?Mayank
Kevin Liu
07/18/2022, 2:15 PMMayank
Kevin Liu
07/19/2022, 12:58 AM