Hundreds of thousands of people have been urged to seek shelter as a powerful typhoon passes over Japan's Okinawa island chain.