An earthquake with a preliminary magnitude of 6.3 hit eastern Japan on Wednesday night, but no tsunami warning was issued, public broadcaster NHK said.