SAPPORO - Four people were injured and hundreds of others left stranded in train carriages and at an airport early Friday after a magnitude 5.8 quake hit Japan's northernmost main island of Hokkaido the previous night.