Ernesto was creating dangerous surf conditions that were expected to continue for several days, forecasters warned.