Development of Multiple Big Data Analytics Platforms with Rapid Response

The crucial problem of the integration of multiple platforms is how to adapt for their own computing features so as to execute the assignments most efficiently and gain the best outcome. This paper introduced the new approaches to big data platform, RHhadoop and SparkR, and integrated them to form a high-performance big data analytics with multiple platforms as part of business intelligence (BI) to carry out rapid data retrieval and analytics with R programming. This paper aims to develop the optimization for job scheduling using MSHEFT algorithm and implement the optimized platform selection based on computing features for improving the system throughput significantly. In addition, users would simply give R commands rather than run Java or Scala program to perform the data retrieval and analytics in the proposed platforms. As a result, according to performance index calculated for various methods, although the optimized platform selection can reduce the execution time for the data retrieval and analytics significantly, furthermore scheduling optimization definitely increases the system efficiency a lot.


Introduction
Big data [1] has been sharply in progress unprecedentedly in recent years and is changing the operation for business as well as the decision-making for the enterprise.The huge amounts of data contain valuable information, such as the growth trend of system application and the correlation among systems.The undisclosed information may contain unknown knowledge and application that are discoverable further.However, big data with the features of high volume, high velocity, and high variety as well as in face of expanding incredible amounts of data, several issues emerging in big data such as storage, backup [2], management, processing, search [3], analytics, practical application, and other abilities to deal with the data also face new challenges.Unfortunately, those cannot be solved with traditional methods and thus it is worthwhile for us to continue exploring how to extract the valuable information from the huge amounts of data.According to the latest survey reported from American CIO magazine, 70% of IT operation has been done by batch processing in the business, which makes it "unable to control processing resources for operation as well as loading" [4].This becomes one of the biggest challenges for big data application.
Hadoop distributes massive data collections across multiple nodes, enabling big data processing and analytics far more effectively than was possible previously.Spark, on the other hand, does not do distributed storage [5].It is nothing but a data processing tool, operating on those distributed data collections.Furthermore, Hadoop includes not only a storage component called Hadoop Distributed File System (HDFS), but also a processing component called MapReduce.Spark does not come with its own file management system.Accordingly, it needs to be integrated with Hadoop to share HDFS.Hadoop processing mostly static and batch-mode style can be just fine and originally was designed to handle crawling and searching billions of web pages and collecting their information into a database [6].If you need to do analytics on streaming data, or to run required multiple operations, Spark is suitable for those.As a matter of fact, Spark was designed for Hadoop; therefore, data scientists all agree they are better together for a variety of big data applications in the real world.
Through establishing a set of multiple big data analytics platforms with high efficiency, high availability, and high scalability [7], this paper aims to integrate different big data platforms to achieve the compatibility with any existing business intelligence (BI) [8] together with related analytics tools so that the enterprise needs not change large amounts of software for such platforms.Therefore, the goal of this paper is to design the optimization for job scheduling using MSHEFT algorithm as well as to implement optimized platform selection, and established platforms support R command to execute data retrieval and data analytics in big data environment.In such a way the upper-level tools relying on relational database which has stored the original data can run on the introduced platforms through minor modification or even no modification to gain the advantages of high efficiency, high availability, and high scalability.I/O delay time can be shared through reliable distributed file system to speed-up the reading of a large amount of data.Data retrieval and data analytics stack has layered as shown in Figure 1.As a result, according to performance index calculated for various methods, we are able to check out whether or not the proposed approach can reduce the execution time for the data retrieval and analytics significantly.

Related Work in Big Data Processing
This paper has introduced data retrieval and data analytics using R programming in conjunction with RHadoop [9]/ Hadoop [10] and SparkR [11]/Spark [12] platforms to build a multiple-platform big data analytics system.Furthermore, the use of distributed file system for fast data analytics and data storage reduces the execution time of processing a huge amount of data.First let us aim to understand the fundamental knowledge of Hadoop and Spark platforms and then build their extended systems RHadoop and SparkR for the purpose of fitting all kinds of relative problems on big data analytics.This section will introduce their related profiles and key technologies for both platforms accordingly.

