List of usage examples for org.apache.hadoop.hdfs DFSConfigKeys DFS_REPLICATION_DEFAULT
short DFS_REPLICATION_DEFAULT
To view the source code for org.apache.hadoop.hdfs DFSConfigKeys DFS_REPLICATION_DEFAULT.
Click Source Link
From source file:com.bigstep.datalake.DLFileSystem.java
License:Apache License
@Override public short getDefaultReplication() { return (short) getConf().getInt(DFSConfigKeys.DFS_REPLICATION_KEY, DFSConfigKeys.DFS_REPLICATION_DEFAULT); }
From source file:io.hops.erasure_coding.BasicClusterTestCase.java
License:Apache License
@Override public void setUp() throws Exception { cluster = new MiniDFSCluster.Builder(getConf()) .numDataNodes(//www . j ava 2 s . c om getConf().getInt(DFSConfigKeys.DFS_REPLICATION_KEY, DFSConfigKeys.DFS_REPLICATION_DEFAULT)) .build(); cluster.waitActive(); dfs = cluster.getFileSystem(); }
From source file:net.arp7.HdfsPerfTest.WriteFileParameters.java
License:Apache License
/** * Initialize some write parameters from the configuration. * * @param conf//from ww w . j a v a 2s.c o m */ private void initDefaultsFromConfiguration(Configuration conf) { blockSize = conf.getLong(DFSConfigKeys.DFS_BLOCK_SIZE_KEY, DFSConfigKeys.DFS_BLOCK_SIZE_DEFAULT); replication = conf.getLong(DFSConfigKeys.DFS_REPLICATION_KEY, DFSConfigKeys.DFS_REPLICATION_DEFAULT); }