How to write commands in Hadoop

 

Hadoop Commands:

  • cat: copy les to stdout, similar to UNIX cat
  • copyFromLocal : copy single src, or multiple srcs .
  • copyToLocal :copy les to the local system.
  • cp: copy les from source to destination.
  • getmerge :take a source directory and a destination le as input and concatenate les in src into the destination local .
  • ls :for a returns stat on the file with the format
  • sr: recursive version of ls.
  • mkdir: create a directory.
  • mv: move les from source to destination
  • rm : delete les, similar to UNIX rm command. Only deletes empty directories
  • rmr: recursive version of rm. Same as rm -r on
  • tail: Displays last kilobyte of the stdout. Similar to UNIX tail command. Options:

Leave a Reply

Your email address will not be published. Required fields are marked *