Hadoop uses Context object with Mapper to interact with rest of the system. Context object gets the configuration of the system and job in its constructor.
We use Context object to pass the information in setup(), cleanup() and map() methods. This is an important object that makes the important information available during the map
operations.