Example usage for org.apache.hadoop.fs FsServerDefaults FsServerDefaults

List of usage examples for org.apache.hadoop.fs FsServerDefaults FsServerDefaults

Introduction

In this page you can find the example usage for org.apache.hadoop.fs FsServerDefaults FsServerDefaults.

Prototype

public FsServerDefaults(long blockSize, int bytesPerChecksum, int writePacketSize, short replication,
            int fileBufferSize, boolean encryptDataTransfer, long trashInterval, DataChecksum.Type checksumType) 

Source Link

Usage

From source file:com.ibm.crail.hdfs.CrailHDFS.java

License:Apache License

@Override
public FsServerDefaults getServerDefaults() throws IOException {
    return new FsServerDefaults(CrailConstants.BLOCK_SIZE, 512, 64 * 1024, (short) 1, 4096, false, (long) 0,
            DataChecksum.Type.CRC32);
}

From source file:org.apache.ignite.hadoop.fs.v2.IgniteHadoopFileSystem.java

License:Apache License

/** {@inheritDoc} */
@Override/*from ww w  . j av  a2s.  com*/
public FsServerDefaults getServerDefaults() throws IOException {
    return new FsServerDefaults(grpBlockSize, (int) grpBlockSize, (int) grpBlockSize, dfltReplication,
            64 * 1024, false, 0, DataChecksum.Type.NULL);
}