error trying to setPermissions on hdfs file using api

2011-09-12 Thread Sateesh Lakkarsu
I can get the file path/permissions but unable to change permissions. Below is the snippet of code & error. What is the correct way of doing this? Thanks. FileSystem fileSystem = FileSystem.get(new Configuration()); FileStatus fileStatus = fileSystem.getFileStatus(new Path( "/tmp/hbase/bulk_out")

Re: error trying to setPermissions on hdfs file using api

2011-09-13 Thread Sateesh Lakkarsu
It as failing when I tried it on namenode/datanode too, so it was not the version issue. Could be unrelated, but came across https://issues.apache.org/jira/browse/HADOOP-7629 ... and tried without FsPermission.createImmutable but rather new FsPermission(511) and that works.

Re: refresh namenode topology cache

2012-01-31 Thread Sateesh Lakkarsu
We are using script based mapping and got the order wrong for a couple of nodes, will look into custom mapping class moving fwd. Thanks On Tue, Jan 31, 2012 at 12:42 AM, Harsh J wrote: > Sateesh, > > On Tue, Jan 31, 2012 at 12:24 AM, Sateesh Lakkarsu > wrote: > > A c