An earthquake with a magnitude of 2.6 struck San Jose on Thursday morning, according to the US Geological Survey.