List of usage examples for org.apache.hadoop.hdfs.client HdfsAdmin getInotifyEventStream
public DFSInotifyEventInputStream getInotifyEventStream() throws IOException
From source file:hdfs.jsr203.HadoopWatchService.java
License:Apache License
public HadoopWatchService(HadoopFileSystem fileSystem) throws IOException { this.fileSystem = fileSystem; HdfsAdmin dfs = new HdfsAdmin(fileSystem.getHDFS().getUri(), fileSystem.getHDFS().getConf()); stream = dfs.getInotifyEventStream(); }