Hawaii residents rushed to grocery stores Tuesday to stock up on bottled water, ramen and toilet paper as they faced the threat of heavy rain, flash flooding and high surf from a powerful and erratic hurricane expected to churn close to the islands or directly over them.

The National Weather Service at 5pm issued a hurricane warning for Hawaii island.

Earlier Tuesday, the weather service issued a hurricane watch for Maui and other smaller islands, meaning tropical storm-force winds, excessive rain and large swells could arrive starting Wednesday.

It's possible Oahu and Kauai may later be included in an advisory for the hurricane packing potential maximum sustained winds of 155 mph.

Hurricane Lane 'is forecast to move dangerously close to the main Hawaiian islands' and bring with it a deluge of rain water and property damage

The National Weather Service issued a hurricane warning at 5pm on Tuesday with rainfall expected Wednesday

Taro and Taina Leong of Kekaha, Kauai, are among the customers leaving a Walmart store with supplies to prepare for Hurricane Lane

The weather service issued a hurricane watch for Maui and other smaller islands with the possibility that Oahu and Kauai may later be included in an advisory

Hurricane Lane 'is forecast to move dangerously close to the main Hawaiian islands as a hurricane later this week, potentially bringing damaging winds and life-threatening flash flooding from heavy rainfall,' the weather service's Central Pacific Hurricane Center warned as it got closer to the state.

The storm had been moving west but is expected to turn northwest toward the state Wednesday. There's some uncertainty to Lane's path — whether it moves north or south, meteorologist Gavin Shigesato said.

'It is much too early to confidently determine which, if any, of the main Hawaiian islands will be directly impacted by Lane,' the weather service said.

But the hurricane center said the storm will move very close to or over the islands from Thursday through Saturday.

Even if the center of Lane doesn't make landfall, the islands could be walloped with rain and wind.

Maui County and Big Island schools will be closed starting Wednesday, the state Department of Education said.

All after-school activities statewide are canceled for the rest of the week.

The east side of the Big Island has taken the brunt from previous storms and is still reeling after lava from an erupting volcano wiped out entire neighborhoods.

This NASA satellite imagery shows Hurricane Lane in the Central Pacific Ocean southeast of the Hawaiian Islands at 2:01pm HST (21:01 GMT)

The east side of the Big Island has taken the brunt from previous storms and is still reeling after lava from an erupting volcano wiped out entire neighborhoods

Even if the center of Lane doesn't make landfall, the islands could be walloped with rain and wind (Pictured: NASA file image)

But early indications showed that the south end of the island up to the western side would be taking the brunt of the storm.

'At this time, it looks like maybe Puna will be spared,' county Managing Director Wil Okabe said of the beleaguered, rural district. 'But you never know.'

Officials were urging residents across the islands to prepare.

'People are getting ready, which is exactly what we want,' Maui County spokesman Rod Antone said.

'I know people are taking trips to Costco, buying ramen, rice, the usual. Toilet paper.'

He reminded people to have emergency kits ready and to 'withdraw cash. Remember, if the power goes out, ATMs aren't going to be working.'

Hawaiian Airlines is waiving change fees for tickets to, from, within and through Hawaii from Tuesday to Sunday.

Some customers were buying cases of bottled water at Island Grocery Depot in Kahului, Maui, manager Brian Arakaki said. He planned to call in more workers to cope with an expected afternoon rush.

On the south side of the Big Island, workers at Mizuno Superette in Pahala also were bracing for a busy afternoon.

'Right now, it's nice, everybody's calm,' said Carla Andrade, a store clerk. 'When everybody finishes work, they'll have time.'

In this photo provided City and County of Honolulu, Mayor Kirk Caldwell, center, receives a briefing from the Central Pacific Hurricane Center on Hurricane Lane at the Emergency Operations Center in Honolulu, Tuesday, Aug. 21, 2018

In this Monday, Aug. 20, 2018 photo, sandbags are seen near a stairway at the west end of the Sheraton Waikiki hotel in Honolulu