AnsweredAssumed Answered

Windows MapR 6.0.0 getFileStatus give incorrect results

Question asked by csp on Jan 15, 2018
Latest reply on Jan 19, 2018 by csp

I'm using a MapR 5.2.0 sandbox in Virtual Box on windows 10 and windows client version 6.0.0, logged in as 'mapr'.

I have a simple java application to print out owner and group information for a given path:

Configuration conf = new Configuration();
FileSystem fs = FileSystem.get(conf);
Path path = new Path("/var/mapr/cluster/yarn/rm/staging/mapr/.staging");
FileStatus status = fs.getFileStatus(path);
System.out.println(status.getPath() + " - " + status.getOwner() + ":" + status.getGroup());

the results of consecutive runs:

maprfs:///var/mapr/cluster/yarn/rm/staging/mapr/.staging - ð ,:root
maprfs:///var/mapr/cluster/yarn/rm/staging/mapr/.staging - root:root
maprfs:///var/mapr/cluster/yarn/rm/staging/mapr/.staging - :root
maprfs:///var/mapr/cluster/yarn/rm/staging/mapr/.staging - root:Ð
maprfs:///var/mapr/cluster/yarn/rm/staging/mapr/.staging - Ð :Ð
maprfs:///var/mapr/cluster/yarn/rm/staging/mapr/.staging - :
maprfs:///var/mapr/cluster/yarn/rm/staging/mapr/.staging - Ð :root
...

As you can see, it is far from deterministic and never gives you the correct values (mapr:mapr):

[root@maprdemo ~]# hadoop fs -ls -R /var/mapr/cluster/yarn/rm/staging/mapr/
drwx------ - mapr mapr 0 2018-01-12 07:04 /var/mapr/cluster/yarn/rm/staging/mapr/.staging

 

Any ideas?

Outcomes