Re: Running Hadoop client as a different user

2013-05-20 Thread Steve Lewis
I Found it works with the following You need to be in a thread as a PrivilegedExceptionAction final String user = ; UserGroupInformation uig = UserGroupInformation.createRemoteUser(user); try { return uig.doAs(new PrivilegedExceptionAction() { public ReturnType ru

Re: Running Hadoop client as a different user

2013-05-17 Thread Harsh J
Am not sure I'm getting your problem yet, but mind sharing the error you see specifically? That'd give me more clues. On Fri, May 17, 2013 at 2:39 PM, Steve Lewis wrote: > Here is the issue - > 1 - I am running a Java client on a machine unknown to the cluster - my > default name on this pc is >

Re: Running Hadoop client as a different user

2013-05-17 Thread Steve Lewis
Here is the issue - 1 - I am running a Java client on a machine unknown to the cluster - my default name on this pc is HYPERCHICKEN\local_admin - the name known to the cluster is slewis 2 Thew listed code String connectString = "hdfs://" + host + ":" + port + "/";* Configuration con

Re: Running Hadoop client as a different user

2013-05-13 Thread Harsh J
Hi Steve, A normally-written client program would work normally on both permissions and no-permissions clusters. There is no concept of a "password" for users in Apache Hadoop as of yet, unless you're dealing with a specific cluster that has custom-implemented it. Setting a specific user is not t

Running Hadoop client as a different user

2013-05-13 Thread Steve Lewis
-- I have been running Hadoop on a clister set to not check permissions. I would run a java client on my local machine and would run as the local user on the cluster. I say * String connectString = "hdfs://" + host + ":" + port + "/";* *Configuration config = new Configuration()