A wastewater pipe burst and dumped nearly 30,000 gallons of raw sewage, forcing the coastal California city to close its open swimming sites.