Some 170 people who spent time in Yosemite National Park in recent weeks have suffered from a gastrointestinal ailment “consistent with norovirus” and two have been diagnosed with the illness, park officials said.