How to build and run my own test code of HDFS

2015-02-25 Thread Lipeng Wan
Dear all, I'm a beginner of HDFS development and trying to write my own test code of HDFS. For example, I modified the MiniDFSClusterManager class a little bit and try to execute it from command line. When I run "mvn test" under the hadoop-hdfs directory, it seems like all the existing test code c

Re: How to build and run my own test code of HDFS

2015-02-25 Thread Lipeng Wan
an find it? Lipeng On Wed, Feb 25, 2015 at 5:38 PM, Charles Lamb wrote: > On 2/25/2015 5:35 PM, Lipeng Wan wrote: >> >> Dear all, >> >> I'm a beginner of HDFS development and trying to write my own test >> code of HDFS. For example, I modified the MiniDFSCluster

Dose hdfs support the configuration that different blocks can have different number of replcias?

2015-03-03 Thread Lipeng Wan
Hi devs, By default, hdfs creates same number of replicas for each block. Is it possible for us to create more replicas for some of the blocks? Thanks! L. W.

Re: Dose hdfs support the configuration that different blocks can have different number of replcias?

2015-03-03 Thread Lipeng Wan
t; per-block. > > Andrew > > On Tue, Mar 3, 2015 at 11:23 AM, Lipeng Wan wrote: > >> Hi devs, >> >> By default, hdfs creates same number of replicas for each block. Is it >> possible for us to create more replicas for some of the blocks? >> Thanks! >> >> L. W. >>

Re: Dose hdfs support the configuration that different blocks can have different number of replcias?

2015-03-04 Thread Lipeng Wan
wrote: > Yup, definitely. Check out the -setrep command: > > http://hadoop.apache.org/docs/current/hadoop-project-dist/hadoop-common/FileSystemShell.html#setrep > > HTH, > Andrew > > On Tue, Mar 3, 2015 at 11:49 AM, Lipeng Wan wrote: > >> Hi Andrew, >> >> Th