An earthquake rattled the Bay Area early Thursday — with shaking felt in San Jose, miles from the epicenter.