How does a hadoop shell command like "hadoop fs -ls" works?

  1. I would like to know How does a hadoop shell command like “hadoop fs -ls” be interpreted by hadoop compiler?
  2. What happens in the background when I type “hadoop fs -ls /user/hadoop/someDirName”
  3. If I want to create my own shell command how do I do it?

Thanks in advance.
I would appreciate if anyone could share links to source code with examples.


Source: shell

Leave a Reply