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 688E4101DC for ; Sat, 30 Nov 2013 10:06:03 +0000 (UTC) Received: (qmail 12343 invoked by uid 500); 30 Nov 2013 10:05:55 -0000 Delivered-To: apmail-hadoop-hdfs-user-archive@hadoop.apache.org Received: (qmail 11757 invoked by uid 500); 30 Nov 2013 10:05:52 -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 11747 invoked by uid 99); 30 Nov 2013 10:05:51 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 30 Nov 2013 10:05:51 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,MIME_QP_LONG_LINE,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of yuzhihong@gmail.com designates 209.85.192.181 as permitted sender) Received: from [209.85.192.181] (HELO mail-pd0-f181.google.com) (209.85.192.181) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 30 Nov 2013 10:05:45 +0000 Received: by mail-pd0-f181.google.com with SMTP id p10so14962782pdj.40 for ; Sat, 30 Nov 2013 02:05:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=references:mime-version:in-reply-to:content-type :content-transfer-encoding:message-id:cc:from:subject:date:to; bh=uOD59h+v5vBFMVXsmbwblhVswaH3gbnIXhUs8I2mmrw=; b=B1AMjWNewaYcP6S3X10XDqy+xgk3rardetv/StvElTENCfOw9TmFC6zlDpVis6QcEE fc/BumeR2TmmZQtJ9fxiy88RMSmJuoSIL4JwOH9X7sradJsIfMmuJtTbMefXoaJAMB9t UihJfYcnXU++SNMDHAge01cxi8pTqWhZKuahUPqMefymgKrLcUNQjKQYAFXs+CLxNQKF nF35Z/whSIuW921ev2tE+HZviUPVCuj5M2OSrTVZ32HaniUP8xB0ar8acBYIOB6OP7yJ HNH595eXdy8cKsdOf7OUkCVGoj6utn3YoJMvun8GBJzXvry3zhxzr9IcwWfz+F9IKMe4 07eQ== X-Received: by 10.66.161.194 with SMTP id xu2mr37409423pab.120.1385805924646; Sat, 30 Nov 2013 02:05:24 -0800 (PST) Received: from [192.168.0.10] (c-24-130-236-83.hsd1.ca.comcast.net. [24.130.236.83]) by mx.google.com with ESMTPSA id ie6sm81618797pbc.6.2013.11.30.02.05.21 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 30 Nov 2013 02:05:21 -0800 (PST) References: Mime-Version: 1.0 (1.0) In-Reply-To: Content-Type: multipart/alternative; boundary=Apple-Mail-CA60203D-2330-401D-AC64-881B5A54BD6D Content-Transfer-Encoding: 7bit Message-Id: <287BA667-D45D-4E60-927E-098285D87F53@gmail.com> Cc: User Hadoop X-Mailer: iPhone Mail (10B146) From: Ted Yu Subject: Re: Folder creation using Path in MR java code Date: Sat, 30 Nov 2013 02:05:19 -0800 To: "user@hadoop.apache.org" X-Virus-Checked: Checked by ClamAV on apache.org --Apple-Mail-CA60203D-2330-401D-AC64-881B5A54BD6D Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Take a look at this API (and its variants): http://hadoop.apache.org/docs/current/api/org/apache/hadoop/fs/FileSystem.ht= ml#create(org.apache.hadoop.fs.Path,%20boolean) On Nov 30, 2013, at 12:54 AM, unmesha sreeveni wrote= : > Hi all > How to create a folder in hdfs using java code >=20 > I tried >=20 > Path folder =3D new Path("dir1"); >=20 > But it is not created in hdfs. And i also tried it in eclipse. There also t= he folder is not creating. > =20 >=20 > --=20 > Thanks & Regards >=20 > Unmesha Sreeveni U.B > Junior Developer >=20 >=20 --Apple-Mail-CA60203D-2330-401D-AC64-881B5A54BD6D Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable
Take a look at this API (and its varia= nts):
http://hadoop.apache.org/docs/current/api/org/apache/hadoop= /fs/FileSystem.html#create(org.apache.hadoop.fs.Path,%20boolean)<= /div>

On Nov 30, 2013, at 12:54 AM, unmesha sreeveni <unmeshabiju@gmail.com> wrote:

Hi all
      &nb= sp;  How to create a folder in hdfs using java code

I tried

Path folder =3D new Path("dir1");

But it is not created in hdfs. And i al= so tried it in eclipse. There also the folder is not creating.
 =

--
Thanks & Regards

Unmesha Sreeveni U.B
Junior Developer

<= /div>
= --Apple-Mail-CA60203D-2330-401D-AC64-881B5A54BD6D--