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
following:
Configuration conf = new Configuration();
FileSystem fs = get (conf);
And then, you can access file system through fs. Refer java doc for more
details.
Regards.
Mafish
On Wed, Jul 2, 2008 at 6:20 AM, <[EMAIL PROTECTED]> 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
>
>
>
--
[EMAIL PROTECTED]
Institute of Computing Technology, Chinese Academy of Sciences, Beijing.