Skip to content
This repository has been archived by the owner on Mar 7, 2022. It is now read-only.

Latest commit

 

History

History
10 lines (9 loc) · 270 Bytes

GenericOptionsParser类.md

File metadata and controls

10 lines (9 loc) · 270 Bytes

它是用来解释常用hadoop命令.

wordcount中的代码示例。

String[] otherArgs = new GenericOptionsParser(conf, args).getRemainingArgs();
  if (otherArgs.length != 2) {
    System.err.println("Usage: wordcount <in> <out>");
    System.exit(2);
  }