A hollow electron beam has been proposed as an active control tool to remove the beam halo from highenergy, high-current hadron or ion machines (such as the High-Luminosity Large Hadron Collider). To study the halo removal rate and assess the effect on the ion beam core, one of the two electron lenses in the Relativistic Heavy Ion Collider was changed from a Gaussian beam profile to a hollow profile. We describe the design and verification of the hollow electron beam parameters as well as the methods to minimize the hollow beam profile distortions, which can result in an ion beam emittance increase. The hollow beam alignment with the ion beam by using a backscattered electron detector has been demonstrated. Furthermore, experiments were carried out to explore the efficiency of the halo removal by scanning the current and inner radius of the hollow electron beam, which is pulsed either every turn or every nth turn. The effects of the hollow electron beam on the ion beam emittance and luminosity were also assessed experimentally by scanning the inner radius of the electron beam.