The quake hit Niigata Prefecture on Tuesday night, recording a maximum of upper 6 on the Japanese earthquake intensity scale of 7.