@Override public void initialize(URI name, Configuration conf) throws IOException { initialize(name, conf, newLocalFileSystem(conf, config.isLocalAccessAllowed())); }
/** * Create a new PDFS protocol instance. * * @param endpoint the local endpoint * @param config the Sabot configuration * @param allocator the memory allocator to use. The caller is in charge of closing it * @return the protocol * @throws IOException */ public static PDFSProtocol newInstance(NodeEndpoint endpoint, SabotConfig config, BufferAllocator allocator, boolean allowLocalHandling) throws IOException { // we'll grab a raw local file system so append is supported (rather than // the checksum local file system). Configuration conf = new Configuration(); return new PDFSProtocol(endpoint, config, allocator, PseudoDistributedFileSystem.newLocalFileSystem(conf, allowLocalHandling), allowLocalHandling, Ticker.systemTicker()); }