ANCHORAGE, Alaska - A tsunami warning was issued for coastal areas of Alaska and British Columbia from the border of Washington State to Attu, Alaska, the Anchorage Office of Emergency Management said.

The warning was issued after an earthquake with a magnitude of 8.2 hit 175 miles southeast of Kodiak City, Alaska. The earthquake was later downgraded to a 7.9 magnitude.

The warning was later downgraded to an advisory.

"If you are located in this coastal area, move inland to higher ground," the office said. "Tsunami warnings mean that a tsunami with significant inundation is possible or is already occurring. Tsunamis are a series of waves dangerous many hours after initial arrival time. The first wave may not be the largest."

In addition, the National Weather Service put much of the U.S. West Coast on alert.

Hawaii was also put under a tsunami watch.