As many as 6,000 firefighters were battling a wave of wildfires raging across California, which is gripped by a historic drought and near-record temperatures.