Tuesday, February 18, 2014

Hadoop and a Case Study

To serve a greater purpose, I decided to write my experiences on big data. I am currently new to the topic so it may be useful for the users that are interested in this topic and doesn't have a clue how to start.

First of all, I have found a lot of documents and sources for this topic but none of them really satisfied my enthusiasm. My decision is based on nothing but the title so I started reading the a beginner's guide.

First of all, if you care about the history of hadoop, here are some facts:
  1. It was introduced due to requirements of big data processing
  2. One of the main reason for its usage is the cost of strategies when requirements are extending exponentially(same thing holds also for the cloud, since some companies prefer to use extended power on peak times)
  3. Google released some academic work on their technology :
    • http://research.google.com/archive/gfs.htm
    • http://research.google.com/archive/mapreduce.html
  4. Hadoop project begun by within the Apache and Doug Cutting had a key on this project
  5. Yahoo hired Doug Cutting and supported the hadoop project

After these historical issues lets take a look at some aspects and gains of hadoop(as I mentioned the blog is being written when I make my research so any issue that I wrote is prone to change):

  1. The critical thing, which we may not need to consider, is the failures and availability of the system
  2. Scalability of the system
  3. Focus more on Software not Hardware
  4. Previously the bottleneck was the data transfer now this is not the main case
  5. File clusters are at least 64MB not like usual filesystems
  6. Processing power can be used more efficiently than previous systems
  7. Not reliable when low latency is required
  8. May not be sufficient alone but a hybrid architecture can be more reliable and performable
  9. Costs less when an extension is needed
  10. Common approach on execution is to retrieve the data and process it but in hadoop the jobs to be computed are sent to the data
Now there exists some platforms which already provides these powerful aspects like, Amazon. It is always possible to build a system that uses amazon ec2 and s3(together EMR) so that it is a ready to go solution but it is always necessary to know the logic behind.

TF-IDF can be a good candidate to use when big data operations are made for text processing. After working on the subject for several hours, it seems simpler to make an explanation.

TF is a frequency function that can hold for texts. There exists many frequency function options. It stands for "Term Frequency".IDF is basically finding the frequency of terms in a number of texts. It stands for "Inverse Document Frequency". The combination of these two would be a rather strong approach for the problem of text mining. A vector of word, 2-tuple will be the result of applying tf-idf to a number of texts.

If you are familiar with mathematics and calculus it should be obvious to you that converting a set of values to vectors is very crucial to do some operations like similarity, comparison and manipulation.

So it would be a valid expectation to use tf-idf on Facebook or other social media profiles(meta data of people) and group them regarding their varying properties.

No comments:

Post a Comment