An earthquake with a magnitude of 5.7 shook northeastern Japan on Tuesday, the Meteorological Agency said, but no tsunami warning was issued and nuclear plant operators reported no problems at their facilities.