A hurricane warning is in effect for the Cayman Islands and Cuba.