Distributed Computing Framework with Hadoop.
Hadoop is a well-known open source distributed computing framework as shown in Figure 2 that provides reliable, scalable, distributed computing, data storage, and cluster computing analytics of big data, including a MapReduce [13] for distributed computing, HDFS [14] distributed file system, and a distributed NoSQL database HBase [15] which can be used to store nonrelational data set.There are some tools that are based on Hadoop applications.First Apache Pig can perform complex MapReduce conversions on a huge amount of data using a simple scripting language called Pig Latin.Next Apache Hive [16] is a data warehousing package that lets you query and manage large datasets in distributed storage using a SQL-style language called HiveQL.Third Apache Sqoop is a tool for transferring large amounts of data between Hadoop and structured data storage as efficiently as possible.Further Apache Flume is a distributed and highly scalable log collection system that can be used for log data collection, log data processing, and log data transmission.Then Apache Zookeeper is a distributed application designed for the coordination of services, it is mainly used to solve the decentralized applications often encountered in some data management issues.Final Apache Avro is a data serialization system designed to support intensive data, the application of huge amounts of data exchange.
Examples of applications using Hadoop are given as follows.Caesars entertainment, a casino gaming company, has built a Hadoop environment [17] that differentiates customer groups and creates exclusive marketing campaign for each group.Healthcare technology company Cerner uses Hadoop to build a set of enterprise data centers [18] to help Cerner and their clients monitor the health of more than one million patients a day.The dating site eHarmony uses Hadoop to upgrade their cloud systems [19], enabling it to send millions of messages for matching friend dating every day.

Parallel Processing Framework with Spark.
Spark is an open source parallel processing framework released by the Apache Software Foundation that supports in-memory processing and dramatically increases the execution speed of big data analytics, as shown in Figure 3. Spark is also designed for fast computing, high availability, and fault tolerance.Using its internal memory capabilities, Spark can be a great choice for machine learning and graph computation, as well as a great choice for big data analytics.Its main functions and positioning are the same as Hadoop MapReduce.Through In-memory cluster computing [20], it hopes to eliminate I/O latency caused by a lot of relay files swapped between memory and disk during MapReduce.Theoretically, the processing speed could be hundreds of times higher than the Hadoop.Spark is written in Scala, but also supports Scala, Java, and Python programming; the underlying storage system can also be directly compatible with HDFS.
Examples of Spark's applications are given as follows.Microsoft launched Spark for Azure HDInsight [21], allowing

Integrated Development Environment for R.
Over the past decade, programming language R has been highly enhanced and greatly upgraded significantly to break the original limit in the past.In academy and industry, R becomes one of the most important tools for the research such as computational statistics, visualization, and data science.Millions of statisticians and data scientists use R to solve problems from counting biology to quantitative marketing.R has become one of the most popular programming language for the analytics of scientific data and finance.R is not only free, compact, and part of the open source that can run on many platforms, but also integrates data analytics and plotting functions all in one.It may add many additional packages to enhance system's functions, similarly comparable to the functions of commercial software, and can be viewed as one of major tools of contemporary data analytics.R is mainly used to analyze data, and thus the master node in a cluster installs R where big data access through HDFS has been available, or a stay alone computer for centralized processing installs R where small data access through NTFS has achieved.It is noted that data stored in NTFS can be transferred to HDFS via Sqoop [24]/Flume [25] or Hive.

RHadoop Based on Hadoop.
Hadoop is capable of distributed computing and can store large amounts of data, but there is still a lot of information that needs to be analyzed professionally.However, R itself is not able to read the data size more than the size of memory in computer, and hence there is data size limit for processing big data.Therefore, it turns out the integration of Hadoop and R called RHadoop as a sort of data analytics service.In such a way, R will not only handle professional analytics, but it will also allow to easily utilize Hadoop features, such as the ability to access HDFS via rhdfs package and through the rmr2 package [26] to call MapReduce for accomplishing the distributed computing.The framework of RHadoop is shown in Figure 4.

