Return-Path: X-Original-To: apmail-hadoop-hdfs-user-archive@minotaur.apache.org Delivered-To: apmail-hadoop-hdfs-user-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 9B6279378 for ; Tue, 11 Oct 2011 15:42:44 +0000 (UTC) Received: (qmail 44511 invoked by uid 500); 11 Oct 2011 15:42:43 -0000 Delivered-To: apmail-hadoop-hdfs-user-archive@hadoop.apache.org Received: (qmail 44466 invoked by uid 500); 11 Oct 2011 15:42:43 -0000 Mailing-List: contact hdfs-user-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hdfs-user@hadoop.apache.org Delivered-To: mailing list hdfs-user@hadoop.apache.org Received: (qmail 44458 invoked by uid 99); 11 Oct 2011 15:42:43 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Oct 2011 15:42:43 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS,URIBL_RED X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of arkoprovomukherjee@gmail.com designates 209.85.216.48 as permitted sender) Received: from [209.85.216.48] (HELO mail-qw0-f48.google.com) (209.85.216.48) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Oct 2011 15:42:37 +0000 Received: by qadb14 with SMTP id b14so7216276qad.35 for ; Tue, 11 Oct 2011 08:42:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=subject:references:from:content-type:x-mailer:in-reply-to :message-id:date:to:content-transfer-encoding:mime-version; bh=dXGsyLcW0J8UOKTYGvzOioWbWW8OKaTKQk9JI39Z43Q=; b=QKx/MdiIsVdc3mNC7HTbW9QQONkbKnbSTvREJycuq7p5sgODcpl0Ts6ANezgnLlzeC atfx/iHouB6IDvA24Xz5OnMlKfodnT0+WFzTBwOnHYT6zUCA6t0pGcMp5vw8hd/Y7Ula XkVxI4Fg5nHGiZERG4IjB3QYz51gTAjvZdHAc= Received: by 10.224.70.203 with SMTP id e11mr10669766qaj.55.1318347737128; Tue, 11 Oct 2011 08:42:17 -0700 (PDT) Received: from [192.168.1.144] (173-17-186-90.client.mchsi.com. [173.17.186.90]) by mx.google.com with ESMTPS id d20sm27962090qak.10.2011.10.11.08.42.14 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 11 Oct 2011 08:42:14 -0700 (PDT) Subject: Re: FileSystem API for 0.19 References: From: Arko Provo Mukherjee Content-Type: text/plain; charset=us-ascii X-Mailer: iPhone Mail (8C148) In-Reply-To: Message-Id: <4352C4DD-BF05-4D71-9D04-2E105AA2C545@gmail.com> Date: Tue, 11 Oct 2011 10:42:09 -0500 To: "hdfs-user@hadoop.apache.org" Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (iPhone Mail 8C148) Hi, Yeah, I fixed the problem, I compiled against the incorrect jars. The reason I use 0.19 is that the cloud I have access to is still being main= tained at 0.19 :( Thanks much! Warm regards Arko On Oct 10, 2011, at 9:34 PM, Harsh J wrote: > Arko, >=20 > It helps if we know what "doesn't work" means, and if we can see > stacktraces [0], and what your steps were for execution that lead to > it 'not working'. >=20 > My best guess in the dark would be that you are not using the right > client jars when communicating with either of the HDFS servers. Due to > incompatible changes to the HDFS protocols used within, inter-version > talk between 0.19 and 0.20 isn't possible. You need a separate client > prepared for each. >=20 > Besides, why are you interested in using 0.19, as it is now unmaintained? >=20 > [0] - http://imgur.com/jacoj [J/K] >=20 > On Tue, Oct 11, 2011 at 3:24 AM, Arko Provo Mukherjee > wrote: >> Hello, >> I am using the FS API to write into files in HDFS. >>=20 >> FileSystem fs =3D FileSystem.get(jobconf); >>=20 >> Path pt =3D new Path(some_string); >>=20 >> BufferedWriter wr =3D new BufferedWriter(new >> OutputStreamWriter(fs.create(pt,true))); >>=20 >> C_init.write("Hello!"); >>=20 >> This works wells in Hadoop 0.20.203.0 but doesn't work for 0.19. >>=20 >> Please help! >>=20 >> Many thanks in advance! >>=20 >> Warm regards >>=20 >> Arko >=20 >=20 >=20 > --=20 > Harsh J