@Jennifer
Basically Ranger is legacy hortoworks component which comes with HDP and Sentry is legacy Cloudera component which comes with CDH.
In latest product delivery of Cloudera which CDP we have Ranger as authorisation component. Sentry is removed form CDP.
If you are using HDP or CDP then you can use ranger but if you are using CDH then you will have sentry