hadoop-hdfs-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Lok <fula...@gmail.com>
Subject Specifying username using ClientProtocol
Date Tue, 17 Jan 2012 03:14:09 GMT
Hi folks,

I'm trying to connect to a NameNode using Hadoop's RPC ClientProtocol
class.  Code below:

InetSocketAddress address = new InetSocketAddress("namenode", 9000);

Configuration conf = new Configuration();

ClientProtocol client =
	(ClientProtocol) RPC.waitForProxy(ClientProtocol.class,
ClientProtocol.versionID, address, conf);


Unfortunately, my currently logged in user name is not the user who's
configured on the server; hence the following exception:

org.apache.hadoop.security.AccessControlException: Access denied for
user mike. Superuser privilege is required

Is there a configuration property key I can set in the configuration
object to override the system username?


View raw message