Japan has been hit by a powerful 7.4-magnitude earthquake and prompted authorities to issue tsunami warning.