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 1C8BD95DB for ; Tue, 7 Feb 2012 22:25:32 +0000 (UTC) Received: (qmail 52427 invoked by uid 500); 7 Feb 2012 22:25:28 -0000 Delivered-To: apmail-hadoop-common-user-archive@hadoop.apache.org Received: (qmail 52356 invoked by uid 500); 7 Feb 2012 22:25:28 -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 52348 invoked by uid 99); 7 Feb 2012 22:25:27 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Feb 2012 22:25:27 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of iefinkel@gmail.com designates 209.85.210.176 as permitted sender) Received: from [209.85.210.176] (HELO mail-iy0-f176.google.com) (209.85.210.176) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Feb 2012 22:25:18 +0000 Received: by iagz35 with SMTP id z35so14683082iag.35 for ; Tue, 07 Feb 2012 14:24:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; bh=LZ5yUPKZv7O4KeHYx0hweGUoJw8W7SOOKD695tsYTyQ=; b=fYPQGnWyjXw7VRfqpH4owH84TMiGjkr5CuwR55/yXRSMW7BgTxBU/km3b/4DkpCBTY 3BAMTSUhlv91pA8wAPPJarE6Ip/zGkaE1VZ3Q5FC1shrAa3SlErtDbCuYNChGck/ZZXr TlML9qsU0RKLZUbZ8GYlPX/AKJIaERY/2oIXI= Received: by 10.42.165.135 with SMTP id k7mr27641356icy.32.1328653497878; Tue, 07 Feb 2012 14:24:57 -0800 (PST) Received: from Eli-Finkelshteyns-MacBook-Pro.local ([38.112.1.90]) by mx.google.com with ESMTPS id vr4sm23287193igb.1.2012.02.07.14.24.56 (version=SSLv3 cipher=OTHER); Tue, 07 Feb 2012 14:24:57 -0800 (PST) Message-ID: <4F31A4B7.10508@gmail.com> Date: Tue, 07 Feb 2012 17:24:55 -0500 From: Eli Finkelshteyn User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:9.0) Gecko/20111222 Thunderbird/9.0.1 MIME-Version: 1.0 To: common-user@hadoop.apache.org Subject: Checking Which Filesystem Being Used? Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Hi Folks, This might be a stupid question, but I'm new to Java and Hadoop, so... Anyway, if I want to check what FileSystem is currently being used at some point (i.e. evaluating FileSystem.get(conf)), what would be the most elegant way of doing that? Should I just do something like: if (FileSystem.get(conf) == "HDFS") {...} Or is there a better way? Eli