CHICAGO Anthony Rizzo hit two home runs, Kyle Hendricks tossed seven strong innings and the Chicago Cubs hung on to beat the San Francisco Giants 5-4 on Wednesday night.