India, led by record-breaking centuries from Rohit Sharma and Virat Kohli, managed to keep the visitors six runs away from eclipsing the hosts' 337 in an edge-of-the-seat run-feast in Kanpur.