Tsunami warnings have been issued from the coastlines of Alaska and Canada all the way down to California after an 7.9 magnitude earthquake was detected.