Early morning flyers on their way to John F. Kennedy International Airport hustled Wednesday to make their flights after a complete failure of the AirTrain system, authorities said.

Two trains on the system stalled around 5 a.m., with about 70 passengers deboarded at the Howard Beach and Terminal A stations and moved to shuttle buses, said a Port Authority official.

The system was completely shut down around 6:45 a.m. and limited service resumed just after 7 a.m., said the Port Authority.

AirTrain personnel are investigating the cause of the problem.