SparkR Based on Spark.
SparkR is an R suite developed by AMPLab that provides Spark with a Resilient Distributed Dataset (RDD) [27] API that allows R to carry out distributed computing using Spark.SparkR was merged into Spark in April 2015 and was released with Spark 1.4 in June 2015, so deploying SparkR requires installing Spark 1.4 or later and installing R related packages, including rJava [28] and rhdfs [29].rJava lets R call objects, instances, and methods written in Java to make it less difficult for R to call Javaowned resources, such as Spark and Hadoop, and rhdfs, like RHadoop, to access HDFS.The framework of SparkR is shown in Figure 5.Although RHadoop mentioned above can activate distributed computing with R programming, its efficiency is not as good as SparkR.SparkR, adopting in-memory cluster computing, needs more memory resources than RHadoop.In order to avoid shutting down the task due to hardware resources limitation, both RHadoop and SparkR can be installed together for being interchangeably used at same site.In addition, in order to determine the most suitable analytical tools, we also need a matching algorithm to carry out the distributed computing successfully.

System Implementation Method
This paper aims to develop the optimization for job scheduling using MSHEFT algorithm so that system obtains the best throughput.After scheduling all of input queries in a job queue, system is then able to dispatch the job at top of the queue to one of big data analytics platforms through automatic platform selection.Regarding clustering and distributed parallel computing, a cloud computing foundation has been established to implement virtualization architecture because virtual machine has the feature of flexible control in hardware resource and thus it is quite suitable to act as a container provided an environment for the exploration of big data analytics.

Virtual Machine Deployment.
Figure 6 shows a cloud computing [30] with high performance, high availability, and high scalability where server farm at the top layer and storage farm at the bottom layer are built for this study.In order to realize virtualization, an open source virtual machine management (VMM) or hypervisor Proxmox Virtual Environment (PVE) [31] based on KVM is used to implement virtual machine clustering; the status of virtual machine clustering can be effectively monitored through PVE, and the resource configuration of each virtual machine can be dynamically adjusted [32].Since the platform performance is very closely related to I/O latency, the efficiency of both hard disk and network access should be increased in hardware configuration.

Recipe of Compatibility
Packages.The most difficult aspect of integration of a lot of open source packages in a system is compatibility suite and that is one of the crucial problems of system integration as well.In this paper we proposed a recipe to resolve the challenge of suite compatibility.Several packages will be integrated to establish multiple big data analytics platforms in this paper and all of them are open source software, which are developed and maintained by different open source communities.A lot of software has complex dependency and compatibility problems.The recipe of packages proposed in this paper includes Hadoop, Spark, R, Scala, rJava, rhdfs, and rmr2, which are fully compatible for stable operation in the proposed approach as listed in Table 1.analytics platform according to the size of remaining amount of memory in a working virtual machine.The function and property for both RHadoop and SparkR are identical in a sense because they can access the same HDFS and support R syntax.Although these two platforms are the same function, they are different in the demand environment and executive manner.The memory size of 20 G for each server in the experiments is given, and it sets the remaining amount of memory size 0.6 G in a virtual machine in cluster denoted Level 1 (roughly 3% of total amount of memory) and 15 G Level 2 (approximately 75% of total amount of memory) as the cut-off points.In Figure 7, the program automatically chooses nothing to carry on the task as the remaining amount of memory is less than 3%; RHadoop would be applied as the remaining amount of memory lies between L1 and L2, and hence SparkR could be employed as the remaining amount of memory is higher than L2.

Optimization for Job Scheduling. Heterogeneous Earliest
Finish Time (HEFT) [33] is an exploratory scheduling algorithm, which is used for scheduling the communication time of previous set of dependent task of heterogeneous network.
HEFT is based on one of list scheduling algorithms, where their characteristics are to establish a priority list in the first step.According to the sorted priority list, HEFT assigns each task to a suitable CPU to make the task completed as soon as possible.The pseudocode of HEFT algorithm is shown in Algorithm 1. HEFT tries to search for local optimization and eventually makes the whole local optimums.In the test of automatic platform selection, the total of 20 GB memory is configured, and it is found that all of analytics platforms can be used when the remaining amount of memory is greater than or equal to L1; in addition, it is better to use RHadoop in case of being less than L2, and SparkR shall be used in case of being greater than L2.Job dispatched to RHadoop platform has run a kind of in-disk computing mode such that it may encounter data swap between disk and memory occasionally.Instead, in-memory computing mode has employed in SparkR platform and thus SparkR needs much more memory allocated for computing.HEFT algorithm is modified to Memory-Sensitive Heterogeneous Earliest Finish Time (MSHEFT) where the priority is considered first; then the size of data file is considered as the second condition, and finally an extra factor is considered, which is "remaining amount (1) Compute rank  for all nodes by traversing graph upward, starting from the exit node.
(2) Sort the nodes in a list by nonincreasing order of rank  values.
(3) while there are unscheduled nodes in the list do (4) begin (5) Select the first task   in the list and remove it.(6) Assign the task   to the processor   that minimizes the (EFT) value of   .(7) end Algorithm 1: The HEFT algorithm.
(1) Compute rank  for all nodes by traversing graph upward, starting from the exit node.
(2) Sort the nodes in a list by nonincreasing order of rank  values.
(3) while there are unscheduled nodes in the list do (4) Compare priority.
(5) begin (6) Compare job size (7) Select the first task   in the list and remove it.
if the remaining memory size > 0.6 GB (10) begin (11) what is the value of the remaining memory size?(12) Assign the task   to the processor   that minimizes the (EFT) value of   .(13) end if (14) waiting the remaining memory size and go line 9.

