A preliminary 2.8 magnitude earthquake struck early Friday morning near San Jose, according to the United States Geological Survey.