Note that there are some explanatory texts on larger screens.

plurals
  1. POSet hadoop system user for client embedded in Java webapp
    primarykey
    data
    text
    <p>I would like to submit MapReduce jobs from a java web application to a remote Hadoop cluster but am unable to specify which user the job should be submitted for. I would like to configure and use a system user which should be used for all MapReduce jobs.</p> <p>Currently I am unable to specify any user and no matter what the hadoop job runs under the username of the currently logged in user of the client system. This causes an error with the message </p> <pre><code>Permission denied: user=alice, access=WRITE, inode="staging":hduser:supergroup:rwxr-xr-x </code></pre> <p>... where "alice" is the local, logged in user on the client machine.</p> <p>I have tried </p> <ol> <li>various combinations of creating <code>UserGroupInformation</code> instances (both proxies and normal user) and</li> <li>setting the Java System property with <code>-Duser.name=hduser</code>, changing the <code>USER</code> envar and as a hard coded <code>System.setProperty("user.name", "hduser")</code> call.</li> </ol> <p>... to no avail. Regarding 1) I admit to having no clue on how these classes are supposed to be used. Also please note that changing the Java System property is obviously not a real solution for use in the web application.</p> <p><strong>Does any body know how you specify which user Hadoop uses to connect to a remote system?</strong></p> <p>PS/ Hadoop is using the default configuration meaning that no authentication is used when connecting to the cluster and that Kerberos is not used in communicating with the remote machines.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload