A powerful earthquake was felt in Tokyo Friday, triggering a tsunami alert on the northeast coast and setting buildings in the Japanese capital swaying violently.