-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
first DZ done #4
base: master
Are you sure you want to change the base?
Conversation
*/ | ||
public class WordCountJob extends Configured implements Tool { | ||
public int run(String[] strings) throws Exception { | ||
Job job = new Job(getConf(), "WordCount"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Job считается deprecated. Почему использовали его?
try { | ||
int exitCode = ToolRunner.run(new WordCountJob(), args); | ||
System.exit(exitCode); | ||
} catch (Exception e) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
throws IOException, InterruptedException { | ||
StringTokenizer st = new StringTokenizer(value.toString()); | ||
|
||
while (st.hasMoreTokens()) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
никакого to_uppercase или to_lowercase нам не надо? или ещё чего-нибудь такого?
не смог запустить на архиве, не хватает места на диске ;(