hadoop-common-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sujit Dhamale <sujitdhamal...@gmail.com>
Subject Not able to Make directory in HDFS
Date Fri, 16 Mar 2012 17:53:37 GMT
i am not able to create Directory in Hadoop file system

while putting file only Directory is created but file is not copying in
File System

Hadoop version : hadoop-
Operating Sysytem : Ubuntu 11.10

Below are command

hduser@sujit:~/Desktop/hadoop$ hadoop fs -mkdir /user/sujit
mkdir: Unknown command
Usage: java FsShell
           [-ls <path>]
           [-lsr <path>]
           [-du <path>]
           [-dus <path>]
           [-count[-q] <path>]
           [-mv <src> <dst>]
           [-cp <src> <dst>]
           [-rm [-skipTrash] <path>]
           [-rmr [-skipTrash] <path>]
           [-put <localsrc> ... <dst>]
           [-copyFromLocal <localsrc> ... <dst>]
           [-moveFromLocal <localsrc> ... <dst>]
           [-get [-ignoreCrc] [-crc] <src> <localdst>]
           [-getmerge <src> <localdst> [addnl]]
           [-cat <src>]
           [-text <src>]
           [-copyToLocal [-ignoreCrc] [-crc] <src> <localdst>]
           [-moveToLocal [-crc] <src> <localdst>]
           [-mkdir <path>]
           [-setrep [-R] [-w] <rep> <path/file>]
           [-touchz <path>]
           [-test -[ezd] <path>]
           [-stat [format] <path>]
           [-tail [-f] <file>]
           [-chmod [-R] <MODE[,MODE]... | OCTALMODE> PATH...]
           [-chown [-R] [OWNER][:[GROUP]] PATH...]
           [-chgrp [-R] GROUP PATH...]
           [-help [cmd]]

Generic options supported are
-conf <configuration file>     specify an application configuration file
-D <property=value>            use value for given property
-fs <local|namenode:port>      specify a namenode
-jt <local|jobtracker:port>    specify a job tracker
-files <comma separated list of files>    specify comma separated files to
be copied to the map reduce cluster
-libjars <comma separated list of jars>    specify comma separated jar
files to include in the classpath.
-archives <comma separated list of archives>    specify comma separated
archives to be unarchived on the compute machines.

The general command line syntax is
bin/hadoop command [genericOptions] [commandOptions]

hduser@sujit:~/Desktop/hadoop/bin$ hadoop fs -put myinput.txt /user/sujit

hduser@sujit:~/Desktop/hadoop/bin$ hadoop fs -lsr /user
-rw-r--r--   1 hduser supergroup         71 2012-03-13 11:05 /user/chuck
-rw-r--r--   1 hduser supergroup         71 2012-03-13 10:11 /user/hduser
-rw-r--r--   1 hduser supergroup         71 2012-03-13 11:07 /user/sujit

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