Execution Procedure.
The execution procedure has been shown in Figure 9.With the user interface, the process is designated to monitor the status of each node in the server farm.MSHEFT algorithm for scheduling optimization together with platform selection has decided to choose an appropriate platform for execution according to the current status monitored through user interface.The proposed approach including MSHEFT algorithm plus platform selection can be denoted MSHEFT-PS in this paper.When the analytics task has finished, the results will be stored back to HDFS and the whole process will be terminated.In addition, job scheduling using first-come-first-serve FCFS will be adopted for each single analytics platform Rhadoop or SparkR, denoted FCFS-SP, in the experiment to check how it performs as a single platform applied.Furthermore, the platform selection mechanism integrated FCFS, denoted FCFS-PS, has also been employed to test the system performance under the condition of remaining amount of memory in a virtual machine in which a certain node has been resident.

Performance Evaluation.
In order to compare the computation efficiency among the several algorithms, the performance index [2] has been evaluated based on the necessitated equations, which are derived first from measuring access time of data of a single item for a certain dataset on (1), next calculating average access time based on a variety of data size among the datasets on (2), then inducing a normalized performance index among the datasets on (3), and finally resulting in a performance index according to a series of tests on (4).In these equations we denote the subscript  the index of data size,  the index of dataset, and  the index of test condition and the subscript  indicates a single item in a specific dataset.Eq. (1) calculates the average access time (AAT) for each data size.In (1), AAT  represents average access time with the same data size, and   stands for the current data size.Eq. ( 2) calculates the average access times overall AAT   for each test (i.e., write, read, and compute) on a specific platform, in which AAT   represents the average access time of each dataset; please refer back to (1), and   stands for weight for a weighted average.The following formula will evaluate the performance index (PI) [10].Eq. (3) calculates the normalized performance index for a specific platform.Eq. ( 4) calculates the performance index overall for a specific platform, SF 1 is a constant value that is used here to quantify the value of performance index in the range 0-100, and   stands for weight for a weighted average.

Experimental Results and Discussion
This section categories data into simulation data and actual data for test with two cases; the first case (Case 1) uses the test data generated randomly with Java programming; the second case (Case 2) adopts the actual data collected from the Internet.Proxmox Virtual Environment can be used to dynamically adjust the resource allocation to set up the experimental environments according to different memory remaining amounts, as listed in Table 2, so as to implement effect tests on various platforms.

Generated Data Set and Experimental Environment for
Case 1. Case 1 tests each platform with first-come-first-serve algorithm to perform different sizes of test data, R commands having different complexity, and different priorities to all of queries so as to compare the execution time in various environments as is shown in Table 2. R commands for test are as shown in Table 3.In this experiment, there are three methods applied to test.The first approach uses first-comefirst-serve algorithm (FCFS) for each single platform RHaoop or SparkR, denoted FCFS-SP.The second one is an optimized platform selection (PS) utilized to choose an appropriate platform for execution according to the remaining amount of memory in a virtual machine but it is still based on FCFS, thus denoted FCFS-PS.The third method introduced the optimization for job scheduling using MSHEFT algorithm employed to reschedule all of input queries in an ascending order in a job queue according to the smallest size of data file first.Once a job has been dequeued and launched, it based on PS will also choose an appropriate platform for execution, thereby denoted MSHEFT-PS.In short, three approaches including FCFS-SP, FCFS-PS, and MSHEFT-PS will be implemented in this paper.The test methods are shown in Table 4.With four fields, test data have been randomly generated with Java programming where the first column is the name of the only key string, the second column is random integer from 0 to 99, the third column is a random integer from 100 to 199, and the fourth column is the generated integer sequence number.Designated data size for test is shown in Table 5.  7 and 8.This shows that the proposed approach outperforms the others in Case 1.  11.Notice that the performance of our proposed approach is superior to the others in Case 2.

