Did u try /usr/bin/hadoop instead of hadoop ? How many java versions do u Hv on ur box ?
Sent from my iPhone On Mar 16, 2012, at 10:53 AM, Sujit Dhamale <sujitdhamal...@gmail.com> wrote: > Hi, > 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-0.20.203.0rc1.tar > 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>] > [-expunge] > [-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 > hduser@sujit:~/Desktop/hadoop/bin$