Migrating Policy Activities

There are two administration logins for policy management. One for KMS, which uses the keyadmin login credentials and another for the remaining services. These include HDFS, HBase, Hive, YARN, Knox, Kafka, and Atlas.

Using the above examples and the admin login that matches the service you want to migrate, issue the migration for each service.
  • HDFS - ./ranger_policy_migration.py -u http://my_ranger.server.org:6080 -n admin -p <admin_pw> -f <existing_service> -t cm_hdfs
  • HBase - ./ranger_policy_migration.py -u http://my_ranger.server.org:6080 -n admin -p <admin_pw> -f <existing_service> -t cm_hbase
  • Hive - ./ranger_policy_migration.py -u http://my_ranger.server.org:6080 -n admin -p <admin_pw> -f <existing_service> -t cm_hive
  • YARN - ./ranger_policy_migration.py -u http://my_ranger.server.org:6080 -n admin -p <admin_pw> -f <existing_service> -t cm_yarn
  • Knox - ./ranger_policy_migration.py -u http://my_ranger.server.org:6080 -n admin -p <admin_pw> -f <existing_service> -t cm_knox
  • Kafka - ./ranger_policy_migration.py -u http://my_ranger.server.org:6080 -n admin -p <admin_pw> -f <existing_service> -t cm_kafka
  • Atlas - ./ranger_policy_migration.py -u http://my_ranger.server.org:6080 -n admin -p <admin_pw> -f <existing_service> -t cm_atlas
  • KMS - ./ranger_policy_migration.py -u http://my_ranger.server.org:6080 -n keyadmin -p <keyadmin_pw> -f <existing_service> -t cm_kms