Example usage for org.apache.hadoop.hdfs.client HdfsAdmin getInotifyEventStream

List of usage examples for org.apache.hadoop.hdfs.client HdfsAdmin getInotifyEventStream

Introduction

In this page you can find the example usage for org.apache.hadoop.hdfs.client HdfsAdmin getInotifyEventStream.

Prototype

public DFSInotifyEventInputStream getInotifyEventStream() throws IOException 

Source Link

Document

Exposes a stream of namesystem events.

Usage

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();
}