api - How to set hadoop replication in java client by class org.apache.hadoop.conf.Configuration? -
i utilize java api client upload files ,but set dfs.replication
3,as result when utilize command (hadoop dfsadmin -report) check situation,all blocks under replication factor,because have 2 info nodes test.
i want know how set hadoop dfs.replication in java client class org.apache.hadoop.conf.configuration
or in way? give thanks help!
according java api hadoop filesystem class can specify replication factor file when creating output stream write file cluster. e.g.
create(path f, short replication)
i cannot test locally have zookeeper node running here.
java api file-upload replication
No comments:
Post a Comment