Discussion.
There is no specific mechanism so far to estimate job execution time for Rhadoop or SparkR.According to the report in Apache Spark website at https://spark .apache.org/, it noted that run programs up to 100x faster than Hadoop MapReduce in memory, or 10x faster on disk.Technically speaking, SparkR job execution will similarly be up to 100x faster than RHadoop job execution in-memory, or up to 10x on disk as mentioned above.In this paper, the experiments show that run program for a specific job using SparkR is up to 9.7x faster than RHadoop.However, the average in SparkR job execution is nearly 3.9x faster than RHadoop job execution.

Conclusion
This paper found that even though the analytics platforms have the same configuration and functions, their performance still has resulted in different efficiency in different experimental conditions when applying scheduling optimization for multiple big data analytics platforms.The performance efficiency can be greatly improved by making the optimization for job scheduling, automatically detecting clustering state, and then choosing an appropriate platform for job processing.According to the experiments in Case 1 with simulation data and Case 2 with actual data, it is found that the remaining amount of memory is less and the scale of

Figure 1 :
Figure 1: Data retrieval and data analytics Stack.

Figure 6 :Figure 7 :
Figure 6: Cloud computing with high performance, high availability, and high scalability.

2 :
The MSHEFT algorithm. of memory."In Algorithm 2, the pseudocode of MSHEFT algorithm has been presented.Job processing flow chart is shown in Figure8.

Figure 8 :Figure 9 :
Figure 8: Job processing flow chart with MSHEFT algorithm and platform selection.

Figure 10 :
Figure 10: Execution time of R command I in test environment I of Case 1.

Figure 13 :Figure 14 :Figure 15 :
Figure 13: Execution time of R command I in test environment II of Case 1.

Figure 16 :Figure 17 :
Figure 16: Execution time of experimental environment I in Case 2.

Table 1 :
Recipe of compatibility packages.
Case 1.As a11esult, two platforms, RHadoop and SparkR, have performed for several test data sets with different priorities, data sizes, and R commands.As listed in Table6, the proposed approach MSHEFT-PS has been implemented in the different order of jobs in a queue when comparing with the other methods.Performance comparisons of test are shown inFigures 10,11, 12, 13, 14, and 15.The average execution time of proposed approach MSHEFT-PS is faster than the other methods, FCFS-SP and FCFS-PS.The normalized performance index and performance index are listed in Tables Experimental Environment for Case 2. Case 2 has collected the actual data sets and the designated data size for test as shown in Table 9.The concerned approaches as listed in Table 3 have applied for measuring the average execution time according to different data themes.Similarly, Table 1 has listed two test environments and R command I test is listed in Table 2 as well.4.4.Experimental Results in Case 2. Executable job list in Case 2 is shown in Table 10.Performance comparisons of test are shown in Figures16 and 17.The experimental results show that the average execution time of the proposed approach MSHEFT-PS is much lower than the other methods, FCFS-SP and FCFS-PS, over three different conditions.The normalized performance index and performance index are listed in Table

Table 3 :
R command test.
tance of scheduling optimization and platform selection.In addition to the job scheduling using MSHEFT algorithm and optimized platform selection proposed in this paper, this system is capable of integrating new analytics platform to it by adding new big data analytics tools with related R shells to system, without any further changes in others.Figure 12: Execution time of R command III in test environment I of Case 1.

Table 5 :
Designated data size and its priority in Case 1.

Table 6 :
Executable job list in Case 1.

Table 7 :
Normalized performance index in Case 1.

Table 8 :
Average normalized performance index and performance index in Case 1.

Table 9 :
Designated data size and its priority in Case 2.