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 8455C101EF for ; Sun, 15 Dec 2013 00:39:18 +0000 (UTC) Received: (qmail 69936 invoked by uid 500); 15 Dec 2013 00:39:13 -0000 Delivered-To: apmail-hadoop-common-user-archive@hadoop.apache.org Received: (qmail 69841 invoked by uid 500); 15 Dec 2013 00:39:13 -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 69834 invoked by uid 99); 15 Dec 2013 00:39:13 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 15 Dec 2013 00:39:13 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of zhunansjtu@gmail.com designates 209.85.128.49 as permitted sender) Received: from [209.85.128.49] (HELO mail-qe0-f49.google.com) (209.85.128.49) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 15 Dec 2013 00:39:05 +0000 Received: by mail-qe0-f49.google.com with SMTP id w7so2828437qeb.8 for ; Sat, 14 Dec 2013 16:38:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:message-id:subject:mime-version:content-type; bh=1AnlGxwqqwCIy9xRDLCL6Jq5GfBQcnEL7hXiQa9rzV0=; b=JSpFBxYdUI8DyoRGHMmLK5Q7FIy6M+I9CWnhiVQEnFV/sYDkJbHy/3YSPrxUQ5nMzT 5pSPCHfdoTPKR6Q/EkfzOrNvAt3DnTzgta1bKkYzDKEyB2UiVQnBM8AEQaVehnirCUGO rryI8+29aU0i0IhmA9m0HuPN9IVNlFJjcVyodT+XSaINnmtcn2UR4CxVOL8zn+JXTaFI 6v+giWagJ5l2Y59MHow+CTmlwbALOebh79IAj4CyKQywWfSvFNGEJb+RU/3z4K/pGPOB wX/MxkuBsT3SelVnMzpEi25XqzIy/xh28JfeMK+fdS8ma1WP0gsDJln2bDu7YUVVhM0W SHkQ== X-Received: by 10.224.124.74 with SMTP id t10mr19279993qar.40.1387067924636; Sat, 14 Dec 2013 16:38:44 -0800 (PST) Received: from [192.168.2.10] (bas3-montreal42-1242353694.dsl.bell.ca. [74.12.208.30]) by mx.google.com with ESMTPSA id u17sm23127274qeb.4.2013.12.14.16.38.43 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Sat, 14 Dec 2013 16:38:43 -0800 (PST) Date: Sat, 14 Dec 2013 19:53:03 -0500 From: Nan Zhu To: "=?utf-8?Q?common-user=40hadoop.apache.org?=" Message-ID: <5095FF6085B64E03B2A61C5F13EFFE0D@gmail.com> Subject: manipulate DFSInputStream in FSDataInputStream? X-Mailer: sparrow 1.6.4 (build 1176) MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="52acfd6f_5ff87e05_1af" X-Virus-Checked: Checked by ClamAV on apache.org --52acfd6f_5ff87e05_1af Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi, all =20 I=E2=80=99m modifying =46SDataInputStream for some project, =20 I would like to directly manipulate =E2=80=9Cin=22 object in my implement= ation =20 as in the constructor a D=46SInputStream is passed, so I convert =E2=80=9C= in=E2=80=9D from InputStream to D=46SInputStream with =20 import org.apache.hadoop.hdfs.D=46SClient; D=46SClient.D=46SInputStream dins =3D (D=46SClient.D=46SInputStream) in; dins.somemethod(=E2=80=A6) when I compile my code with ant it says that =20 =5Bjavac=5D /Users/zhunan/codes/SDNBigData/hadoop-1.2.1/src/core/org/apac= he/hadoop/fs/=46SDataInputStream.java:20: error: package org.apache.hadoo= p.hdfs does not exist =20 =5Bjavac=5D import org.apache.hadoop.hdfs.D=46SClient; What does this mean=3F it means that core is compiled before hdfs, so I cannot do this=3F Thank you very much=21 Best, -- =20 Nan Zhu School of Computer Science, McGill University --52acfd6f_5ff87e05_1af Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline
Hi, all

I=E2=80=99m modifying =46SDataI= nputStream for some project, 

I would like = to directly manipulate =E2=80=9Cin=22 object in my implementation 

as in the constructor a D=46SInputStream is passe= d, so I convert =E2=80=9Cin=E2=80=9D from InputStream to D=46SInputStream= with 

import org.apache.hadoop.hdfs.D=46SC= lient;

D=46SClient.D=46SInputStream dins =3D= (D=46SClient.D=46SInputStream) in;
dins.somemethod(=E2=80=A6)<= /div>

when I compile my code with ant
=
it says that 

=5Bjavac=5D /Users/zhun= an/codes/SDNBigData/hadoop-1.2.1/src/core/org/apache/hadoop/fs/=46SDataIn= putStream.java:20: error: package org.apache.hadoop.hdfs does not exist

  &n= bsp; =5Bjavac=5D import org.apache.hadoop.hdfs.D=46SClient;



What does this me= an=3F

it means that core is compiled before hdfs= , so I cannot do this=3F

Thank you very much=21<= /div>

Best,

-- 
Nan Zhu
School of Computer Science,
McGill Universi= ty

--52acfd6f_5ff87e05_1af--