Reload authorizers.xml file at runtime

前提是你 提交于 2020-01-06 06:35:16

问题


I want to reload initial admin identity configuration at runtime. Is there any option to achieve this.

Consider the case, If i have configured NiFi in secure mode using Kerberos and doesn't provided "Initial Admin". So i cannot login into NiFi with any user. I want to update the admin configuration in authorizers.xml after NiFi started and reload the file in runtime. How can i achieve this?

Give me a solution or idea to make it succeeded.


回答1:


You cannot reload the Initial Admin Identity without restarting the application. When you initially configure NiFi, provide the principal as the IAI in authorizers.xml and then start the application. If you have not done this, stop the application, modify authorizers.xml, and restart the application.

Once you have an IAI which can log in, you can use the user management and policy management tools in NiFi to add other users without having to restart the application.



来源:https://stackoverflow.com/questions/45325413/reload-authorizers-xml-file-at-runtime

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!