Return-Path: X-Original-To: apmail-hadoop-common-user-archive@www.apache.org Delivered-To: apmail-hadoop-common-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id BDB66CF73 for ; Mon, 1 Jul 2013 06:21:34 +0000 (UTC) Received: (qmail 6887 invoked by uid 500); 1 Jul 2013 06:21:29 -0000 Delivered-To: apmail-hadoop-common-user-archive@hadoop.apache.org Received: (qmail 6311 invoked by uid 500); 1 Jul 2013 06:21:26 -0000 Mailing-List: contact user-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@hadoop.apache.org Delivered-To: mailing list user@hadoop.apache.org Received: (qmail 6297 invoked by uid 99); 1 Jul 2013 06:21:25 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 Jul 2013 06:21:25 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,MSGID_FROM_MTA_HEADER,RCVD_IN_DNSWL_NONE X-Spam-Check-By: apache.org Received-SPF: error (athena.apache.org: local policy) Received: from [65.55.111.95] (HELO blu0-omc2-s20.blu0.hotmail.com) (65.55.111.95) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 Jul 2013 06:21:18 +0000 Received: from BLU0-SMTP36 ([65.55.111.71]) by blu0-omc2-s20.blu0.hotmail.com with Microsoft SMTPSVC(6.0.3790.4675); Sun, 30 Jun 2013 23:20:37 -0700 X-EIP: [xPyMiYyfZnrW7H0xP3Xu4H33LoElsBsd] X-Originating-Email: [francis.hu@reachjunction.com] Message-ID: Received: from testPC ([14.145.188.61]) by BLU0-SMTP36.phx.gbl over TLS secured channel with Microsoft SMTPSVC(6.0.3790.4675); Sun, 30 Jun 2013 23:20:10 -0700 From: Francis.Hu To: Subject: a question about dfs.replication Date: Mon, 1 Jul 2013 14:19:31 +0800 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_000F_01CE7666.257E0280" X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: Ac52IvIJJrj6xQIuShWcIsE2D0rHmw== Content-Language: en-us x-cr-hashedpuzzle: AuBV Awzq A6sn BOkW BrZQ B5fH Cpqe DQU7 EEDh Ex3E E9dH Fo6P GPWO IT0/ IdEI JJZI;1;dQBzAGUAcgBAAGgAYQBkAG8AbwBwAC4AYQBwAGEAYwBoAGUALgBvAHIAZwA=;Sosha1_v1;7;{51929F68-6A1C-46D3-9073-660B55D66AB1};ZgByAGEAbgBjAGkAcwAuAGgAdQBAAHIAZQBhAGMAaABqAHUAbgBjAHQAaQBvAG4ALgBjAG8AbQA=;Mon, 01 Jul 2013 06:19:30 GMT;YQAgAHEAdQBlAHMAdABpAG8AbgAgAGEAYgBvAHUAdAAgAGQAZgBzAC4AcgBlAHAAbABpAGMAYQB0AGkAbwBuAA== x-cr-puzzleid: {51929F68-6A1C-46D3-9073-660B55D66AB1} X-OriginalArrivalTime: 01 Jul 2013 06:20:34.0016 (UTC) FILETIME=[18131600:01CE7623] X-Virus-Checked: Checked by ClamAV on apache.org ------=_NextPart_000_000F_01CE7666.257E0280 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Hi, All I am installing a cluster with Hadoop 2.0.5-alpha. I have one namenode and two datanodes. The dfs.replication is set as 2 in hdfs-site.xml. After all configuration work is done, I started all nodes. Then I saved a file into HDFS through java client. nOW I can access hdfs web page: x.x.x.x:50070,and also see the file is already listed in the hdfs list. My question is: The replication column in HDFS web page is showing as 3, not 2. Does anyone know What the problem is? ---Actual setting of hdfs-site.xml dfs.replication 2 After that, I typed dfsamdin command to check the file: hdfs fsck /test3/ The result of above command: /test3/hello005.txt: Under replicated BP-609310498-192.168.219.129-1372323727200:blk_-1069303317294683372_1006. Target Replicas is 3 but found 2 replica(s). Status: HEALTHY Total size: 35 B Total dirs: 1 Total files: 1 Total blocks (validated): 1 (avg. block size 35 B) Minimally replicated blocks: 1 (100.0 %) Over-replicated blocks: 0 (0.0 %) Under-replicated blocks: 1 (100.0 %) Mis-replicated blocks: 0 (0.0 %) Default replication factor: 2 Average block replication: 2.0 Corrupt blocks: 0 Missing replicas: 1 (33.333332 %) Number of data-nodes: 3 Number of racks: 1 FSCK ended at Sat Jun 29 16:51:37 CST 2013 in 6 milliseconds Thanks, Francis Hu ------=_NextPart_000_000F_01CE7666.257E0280 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Hi, All

 

I am installing a cluster with = Hadoop 2.0.5-alpha. I have one namenode and two datanodes. The dfs.replication = is set as 2 in = hdfs-site.xml. After all configuration work is done, I started all nodes. Then I saved = a file into HDFS through java client. nOW I can access hdfs web page: x.x.x.x:50070,and also see the file is already listed in the hdfs = list.

My question is:  The = replication column in HDFS web page is showing as 3, not 2.  Does anyone know = What the problem is?

 

---Actual setting of = hdfs-site.xml

<property>

<name>dfs.replication</name>

<value>2</value>

</property>

 

After that, I typed dfsamdin = command to check the file:

hdfs fsck = /test3/

The result of above = command:

/test3/hello005.txt:  Under replicated BP-609310498-192.168.219.129-1372323727200:blk_-1069303317294683372_1006.= Target Replicas is 3 but found 2 replica(s).

Status: HEALTHY

 Total size:    35 B

 Total dirs:    1

 Total files:   1

 Total blocks (validated):      1 = (avg. block size 35 B)

 Minimally replicated blocks:   1 (100.0 = %)

 Over-replicated = blocks:        0 (0.0 %)

 Under-replicated = blocks:       1 (100.0 %)

 Mis-replicated blocks:         0 (0.0 = %)

 Default replication factor:    = 2

 Average block replication:     = 2.0

 Corrupt blocks:           =      0

 Missing replicas:          &nbs= p;   1 (33.333332 %)

 Number of data-nodes:          = 3

 Number of racks:           &= nbsp;   1

FSCK ended at Sat Jun 29 16:51:37 CST 2013 in 6 = milliseconds

 

 

Thanks,

Francis Hu

 

------=_NextPart_000_000F_01CE7666.257E0280--