请稍等 ...
×

采纳答案成功!

向帮助你的同学说点啥吧!感谢那些助人为乐的人

正在回答 回答被采纳积分+3

1回答

Michael_PK 2018-08-20 20:05:10

native.lib 参见官网的这个章节:

Plugin Configurations

Execute-As-User

With a new security enhancement in Azkaban 3.0, Azkaban jobs can now run as the submit user or the user.to.proxy of the flow by default. This ensures that Azkaban takes advantage of the Linux permission security mechanism, and operationally this simplifies resource monitoring and visibility. Set up this behavior by doing the following:-

Execute.as.user is set to true by default. In case needed, it can also be configured to false in azkaban-plugin’s commonprivate.properties

Configure azkaban.native.lib= to the place where you are going to put the compiled execute-as-user.c file (see below)

Generate an executable on the Azkaban box for azkaban-common/src/main/c/execute-as-user.c. it should be named execute-as-user Below is a sample approach

scp ./azkaban-common/src/main/c/execute-as-user.c onto the Azkaban box

run: gcc execute-as-user.c -o execute-as-user

run: chown root execute-as-user (you might need root privilege)

run: chmod 6050 execute-as-user (you might need root privilege)



上课应该有讲过这个操作的步骤吧,我记得

0 回复 有任何疑惑可以回复我~
问题已解决,确定采纳
还有疑问,暂不采纳
意见反馈 帮助中心 APP下载
官方微信