Ehime and Kochi prefectures were hit by the quake with an intensity of 6 on Japan's 1-7 scale, the JMA said. Some water pipes burst, but no major damage has been reported, local media said.