AnsweredAssumed Answered

MaprFS URI

Question asked by zsolt.kovacs on Oct 23, 2017
Latest reply on Nov 8, 2017 by jbubier

Using MapR 5.0.0.32987.GA and I try get some notification when MaprFS path changes, and try to run this code below, with all possible uri syntax described in link below:

// http://doc.mapr.com/display/MapR/Accessing+MapR-FS+in+Java+Applications
String uri = "maprfs:///";
HdfsAdmin admin = new HdfsAdmin(URI.create(uri), new Configuration());
DFSInotifyEventInputStream eventStream = admin.getInotifyEventStream(0);

but I get Exception:

Exception in thread "main" java.lang.IllegalArgumentException: 'maprfs:///' is not an HDFS URI.

    at org.apache.hadoop.hdfs.client.HdfsAdmin.(HdfsAdmin.java:69)

    at HdfsINotify.main(HdfsINotify.java:26)

 

What I'm missing?

Outcomes