A 7. 8 magnitude earthquake has struck in the Pacific, triggering tsunami warnings in Alaska and Hawaii.