A massive earthquake has triggered tsunami warnings across the Pacific.