Search⌘ K

Sequence File: Reading & Writing

Explore how to create and interpret sequence files in Hadoop by implementing custom writable classes. Learn to write car objects to sequence files, manage keys and values, utilize compression, and read data with sync markers. This lesson helps you handle Big Data storage efficiently using Hadoop's sequence file formats.

We'll cover the following...

Sequence File: Reading & Writing

In this lesson, we write and read sequence files. We define a class representing a car, create objects of the car, and then store them in a sequence file. Our class Car is written in Java and implements the interface Writeable. Implementing the interface allows us to serialize an object of the class as a key/value pair into the sequence file. We can choose the key to be the car name and the corresponding value as the car object. The key is represented by the class Text while the ...