Up to four inches of rain is forecast for parts of Long Island, according to the National Weather Service.