在运行时重新加载authorizers.xml文件 [英] Reload authorizers.xml file at runtime

查看:100
本文介绍了在运行时重新加载authorizers.xml文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在运行时重新加载初始管理员身份配置.有没有实现这一目标的选择.

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

考虑一下情况, 如果我已使用Kerberos在安全模式下配置了NiFi,但未提供初始管理员".因此,我无法与任何用户一起登录NiFi.我要在NiFi启动后更新authorizers.xml中的管理员配置,然后在运行时重新加载该文件. 我该如何实现?

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.

推荐答案

如果不重新启动应用程序,则无法重新加载初始管理员身份.最初配置NiFi时,请在authorizers.xml中提供主体作为IAI,然后启动应用程序.如果尚未执行此操作,请停止应用程序,修改authorizers.xml,然后重新启动应用程序.

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.

拥有可以登录的IAI后,您可以使用NiFi中的用户管理和策略管理工具来添加其他用户,而不必重新启动应用程序.

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.

这篇关于在运行时重新加载authorizers.xml文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