TOKYO - An earthquake with a preliminary magnitude of 5.4 struck off the coast of Ibaraki Prefecture in Japan's east on Sunday, but there was no threat of a tsunami, the country's weather agency said.