A survey on platforms for big data analytics
© Singh and Reddy; licensee Springer. 2014
Received: 8 March 2014
Accepted: 3 September 2014
Published: 9 October 2014
The primary purpose of this paper is to provide an in-depth analysis of different platforms available for performing big data analytics. This paper surveys different hardware platforms available for big data analytics and assesses the advantages and drawbacks of each of these platforms based on various metrics such as scalability, data I/O rate, fault tolerance, real-time processing, data size supported and iterative task support. In addition to the hardware, a detailed description of the software frameworks used within each of these platforms is also discussed along with their strengths and drawbacks. Some of the critical characteristics described here can potentially aid the readers in making an informed decision about the right choice of platforms depending on their computational needs. Using a star ratings table, a rigorous qualitative comparison between different platforms is also discussed for each of the six characteristics that are critical for the algorithms of big data analytics. In order to provide more insights into the effectiveness of each of the platform in the context of big data analytics, specific implementation level details of the widely used k-means clustering algorithm on various platforms are also described in the form pseudocode.
KeywordsBig data MapReduce graphics processing units scalability big data analytics big data platforms k-means clustering real-time processing
This is an era of Big Data. Big Data is driving radical changes in traditional data analysis platforms. To perform any kind of analysis on such voluminous and complex data, scaling up the hardware platforms becomes imminent and choosing the right hardware/software platforms becomes a crucial decision if the user’s requirements are to be satisfied in a reasonable amount of time. Researchers have been working on building novel data analysis techniques for big data more than ever before which has led to the continuous development of many different algorithms and platforms.
There are several big data platforms available with different characteristics and choosing the right platform requires an in-depth knowledge about the capabilities of all these platforms . Especially, the ability of the platform to adapt to increased data processing demands plays a critical role in deciding if it is appropriate to build the analytics based solutions on a particular platform. To this end, we will first provide a thorough understanding of all the popular big data platforms that are currently being used in practice and highlight the advantages and drawbacks of each of them.
Typically, when the user has to decide the right platforms to choose from, he/she will have to investigate what their application/algorithm needs are. One will come across a few fundamental issues in their mind before making the right decisions.
How quickly do we need to get the results?
How big is the data to be processed?
Does the model building require several iterations or a single iteration?
Clearly, these concerns are application/algorithm dependent that one needs to address before analyzing the systems/platform-level requirements. At the systems level, one has to meticulously look into the following concerns:
Will there be a need for more data processing capability in the future?
Is the rate of data transfer critical for this application?
Is there a need for handling hardware failures within the application?
In this paper, we will provide a more rigorous analysis of these concerns and provide a score for each of the big data platforms with respect to these issues.
While there are several works that partly describe some of the above mentioned concerns, to the best of our knowledge, there is no existing work that compares different platforms based on these essential components of big data analytics. Our work primarily aims at characterizing these concerns and focuses on comparing all the platforms based on these various optimal characteristics, thus providing some guidelines about the suitability of different platforms for various kinds of scenarios that arise while performing big data analytics in practice.
In order to provide a more comprehensive understanding of the different aspects of the big data problem and how they are being handled by these platforms, we will provide a case study on the implementation of k-means clustering algorithm on various big data platforms. The k-means clustering was chosen here not only because of its popularity, but also due to the various dimensions of complexity involved with the algorithm such as being iterative, compute-intensive, and having the ability to parallelize some of the computations. We will provide a detailed pseudocode of the implementation of the k-means clustering algorithm on different hardware and software platforms and provide an in-depth analysis and insights into the algorithmic details.
The major contributions of this paper are as follows:
Illustrate the scaling of various big data analytics platforms and demonstrate the advantages and drawbacks of each of these platforms including the software frameworks.
Provide a systematic evaluation of various big data platforms based on important characteristics that are pertinent to big data analytics in order to aid the users with a better understanding about the suitability of these platforms for different problem scenarios.
Demonstrate a case study on the k-means clustering algorithm (a representative analytics procedure) and describe the implementation level details of its functioning on various big data platforms.
The remainder of the paper is organized as follows: the fundamental scaling concepts along with the advantages and drawbacks of horizontal and vertical scaling are explained in Section “Scaling”. Section “Horizontal scaling platforms” describes various horizontal scaling platforms including peer-to-peer networks, Hadoop and Spark. In section “Vertical scaling platforms”, various vertical platforms graphics processing units and high performance clusters are described. Section “Comparison of different platforms” provides thorough comparisons between different platforms based on several characteristics that are important in the context of big data analytics. Section “How to choose a platform for big data analytics?” discusses various details about choosing the right platform for a particular big data application. A case study on k-means clustering algorithm along with its implementation level details on each of the big data platform is described in Section “K-means clustering on different platforms”. Finally, the “Conclusion” section concludes our discussion along with future directions.
Scaling is the ability of the system to adapt to increased demands in terms of data processing. To support big data processing, different platforms incorporate scaling in different forms. From a broader perspective, the big data platforms can be categorized into the following two types of scaling:
Horizontal Scaling: Horizontal scaling involves distributing the workload across many servers which may be even commodity machines. It is also known as “scale out”, where multiple independent machines are added together in order to improve the processing capability. Typically, multiple instances of the operating system are running on separate machines.
Vertical Scaling: Vertical Scaling involves installing more processors, more memory and faster hardware, typically, within a single server. It is also known as “scale up” and it usually involves a single instance of an operating system.
A comparison of advantages and drawbacks of horizontal and vertical scaling
➔ Increases performance in small steps as needed
➔ Software has to handle all the data distribution and parallel processing complexities
➔ Financial investment to upgrade is relatively less
➔ Limited number of software are available that can take advantage of horizontal scaling
➔ Can scale out the system as much as needed
➔ Most of the software can easily take advantage of vertical scaling
➔ Requires substantial financial investment
➔ Easy to manage and install hardware within a single machine
➔ System has to be more powerful to handle future workloads and initially the additional performance in not fully utilized
➔ It is not possible to scale up vertically after a certain limit
On the other hand, horizontal scale out gives users the ability to increase the performance in small increments which lowers the financial investment. Also, there is no limit on the amount of scaling that can done and one can horizontally scale out the system as much as needed. In spite of these advantages, the main drawback is the limited availability of software frameworks that can effectively utilize horizontal scaling.
3Horizontal scaling platforms
Some of the prominent horizontal scale out platforms include peer-to-peer networks and Apache Hadoop. Recently, researchers have also been working on developing the next generation of horizontal scale out tools such as Spark  to overcome the limitations of other platforms. We will now discuss each of these platforms in more detail in this section.
3.1 Peer-to-peer networks
Peer-to-Peer networks , involve millions of machines connected in a network. It is a decentralized and distributed network architecture where the nodes in the networks (known as peers) serve as well as consume resources. It is one of the oldest distributed computing platforms in existence. Typically, Message Passing Interface (MPI) is the communication scheme used in such a setup to communicate and exchange the data between peers. Each node can store the data instances and the scale out is practically unlimited (can be millions of nodes).
The major bottleneck in such a setup arises in the communication between different nodes. Broadcasting messages in a peer-to-peer network is cheaper but the aggregation of data/results is much more expensive. In addition, the messages are sent over the network in the form of a spanning tree with an arbitrary node as the root where the broadcasting is initiated.
MPI, which is the standard software communication paradigm used in this network, has been in use for several years and is well-established and thoroughly debugged. One of the main features of MPI includes the state preserving process i.e., processes can live as long as the system runs and there is no need to read the same data again and again as in the case of other frameworks such as MapReduce (explained in section “Apache hadoop”). All the parameters can be preserved locally. Hence, unlike MapReduce, MPI is well suited for iterative processing . Another feature of MPI is the hierarchical master/slave paradigm. When MPI is deployed in the master–slave model, the slave machine can become the master for other processes. This can be extremely useful for dynamic resource allocation where the slaves have large amounts of data to process.
MPI is available for many programming languages. It includes methods to send and receive messages and data. Some other methods available with MPI are ‘Broadcast’, which is used to broadcast the data or messages over all the nodes and ‘Barrier’, which is another method that can put a barrier and allows all the processes to synchronize and reach up to a certain point before proceeding further.
Although MPI appears to be perfect for developing algorithms for big data analytics, it has some major drawbacks. One of the primary drawbacks is the fault intolerance since MPI has no mechanism to handle faults. When used on top of peer-to-peer networks, which is a completely unreliable hardware, a single node failure can cause the entire system to shut down. Users have to implement some kind of fault tolerance mechanism within the program to avoid such unfortunate situations. With other frameworks such as Hadoop (that are robust to fault tolerance) becoming widely popular, MPI is not being widely used anymore.
3.2 Apache hadoop
Apache Hadoop  is an open source framework for storing and processing large datasets using clusters of commodity hardware. Hadoop is designed to scale up to hundreds and even thousands of nodes and is also highly fault tolerant. The various components of a Hadoop Stack are shown in Figure 1. The Hadoop platform contains the following two important components:
The programming model used in Hadoop is MapReduce  which was proposed by Dean and Ghemawat at Google. MapReduce is the basic data processing scheme used in Hadoop which includes breaking the entire task into two parts, known as mappers and reducers. At a high-level, mappers read the data from HDFS, process it and generate some intermediate results to the reducers. Reducers are used to aggregate the intermediate results to generate the final output which is again written to HDFS. A typical Hadoop job involves running several mappers and reducers across different nodes in the cluster. A good survey about MapReduce for parallel data processing is available in .
3.2.2 MapReduce wrappers
A certain set of wrappers are currently being developed for MapReduce. These wrappers can provide a better control over the MapReduce code and aid in the source code development. The following wrappers are being widely used in combination with MapReduce.
Apache Pig is a SQL-like environment developed at Yahoo  is being used by many organizations like Yahoo, Twitter, AOL, LinkedIn etc. Hive is another MapReduce wrapper developed by Facebook . These two wrappers provide a better environment and make the code development simpler since the programmers do not have to deal with the complexities of MapReduce coding.
Programming environments such as DryadLINQ, on the other hand, provide the end users with more flexibility over the MapReduce by allowing the users to have more control over the coding. It is a C# like environment developed at Microsoft Research . It uses LINQ (a parallel language) and a cluster execution environment called Dryad. The advantages include better debugging and development using Visual Studio as the tool and interoperation with other languages such as standard .NET.
In addition to these wrappers, some researchers have also developed scalable machine learning libraries such as Mahout  using MapReduce paradigm.
3.2.3 Limitations of MapReduce
One of the major drawbacks of MapReduce is its inefficiency in running iterative algorithms. MapReduce is not designed for iterative processes. Mappers read the same data again and again from the disk. Hence, after each iteration, the results have to be written to the disk to pass them onto the next iteration. This makes disk access a major bottleneck which significantly degrades the performance. For each iteration, a new mapper and reducer have to be initialized. Sometimes the MapReduce jobs are short-lived in which case the overhead of initialization of that task becomes a significant overhead to the task itself. Some workarounds such as forward scheduling (setting up the next MapReduce job before the previous one finishes) have been proposed. However, these approaches introduce additional levels of complexity in the source code. One such work called HaLoop  extends MapReduce with programming support for iterative algorithms and improves efficiency by adding caching mechanisms. CGL MapReduce , is another work that focuses on improving the performance of MapReduce iterative tasks. Other examples of iterative MapReduce include Twister  and imapreduce .
3.3 Spark: next generation data analysis paradigm
Spark is a next generation paradigm for big data processing developed by researchers at the University of California at Berkeley. It is an alternative to Hadoop which is designed to overcome the disk I/O limitations and improve the performance of earlier systems. The major feature of Spark that makes it unique is its ability to perform in-memory computations. It allows the data to be cached in memory, thus eliminating the Hadoop’s disk overhead limitation for iterative tasks. Spark is a general engine for large-scale data processing that supports Java, Scala and Python and for certain tasks it is tested to be up to 100× faster than Hadoop MapReduce when the data can fit in the memory, and up to 10× faster when data resides on the disk. It can run on Hadoop Yarn manager and can read data from HDFS. This makes it extremely versatile to run on different systems.
3.3.1 Berkeley data analytics stack (BDAS)
The second component in BDAS, which is the layer above Tachyon, is called Apache Mesos. Mesos is a cluster manager that provides efficient resource isolation and sharing across distributed applications/frameworks. It supports Hadoop, Spark, Aurora , and other applications on a dynamically shared pool of resources. With Mesos, scalability can be increased to tens of thousands of nodes. APIs are available in java, python and C++ for developing new parallel applications. It also includes multi-resource scheduling capabilities.
The third component running on top of Mesos is Spark which takes the place of Hadoop MapReduce in the BDAS architecture. On the top of the stack are many Spark wrappers such as Spark Streaming (Large Scale real-time stream processing), Blink DB (queries with bounded errors and bounded response times on very large data) , GraphX (Resilient distributed Graph System on Spark)  and MLBase (distributed machine learning library based on Spark) .
Recently, BDAS and Spark have been receiving a lot of attention due to their performance gain over Hadoop. Now, it is even possible to run Spark on Amazon Elastic Map-Reduce . Although BDAS consists of many useful components in the top layer (for various applications), many of them are still in the early stages of development and hence the support is rather limited. Due to the vast number of tools that are already available for Hadoop MapReduce, it is still the most widely used distributed data processing framework.
4Vertical scaling platforms
The most popular vertical scale up paradigms are High Performance Computing Clusters (HPC), Multicore processors, Graphics Processing Unit (GPU) and Field Programmable Gate Arrays (FPGA). We describe each of these platforms and their capabilities in the following sections.
4.1 High performance computing (HPC) clusters
HPC clusters , also called as blades or supercomputers, are machines with thousands of cores. They can have a different variety of disk organization, cache, communication mechanism etc. depending upon the user requirement. These systems use well-built powerful hardware which is optimized for speed and throughput. Because of the top quality high-end hardware, fault tolerance in such systems is not problematic since hardware failures are extremely rare. The initial cost of deploying such a system can be very high because of the use of the high-end hardware. They are not as scalable as Hadoop or Spark clusters but they are still capable of processing terabytes of data. The cost of scaling up such a system is much higher compared to Hadoop or Spark clusters. The communication scheme used for such platforms is typically MPI. We already discussed about MPI in the peer-to-peer systems (see section “Peer-to-peer networks”). Since fault tolerance is not an important issue in this case, MPIs’ lack of fault tolerance mechanism does not come as a significant drawback here.
4.2 Multicore CPU
Multicore refers to one machine having dozens of processing cores . They usually have shared memory but only one disk. Over the past few years, CPUs have gained internal parallelism. More recently, the number of cores per chip and the number of operations that a core can perform has increased significantly. Newer breeds of motherboards allow multiple CPUs within a single machine thereby increasing the parallelism. Until the last few years, CPUs were mainly responsible for accelerating the algorithms for big data analytics.
The drawback of CPUs is their limited number of processing cores and their primary dependence on the system memory for data access. System memory is limited to a few hundred gigabytes and this limits the size of the data that a CPU can process efficiently. Once the data size exceeds the system memory, disk access becomes a huge bottleneck. Even if the data fits into the system memory, CPU can process data at a much faster rate than the memory access speed which makes memory access a bottleneck. GPU avoids this by making use of DDR5 memory compared to a slower DDR3 memory used in a system. Also, GPU has high speed cache for each multiprocessor which speeds up the data access.
4.3 Graphics processing unit (GPU)
Graphics Processing Unit (GPUs) is a specialized hardware designed to accelerate the creation of images in a frame buffer intended for display output . Until the past few years, GPUs were primarily used for graphical operations such as video and image editing, accelerating graphics-related processing etc. However, due to their massively parallel architecture, recent developments in GPU hardware and related programming frameworks have given rise to GPGPU (general-purpose computing on graphics processing units) . GPU has large number of processing cores (typically around 2500+ to date) as compared to a multicore CPU. In addition to the processing cores, GPU has its own high throughput DDR5 memory which is many times faster than a typical DDR3 memory. GPU performance has increased significantly in the past few years compared to that of CPU. Recently, Nvidia has launched Tesla series of GPUs which are specifically designed for high performance computing. Nvidia has released the CUDA framework which made GPU programming accessible to all programmers without delving into the hardware details. These developments suggest that GPGPU is indeed gaining more popularity. Figure 3(b) shows a high-level GPU architecture with 14 multiprocessors and 32 streaming processors per block. It usually has two levels of parallelism. At the first level, there are several multiprocessors (MPs) and within each multiprocessor there are several streaming processors (SPs). To use this setup, GPU program is broken down into threads which execute on SPs and these threads are grouped together to form thread blocks which run on a multiprocessor. Each thread within a block can communicate with each other and synchronize with other threads in the same block. Each of these threads has access to small but extremely fast shared cache memory and larger global main memory. Threads in one block cannot communicate with the threads in the other block as they may be scheduled at different times. This architecture implies that for any job to be run on GPU, it has to be broken into blocks of computation that can run independently without communicating with each other . These blocks will have to be further broken down into smaller tasks that execute on an individual thread that may communicate with other threads in the same block.
GPUs have been used in the development of faster machine learning algorithms. Some libraries such as GPUMiner  implement few machine learning algorithms on GPU using the CUDA framework. Experiments have shown many folds speedup using the GPU compared to a multicore CPU.
GPU has its own drawbacks. The primary drawback is the limited memory that it contains. With a maximum of 12GB memory per GPU (as of current generation), it is not suitable to handle terabyte scale data. Once the data size is more than the size of the GPU memory, the performance decreases significantly as the disk access becomes the primary bottleneck. Another drawback is the limited amount of software and algorithms that are available for GPUs. Because of the way in which the task breakdown is required for GPUs, not many existing analytical algorithms are easily portable to GPUs.
4.4 Field programmable gate arrays (FPGA)
FPGAs are highly specialized hardware units which are custom-built for specific applications . FPGAs can be highly optimized for speed and can be orders of magnitude faster compared to other platforms for certain applications. They are programmed using Hardware descriptive language (HDL) . Due to customized hardware, the development cost is typically much higher compared to other platforms. On the software side, coding has to be done in HDL with a low-level knowledge of the hardware which increases the algorithm development cost. User has to carefully investigate the suitability of a particular application for FPGA as they are effective only for a certain set of applications.
FPGAs are used in a variety of real-world applications , . One example where FPGA was successfully deployed is in the network security applications . In one such application, FPGA is used as a hardware firewall and is much faster than the software firewalls in scanning large amounts of network data . In the recent years, the speed of multicore processors is reaching closer to that of FPGAs.
5Comparison of different platforms
Comparison of different platforms (along with their communication mechanisms) based on various characteristics
Platforms (Communication Scheme)
Data I/O performance
Data size supported
Iterative task support
Virtual clusters (MapRedce/MPI)
Virtual clusters (Spark)
HPC clusters (MPI/Mapreduce)
Scalability is defined as the ability of the system to handle growing amount of work load in a capable manner or its ability to be enlarged to accommodate that growth. In our case, scalability is considered to be the ability to add more hardware (scale up or scale out) to improve the capacity and performance of a system.
In this category, the virtual clusters and peer-to-peer networks will get 5 stars since these systems are highly scalable. In these two platforms, it is relatively easy to add more machines and scale out these systems to any extent needed. The HPC clusters will receive a 3 star rating because it becomes difficult to scale up these systems after a certain extent. HPC clusters can have thousands of cores but once deployed, they are expensive to scale up. 2 Stars for GPU shows that the scalability is not the strength of GPUs. There is a limit on the number of GPUs a single machine can have and adding more machines will create data transfer bottleneck over the network. 1 star rating for FPGA is due to the fact that once FPGA is developed and deployed, scaling up and modifying becomes extremely costly.
5.2 Data I/O performance
Data I/O performance refers to the rate at which the data is transferred to/from a peripheral device. In the context of big data analytics, this can be viewed as the rate at which the data is read and written to the memory (or disk) or the data transfer rate between the nodes in a cluster. GPU and FPGA receive 5 stars since they have high throughput memory and the data I/O operations are extremely fast. The current generation GPUs are available with DDR5 memory which is many times faster than the DDR3 system memory. HPC clusters and Multicore will fall next in this category with 4 stars. These systems usually make use of system memory which is reasonably faster compared to disk access. Since HPC clusters and Multicore are usually single machines, network access is not a bottleneck.
Virtual clusters using the Spark framework receive 3 stars since Spark makes use of system memory which gives it an edge over Hadoop. Although system memory is fast, the data transfer between different nodes still takes place over the network. This makes the network access a bottleneck for data I/O. Virtual clusters using MapReduce over Hadoop receive 2 stars as they primarily read data from the disk which is a rather slow and time consuming process. In addition, the communication over the network degrades the performance.
Peer-to-peer systems are the worst in this category and will receive only 1 star. These systems use disks for the data access. In addition, the unmanaged and complex network scheme makes it very inefficient to aggregate the results over a single node and makes network communication even slower compared to the virtual clusters. These flaws degrade the data I/O performance.
5.3 Fault tolerance
Fault tolerance  is the characteristic of a system to continue operating properly in the event of a failure of one or more components. Since we created this table with an intent to compare the platforms of similar capacity, we additionally consider the chances of failure in a system and give a high rating if system failures are extremely rare even though it may not have any fault tolerance mechanism. This enables us to make an unbiased comparison between unreliable systems with fault tolerance and reliable hardware with not so good fault tolerance mechanism.
Virtual clusters get 5 stars since they primarily use MapReduce or Spark, running on frameworks such as Hadoop which have efficient in-built fault tolerant mechanisms.
On the other hand, HPC clusters, Multicore, GPU and FPGA get 4 stars. Although none of these contain the state-of-the-art fault tolerant mechanisms, they have the most reliable and well-built hardware which makes the hardware failure an extremely rare event. They get a slightly lower rating compared to the virtual clusters because of the occasional hardware failures that can still happen in spite of their rarity. 1 star rating is given to peer-to-peer networks, which shows their inability to handle system failures. They do not have any in-built fault tolerance mechanisms and additionally these networks mainly consist of commodity machines which are highly susceptible to hardware failures.
5.4 Real-time processing
Real-time processing of a system is its ability to process the data and produce the results strictly within certain time constrains. Real-time responses are often delivered in the order of milliseconds and sometimes microseconds depending on the application and the user requirements.
In this category, FPGA and GPU score 5 stars and outperform other platforms. GPU with its thousands of processing cores and high memory bandwidth is well suited for real-time data processing. Although their memory is limited, GPUs are optimized for speed and are often used for online processing. Similarly, FPGAs are specially built hardware optimized for speed and are suitable for real-time data processing.
Multicores and HPC clusters get 3 stars. They have reasonable real-time processing capabilities (though not as good as GPU and FPGA) with many processing cores and high bandwidth memory. Virtual clusters with 2 stars are not typically used for handling real-time processing tasks. They are slow in data I/O between the nodes and do not contain powerful and optimized hardware. Peer-to-Peer networks are the worst performers in this category and hence they receive only 1 star. They are slow with respect to real-time data processing because of the network communication overhead and commodity hardware.
5.5 Data size supported
Data size support is the size of the dataset that a system can process and handle efficiently. In this category, peer-to-peer networks will receive 5 stars since they can handle even petabytes of data and can theoretically scale out to unlimited number of nodes. Virtual clusters and HPC clusters can handle terabytes of data and thus will receive 4 stars. Virtual clusters can scale up to tens of thousands of nodes and frameworks like Hadoop and Spark are capable of processing and handling such large datasets.
Multicore, GPU and FPGA are not well suited for processing large data sets. All these systems get 2 stars for the limited size of the data that they can support. GPUs have a limited on-board memory in the order of several gigabytes. Similarly, Multicore systems rely on system memory which can only be up to hundreds of gigabytes.
5.6 Iterative tasks support
This is the ability of a system to efficiently support iterative tasks. Since many of the data analysis tasks and algorithms are iterative in nature, it is an important metric to compare different platforms, especially in the context of big data analytics.
HPC clusters, Multicore, GPU and FPGA score 4 stars in this category and all of them are highly suitable for iterative algorithms. However, all the iterative algorithms cannot be easily modified to run on each of these platforms which is the primary reason for giving 4 stars instead of 5 stars. These platforms are perfectly suitable for iterative algorithms since the result of one iteration can be easily used in the next iteration and all the parameters can be stored locally. Processes can reside and can keep running as long as the machine is running .
Virtual clusters using spark receive only 3 stars. The ability of the spark framework to use system memory for storing the data significantly reduces the data I/O overhead. The iterative tasks can still run in such cases but not as efficiently as the other platforms mentioned earlier. Data still has to be written to the memory after every iteration.
Virtual clusters using MapReduce and peer-to-peer frameworks are not designed to handle iterative tasks and hence received only 2 stars. MapReduce is not designed for iterative processing and the data has to be written onto the disk after every iteration, thus making the disk I/O a huge bottleneck. Some recent developments such as HaLoop improves MapReduce performance for iterative tasks to a certain extent which is why it was not given a 1 star. Peer-to-peer networks using TCP/IP are overwhelmed by the network communication overhead. To combine the results from different nodes after every iteration presents a significant challenge due to the complex network structure.
6How to choose a platform for big data analytics?
The star ratings provided in Table 2 gives a bird’s eye view of the capabilities and features of different platforms. The decision to choose a particular platform for a certain application usually depends on the following important factors: data size, speed or throughput optimization and model development. We will now provide more details about each of these factors.
6.1 Data size
The size of data that is being considered for processing is probably the most important factor. If the data can fit into the system memory, then clusters are usually not required and the entire data can be processed on a single machine. The platforms such as GPU, Multicore CPUs etc. can be used to speed up the data processing in this case. If the data does not fit into the system memory, then one has to look at other cluster options such as Hadoop, Spark etc. Again, Hadoop and Spark clusters can handle large amount of data but Hadoop has well developed tools and frameworks although it is slower for iterative tasks. The user has to decide if he needs to use off-the-shelf tools which are available for Hadoop or if he wants to optimize the cluster performance in which case Spark is more appropriate.
6.2 Speed or throughput optimization
Here, speed refers to the ability of the platform to process data in real-time whereas throughput refers to the amount of data that system is capable of handling and processing simultaneously. The users will need to be clear about whether the goal is to optimize the system for speed or throughput. If one needs to process large amount of data and do not have strict constraints on the processing time, then one can look into systems which can scale out to process huge amounts of data such as Hadoop, Peer-to-Peer networks, etc. These platforms can handle large-scale data but usually take more time to deliver the results. On the other hand, if one needs to optimize the system for speed rather than the size of the data, then they need to consider systems which are more capable of real-time processing such as GPU, FPGA etc. These platforms are capable of processing the data in real-time but the size of the data supported is rather limited.
6.3 Training/Applying a model
In data analytics, training of the model is typically done offline and it usually takes a significant amount of time. A model is typically applied in an online environment where the user expects the results within a short period of time (almost instantaneously). This creates a strong need for investigating different platforms for training and applying a model depending on the end-user application. Usually, during the training process, the user needs to deal with large amount of training data and since training is done offline, the processing time is not critical. This makes horizontal scale out platforms suitable for training a model. When a model is applied, results are expected in real-time and vertical scale up platforms are usually preferred. GPUs are preferable over other platforms when the user has strict real-time constraints and the data can be fit into the system memory. On the other hand, the HPC clusters can handle more data compared to GPUs but are not suitable for real-time processing compared to GPUs.
6.4 Practical implications
This work can provide useful insights for a wide variety of practical applications. Many users and researchers working in different areas of big data ranging from real-time systems to large-scale data processing applications can assess the advantages and disadvantages of the platforms they are currently using. This survey will be immensely helpful for them to understand if they can improve the existing systems by choosing the right platform. The strengths and weaknesses of each of the platforms are clearly highlighted in this paper. More specifically, for big data applications, there is often a trade-off between the real-time analysis requirements and the scalability of the data being processed. For the former, GPUs will be optimal choice and for the latter horizontal scaling platforms such as Hadoop and Spark are optimal choices. For example, in some of the recommendation problems dealing with millions of users, it is extremely important to have a scalable platform that can handle huge amounts of data processing and it is not absolutely required to have the results in a real-time manner. In web search applications, due to the billions of webpages available, the webpage indexing process will require a highly scalable platform which can accurately index the webpages offline. However, for the actual online component where the user enters the query and the results are expected to be obtained in real-time, vertical scaling platforms might be more suitable. Hence, depending on the application, one can probably define the most critical needs and then choose the right kind of platform accordingly. In the previous section, we characterized several such needs for practical applications.
7K-means clustering on different platforms
In order to provide more insights into the analytics algorithms on different platforms, we will demonstrate the implementation of the K-Means clustering algorithm on these platforms presented so far. The choice of the K-Means algorithm was made not only because of its popularity and wide usage , , but also due to some of its critical elements that can demonstrate the ability of various platforms in handling other analytics procedures. Some of these characteristics include:
Iterative nature of the algorithm wherein the current iteration results are needed before proceeding to the next iteration.
Compute-intensive task of calculating the centroids from a set of datapoints.
Aggregation of the local results to obtain a global solution when the algorithm is parallelized.
We will now discuss the implementation details of this algorithm on different platforms to get a deeper understanding of how such iterative algorithms are modified to fit different communication schemes.
7.1 K-means on MapReduce
7.2 K-means on MPI
7.3 K-means on GPU
7.4 K-means on other platforms
K-means implementation on Spark is similar to the MapReduce-based implementation described in Section K-means on MapReduce. Instead of writing the global centroids to the disk, they are written into the memory which speeds up the processing and reduces the disk I/O overhead. In addition, the data will be loaded into the system memory in order to provide faster access. The K-means clustering on CPU involves multithreading where each thread associates a data vector to a centroid and finally the centroids are recomputed for the next iteration. On the other hand, K-means implementation on FPGA depends upon the FPGA architecture used and may differ significantly depending on the type of FPGA being used.
8Conclusion and future directions
This paper surveys various data processing platforms that are currently available and discusses the advantages and drawbacks for each of them. Several details on each of these hardware platforms along with some of the popular software frameworks such as Hadoop and Spark are also provided. A thorough comparison between different platforms based on some of the important characteristics (such as scalability and real-time processing) has also been made through star based ratings. The widely used k-means clustering algorithm was chosen as a case study to demonstrate the strengths and weaknesses of different platforms. Some of the important characteristics of k-means algorithm such as its iterative nature, compute-intensive calculations and aggregating local results in a parallel setting makes it an ideal choice to better understand the various big data platforms. It should be noted that many of the analytical algorithms share these characteristics as well. This article provides the readers with a comprehensive review of different platforms which can potentially aid them in making the right decisions in choosing the platforms based on their data/computational requirements.
The future work involves investigating more algorithms such as decision trees, nearest neighbor, pagerank etc. over different platforms. For empirical evaluation, different experiments involving varying data size and response times can be performed over various platforms for different algorithms. Through such an analysis we will get valuable insights which can be useful in many practical and research applications. One other important direction of research will be to choose the right platform for a particular application. Based on the specific application needs, one can tailor their platform specific factors such as the amount of hard disk, memory and the speed required for optimally running the application. This study will provide a first step to analyze the effectiveness of each of the platforms and especially the strengths of them for handling real-world applications. Another direction will be to investigate the possibility of combining multiple platforms to solve a particular application problem. For example, attempting to merge the horizontal scaling platforms such as Hadoop with vertical scaling platforms such as GPUs is also gaining some recent attention. This involves several non-trivial tasks not only at the platform level but also becomes challenging to decompose the algorithm into parts and running various algorithmic components in various platforms. A combination of platforms might be more suitable for a particular algorithm and can potentially resolve the issue of making it highly scalable (through horizontal scaling) as well as performing real-time analysis (through vertical scaling).
This work was supported in part by the National Institutes of Health award R21CA175974 and the US National Science Foundation grants IIS-1231742 and IIS-1242304.
- Agneeswaran VS, Tonpay P, Tiwary J: Paradigms for realizing machine learning algorithms. Big Data 2013,1(4):207–214. 10.1089/big.2013.0006View ArticleGoogle Scholar
- Zaharia M, Chowdhury M, Franklin MJ, Shenker S, Spark SI: Cluster Computing with Working Sets. Proceedings of the 2nd USENIX Conference on Hot Topics in Cloud Computing 2010, 10–10.Google Scholar
- Milojicic DS, Kalogeraki V, Lukose R, Nagaraja K, Pruyne J, Richard B, Rollins S, Xu Z: Peer-to-peer computing. Technical Report HPL-2002–57, HP Labs. 2002.Google Scholar
- Steinmetz R, Wehrle K: Peer-to-Peer Systems and Applications. Springer Berlin, Heidelberg; 2005.View ArticleGoogle Scholar
- Sievert O, Casanova H: A simple MPI process swapping architecture for iterative applications. Int J High Perform Comput Appl 2004,18(3):341–352. 10.1177/1094342004047430View ArticleGoogle Scholar
- Hadoop. , [http://hadoop.apache.org/]
- Borthakur D: HDFS architecture guide. HADOOP APACHE PROJECT. 2008.Google Scholar
- Vavilapalli VK, Murthy AC, Douglas C, Agarwal S, Konar M, Evans R, Graves T, Lowe J, Shah H, Seth S: Apache hadoop yarn: Yet another resource negotiator. Proceedings of the 4th annual Symposium on Cloud Computing 2013, 5.Google Scholar
- Dean J, Ghemawat S: MapReduce: simplified data processing on large clusters. Commun ACM 2008,51(1):107–113. 10.1145/1327452.1327492View ArticleGoogle Scholar
- Lee K-H, Lee Y-J, Choi H, Chung YD, Moon B: Parallel data processing with MapReduce: a survey. ACM SIGMOD Record 2012,40(4):11–20. 10.1145/2094114.2094118View ArticleGoogle Scholar
- Olston C, Reed B, Srivastava U, Kumar R, Tomkins A: Pig latin: a not-so-foreign language for data processing. In Proceedings of the ACM SIGMOD international conference on Management of Data. ACM, ᅟ; 2008:1099–1110.Google Scholar
- Thusoo A, Sarma JS, Jain N, Shao Z, Chakka P, Anthony S, Liu H, Wyckoff P, Murthy R: Hive: a warehousing solution over a map-reduce framework. Proceedings of the VLDB Endowment 2009,2(2):1626–1629. 10.14778/1687553.1687609View ArticleGoogle Scholar
- Yu Y, Isard M, Fetterly D, Budiu M, Erlingsson Ú, Gunda PK, Currey J: DryadLINQ: A System for General-Purpose Distributed Data-Parallel Computing Using a High-Level Language. OSDI 2008, 1–14.Google Scholar
- Owen S, Anil R, Dunning T, Friedman E: Mahout in Action. Manning. 2011.Google Scholar
- Bu Y, Howe B, Balazinska M, Ernst MD: HaLoop: efficient iterative data processing on large clusters. Proceedings of the VLDB Endowment 2010,3(1–2):285–296. 10.14778/1920841.1920881View ArticleGoogle Scholar
- Ekanayake J, Pallickara S, Fox G: Mapreduce for data intensive scientific analyses. Proceesings of IEEE Fourth International Conference on eScience 2008, 277–284.Google Scholar
- Palit I, Reddy CK: Scalable and parallel boosting with MapReduce. IEEE Trans Knowl Data Eng 2012,24(10):1904–1916. 10.1109/TKDE.2011.208View ArticleGoogle Scholar
- Ekanayake J, Li H, Zhang B, Gunarathne T, Bae S-H, Qiu J, Fox G (2010) Twister: a runtime for iterative mapreduce. In: Proceedings of the 19th ACM International Symposium on High Performance Distributed Computing. ACM, pp 810–818Google Scholar
- Zhang Y, Gao Q, Gao L, Wang C: Imapreduce: a distributed computing framework for iterative computation. J Grid Comput 2012,10(1):47–68. 10.1007/s10723-012-9204-9View ArticleGoogle Scholar
- Berkeley Data Analysis Stack. , [https://amplab.cs.berkeley.edu/software/]
- Tachyon. , [http://tachyon-project.org/]
- Aurora. , [https://incubator.apache.org/projects/aurora.html]
- Agarwal S, Mozafari B, Panda A, Milner H, Madden S, Stoica I: BlinkDB: Queries with Bounded Errors and Bounded Response times on very Large Data. Proceedings of the 8th ACM European Conference on Computer Systems 2013, 29–42. 10.1145/2465351.2465355View ArticleGoogle Scholar
- Xin RS, Gonzalez JE, Franklin MJ, Stoica I: Graphx: A resilient distributed graph system on spark. First International Workshop on Graph Data Management Experiences and Systems 2013, 2.Google Scholar
- Kraska T, Talwalkar A, Duchi JC, Griffith R, Franklin MJ, Jordan MI: MLbase: A Distributed Machine-learning System. Proceedings of Sixth Biennial Conference on Innovative Data Systems Research 2013.Google Scholar
- Amazon Elastic MapReduce , [http://aws.amazon.com/]
- Buyya R: High Performance Cluster Computing: Architectures and Systems (Volume 1). Prentice Hall, Upper SaddleRiver, NJ, USA; 1999.Google Scholar
- Bekkerman R, Bilenko M, Langford J (2012) Scaling up Machine Learning: Parallel and Distributed Approaches. Cambridge University PressGoogle Scholar
- Tullsen DM, Eggers SJ, Levy HM: Simultaneous Multithreading: Maximizing on-Chip Parallelism. ACM SIGARCH Computer Architecture News 1995, 392–403.Google Scholar
- Owens JD, Houston M, Luebke D, Green S, Stone JE, Phillips JC: GPU computing. Proc IEEE 2008,96(5):879–899. 10.1109/JPROC.2008.917757View ArticleGoogle Scholar
- Nickolls J, Dally WJ: The GPU computing era. IEEE Micro 2010,30(2):56–69. 10.1109/MM.2010.41View ArticleGoogle Scholar
- Hong S, Kim H: An analytical Model for a GPU Architecture with Memory-Level and Thread-Level Parallelism Awareness. ACM SIGARCH Computer Architecture News 2009, 152–163.Google Scholar
- Fang W, Lau KK, Lu M, Xiao X, Lam CK, Yang PY, He B, Luo Q, Sander PV, Yang K: Parallel data mining on graphics processors. Hong Kong University of Science and Technology, Tech Rep HKUST-CS08–07 2. 2008.Google Scholar
- Francis RJ, Rose J, Vranesic ZG (1992) Field Programmable Gate Arrays, vol 180. SpringerMATHGoogle Scholar
- Thomas DE, Moorby PR (2002) The Verilog Hardware Description Language, vol 2. SpringerMATHGoogle Scholar
- Monmasson E, Idkhajine L, Cirstea MN, Bahri I, Tisan A, Naouar MW: FPGAs in industrial control applications. IEEE Trans Ind Informat 2011,7(2):224–243. 10.1109/TII.2011.2123908View ArticleGoogle Scholar
- Bouldin D: Impacting education using FPGAs. Proceedings of 18th International conference on Parallel and Distributed Processing Symposium 2004, 142.Google Scholar
- Chen H, Chen Y, Summerville DH: A survey on the application of FPGAs for network infrastructure security. IEEE Commun Surv Tutor 2011,13(4):541–561. 10.1109/SURV.2011.072210.00075View ArticleGoogle Scholar
- Jedhe GS, Ramamoorthy A, Varghese K: A scalable high throughput firewall in FPGA. Proceedings of 16th International Symposium on Field-Programmable Custom Computing Machines 2008, 43–52.Google Scholar
- Fault Tolerance. , [http://en.wikipedia.org/wiki/Fault_tolerance]
- Snir M (1998) MPI–the Complete Reference: The MPI core, vol 1. MIT pressGoogle Scholar
- Jain AK: Data clustering: 50 years beyond K-means. Pattern Recogn Lett 2010,31(8):651–666. 10.1016/j.patrec.2009.09.011View ArticleGoogle Scholar
- Reddy CK, Vinzamuri B: A Survey of Partitional and Hierarchical Clustering Algorithms. Data Clustering: Algorithms and Applications. 2013.Google Scholar
- Gropp W, Lusk E, Skjellum A (1999) Using MPI: Portable Parallel Programming with the Message-Passing Interface, Vol 1. MIT pressGoogle Scholar
This article is published under license to BioMed Central Ltd. This is an Open Access article distributed under the terms of the Creative Commons Attribution License (http://creativecommons.org/licenses/by/4.0), which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly credited.