hadoop-common-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mafish Liu" <maf...@gmail.com>
Subject Re: how to setup hadoop client?
Date Wed, 02 Jul 2008 02:50:40 GMT
Hi, yun:
    In shell, you can use bin/hadoop dfs -ls to list directory.
    If you want to access dfs in your code, you need write code as

Configuration conf = new Configuration();
FileSystem fs = get (conf);

    And then, you can access file system through fs. Refer java doc for more


On Wed, Jul 2, 2008 at 6:20 AM, <Yun.Chew@sun.com> wrote:

> Hi all,
> I am a newbie to hadoop, and am setting up a multi-node cluster.  I have a
> trivial question on the HDFS.     In the hadoop doc it has a diagram showing
> the client performs a read/write to the dfs, but it isn't clear to me on how
> the client will be setup.  I assume you will have to install the hadoop
> binaries, and connect to the namenode (master) to access the dfs, like this:
> #  ./hadoop dfs -fs hdfs://<master-hostname>:9000 -ls /
> I need to do benchmark on create/read/write operations on hadoop dfs.  Any
> pointers appreciated.  Thanks in advance!
> -Yun

Institute of Computing Technology, Chinese Academy of Sciences, Beijing.

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message