Return-Path: Delivered-To: apmail-hadoop-common-user-archive@www.apache.org Received: (qmail 45734 invoked from network); 27 Oct 2009 10:55:52 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 27 Oct 2009 10:55:52 -0000 Received: (qmail 70292 invoked by uid 500); 27 Oct 2009 10:55:46 -0000 Delivered-To: apmail-hadoop-common-user-archive@hadoop.apache.org Received: (qmail 70143 invoked by uid 500); 27 Oct 2009 10:55:46 -0000 Mailing-List: contact common-user-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: common-user@hadoop.apache.org Delivered-To: mailing list common-user@hadoop.apache.org Received: (qmail 70107 invoked by uid 500); 27 Oct 2009 10:55:46 -0000 Delivered-To: apmail-hadoop-core-user@hadoop.apache.org Received: (qmail 70098 invoked by uid 99); 27 Oct 2009 10:55:46 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 27 Oct 2009 10:55:46 +0000 X-ASF-Spam-Status: No, hits=-2.0 required=5.0 tests=AWL,BAYES_00,NORMAL_HTTP_TO_IP,WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of dachuy@gmail.com designates 209.85.222.177 as permitted sender) Received: from [209.85.222.177] (HELO mail-pz0-f177.google.com) (209.85.222.177) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 27 Oct 2009 10:55:43 +0000 Received: by pzk7 with SMTP id 7so8381pzk.30 for ; Tue, 27 Oct 2009 03:55:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=yCv8wo6qz3wprqVujt5xBdp7zNmHeKAssu1lSJLbNek=; b=rPewrGXbQ5H6l8J9ikwD01i0Un5RtHlHQXEweeJHHs3dePNKen1WFxBmhF7pF8s/H7 kJcgggpfKgBOzEWUXSEETzx0A/nU5vwdsfdnCyz7ESD9qi00fmZ6fpdBYibDHBX5+PF5 cebB1u23c8vtz/W0L4azfDybTIX1ZNntivPoo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; b=LUaGmBRGOLNtJiBHAPo8+Y4uNg5+SzwRfU4/HfQfcpvkvfCq4h7qpiBWW0eS2MeAqK MGvU/TPmoSU4MOBMSoSCVofCnUMlbfmxCVomgITrShWa5tlEOnnxZnUWLtiI+vsW2svf UIWTt7ABy/tezA3VQzN8m1ju5yEwqhxyozvKA= Received: by 10.114.248.20 with SMTP id v20mr4123957wah.132.1256640921982; Tue, 27 Oct 2009 03:55:21 -0700 (PDT) Received: from ?192.168.0.204? ([118.69.225.56]) by mx.google.com with ESMTPS id 23sm816803pzk.4.2009.10.27.03.55.19 (version=SSLv3 cipher=RC4-MD5); Tue, 27 Oct 2009 03:55:20 -0700 (PDT) Message-ID: <4AE6D1BD.8080005@gmail.com> Date: Tue, 27 Oct 2009 17:55:57 +0700 From: Huy Phan User-Agent: Thunderbird 2.0.0.23 (X11/20090817) MIME-Version: 1.0 To: "Zhang Bingjun (Eddy)" CC: common-user@hadoop.apache.org, core-user@hadoop.apache.org, hdfs-dev@hadoop.apache.org, hdfs-user@hadoop.apache.org Subject: Re: Mount WebDav in Linux for HDFS-0.20.1 References: In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Hi Zhang, Here is the patch for davfs2 to solve "server does not support WebDAV" issue: diff --git a/src/webdav.c b/src/webdav.c index 8ec7a2d..4bdaece 100644 --- a/src/webdav.c +++ b/src/webdav.c @@ -472,7 +472,7 @@ dav_init_connection(const char *path) if (!ret) { initialized = 1; - if (!caps.dav_class1 && !caps.dav_class2 && !ignore_dav_header) { + if (!caps.dav_class1 && !ignore_dav_header) { if (have_terminal) { error(EXIT_FAILURE, 0, _("mounting failed; the server does not support WebDAV")); davfs2 and webdav is not a good mix actually, I had tried to mix them together and the performance were really bad. With the load test of 10 requests/s, load average on my namenode were always > 15 and it took me about 5 mins for `ls` the root directory of HDFS during the test. Since you're using Hadoop 0.20.1, it's better to use fusedfs library provided in Hadoop package. You have to do some tricks to compile fusedfs with Hadoop, otherwise it would take you a lot of time for compiling redundant things. Best, Huy Phan Zhang Bingjun (Eddy) wrote: > Dear Huy Phan and others, > > Thanks a lot for your efforts in customizing the WebDav server > and make it work for > Hadoop-0.20.1. > > After setting up the WebDav server, I could access it using Cadaver > client in Ubuntu without using any username password. Operations like > deleting files, etc, were working. The command is: *cadaver > http://server:9800* > > However, when I was trying to mount the WebDav server using davfs2 in > Ubuntu, I always get the following error: > "mount.davfs: mounting failed; the server does not support WebDAV". > > I was promoted to input username and password like below: > hadoop@hdfs2:/mnt$ sudo mount.davfs http://192.168.0.131:9800/test > hdfs-webdav/ > Please enter the username to authenticate with server > http://192.168.0.131:9800/test or hit enter for none. > Username: hadoop > Please enter the password to authenticate user hadoop with server > http://192.168.0.131:9800/test or hit enter for none. > Password: > mount.davfs: mounting failed; the server does not support WebDAV > > Even though I have tried all possible usernames and passwords either > from the WebDAV accounts.properties file or from the Ubuntu system of > the WebDAV server, I still got this error message. > > Could you and anyone give me some hints on this problem? How could I > solve it? Very much appreciate your help! > > Best regards, > Zhang Bingjun (Eddy) > > E-mail: eddymier@gmail.com , > bingjun@nus.edu.sg , > bingjun@comp.nus.edu.sg > Tel No: +65-96188110 (M)