A rioter who set fire to a generator next to a Rotherham hotel housing asylum seekers has been jailed for six years.