sh bin/start-all.sh
sh bin/stop-all.sh
sh bin/hadoop fs -ls dir
sh bin/hadoop fs -lsr dir
sh bin/hadoop fs -mkdir dir
sh bin/hadoop fs -rm file
sh bin/hadoop fs -rmr dir
sh bin/hadoop fs –put localFile hadoopFile
sh bin/hadoop fs –get hadoopFile localFile
sh bin/hadoop fs –cat hadoopFile
sh bin/hadoop jar job.jar [jobMainClass] [jobArgs]
sh bin/hadoop job -kill job_id
more:
Usage: hadoop [--config confdir] COMMAND
where COMMAND is one of:
namenode -format format the DFS filesystem
secondarynamenode run the DFS secondary namenode
namenode run the DFS namenode
datanode run a DFS datanode
dfsadmin run a DFS admin client
fsck run a DFS filesystem checking utility
fs run a generic filesystem user client
balancer run a cluster balancing utility
jobtracker run the MapReduce job Tracker node
pipes run a Pipes job
tasktracker run a MapReduce task Tracker node
job manipulate MapReduce jobs
queue get information regarding JobQueues
version print the version
jar <jar> run a jar file
distcp <srcurl> <desturl> copy file or directories recursively
archive -archiveName NAME <src>* <dest> create a hadoop archive
daemonlog get/set the log level for each daemon
or
CLASSNAME run the class named CLASSNAME
Most commands print help when invoked w/o parameters.