The tsunami warning after the powerful magnitude 7.7 earthquake in Japan was later downgraded to an advisory as the immediate threat eased.