Java – Emulates a Hadoop user

Emulates a Hadoop user… here is a solution to the problem.

Emulates a Hadoop user

I have a proxy application that receives requests and processes them by interacting with a secure Hadoop cluster.

I’m trying to impersonate an end user (sending a request to my proxy application) so that mapper tasks submitted by my proxy application run on the cluster on behalf of the end user.

Do you require the username my application is trying to impersonate to be present on all mapper boxes? Is there a way to achieve this without creating an account on a cluster machine for each end user that my proxy application should impersonate?

Solution

As I understand it< a href="https://hadoop.apache.org/docs/stable/hadoop-project-dist/hadoop-common/SecureMode.html" rel="noreferrer noopener nofollow"> Hadoop in Secure Mode And imitation, you will need proxy user, a superusers Acting On Behalf Of Other Users .

Is it required that username that my application is trying to impersonate exist on all mapper boxes …

Therefore, this is not required.

Related Problems and Solutions