Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8104491
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T23:51:48+00:00 2026-06-05T23:51:48+00:00

As part of trying to learn hadoop, I’m working on a project using a

  • 0

As part of trying to learn hadoop, I’m working on a project using a large number of tweets from the twitter streaming API. Of ~20M tweets, I’ve generated a list of the N most active users, who I want to try to cluster based on the text of all their tweets.

So I have a list of a few thousand user names, and what I want to do is concatenate the content of all the tweets from each user together, and eventually generate a word count vector for each user.

I can’t figure out how to accomplish the concatenation though. I want to be able to write some mapper that takes in each tweet line, and says “if this tweet comes from a user I’m interested in, map it with key username and value tweetText, otherwise ignore it.” Then it would be simple for the reducer to concatenate the tweets like I want to.

My problem is, how do I tell the mapper about this big list of users that I’m interested in? It seems like it would be nice if the mapper could have a Hashtable with all the users, but I have no idea if that’s possible.

Is there a good way to accomplish this, or is the problem just not a good fit for Map/Reduce?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T23:51:50+00:00Added an answer on June 5, 2026 at 11:51 pm

    Aw, nevermind. I’ve been thinking about this for a while, but once I wrote it out here, I realized how I think I should be doing it. Instead of making a list of all the users with X number of tweets, and then going through the data again and trying to find their tweets, I can do it all at once.

    Currently I am mapping [username,1] and then having the reducer sum all of the 1’s together to generate tweet counts. Then I try to find the tweets of all users with more than X tweets.

    To do it all at once, I should map [username,completeTweet] and then have the reducer concatenate and output data for only users who have more than X tweets, and just ignore the other users.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm working on an android application, as part of me trying to learn android
I am trying to learn and writting this part of code. while testing few
I am trying to learn TDD and this is part of my homework I
I am trying to post a multi-part form using httplib, url is hosted on
I've been starting to learn hadoop, and currently I'm trying to process log files
I'm currently trying to learn how to effectively use the STL part of c++.
Im trying to learn how to set up a Zend framework web application from
In my next project, I'm trying to learn JOGL. The result should be a
I have been trying to learn about classes in PHP and part of my
I'm trying to learn C# (so go easy on me!) and as part of

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.