Download Data Management Tools for Scientific Analytics and more Lecture notes Database Management Systems (DBMS) in PDF only on Docsity!
Data Management Tools for Scientific Analytics
Magdalena Balazinska - Computer Science Dept. - University of Washington
The scientific research landscape is changing. Scientists have the ability to generate data at an unprecedented
scale and rate: lab techniques are becoming high-throughput; remote sensing deployments are more pervasive and
use higher-resolution sensors than ever before; and simulations on high-performance computing (HPC) platforms
significantly expand the resolution of spatial and temporal events. As a result, science is becoming a data manage-
ment problem. Hypotheses can now be tested by evaluating queries over massive datasets in secondary storage — in
ferro experiments — rather than relying solely on in situ (field), in vitro (lab), and in silico (simulation) experiments
as primary means of scientific discovery. This trend is further accelerated by the massive datasets that are collected,
curated, and shared by entire communities of scientists (Boeckmann et al., 2003; IRIS; LSST; SDSS).
This data deluge presents great opportunities to scientific advancement. The challenge, however, is the difficulty
to manage and analyze all this available data. Data analysis is the new bottleneck to discovery.
Below, we discuss existing data management tools, the opportunities and challenges that they represent, and
some of the relevant research that is currently ongoing in the computer science database community. In particular,
in the database group at the University of Washington, we have a project called Nuage (http://nuage.cs.
washington.edu) that aims at addressing some of the problems described below. We highlight our findings and
contributions when appropriate.
1 Relational Databases Management Systems
For the past 40 years, the database community has developed relational database management systems. These
tools can both execute on a single machine or they can harness the power of a cluster of machines. We first discuss
what these mature tools have to offer and the challenges behind exploiting them for scientific data analytics.
1.1 Opportunity
Existing (parallel) database management systems, such as SQL Server (Microsoft1; Microsoft2), Oracle (Oracle;
Pruscino, 2003), DB2 (IBM1; IBM2), Teradata (Teradata), and Greenplum (Greenplum) can potentially facilitate
scientific data analysis tasks. Each system is equipped with a high-level language (SQL). SQL queries are compiled
into a graph of operators called a query plan. The query plan is then executed as a program that can run on a single
machine or can be distributed across a cluster of machines. The query plan transforms input data into higher-level
data products.
Because database management systems are mature tools, they are designed for and have extensively been applied
to processing large datasets (up to Petabytes). In particular, database systems include power features such as indexes,
a query optimizer, materialized views, and more. They can thus process vast amounts of data very efficiently.
Furthermore, the SQL query language is declarative and it is relatively easy to write at least simple SQL queries.
One can thus analyze data without having to manually write programs or scripts.
1.2 Challenges
The ability of database management systems to support realistic scientific analysis is not clear; some argue that
these systems are wholly ill-suited to the task (Stonebraker et al., 2009). Some of their key limitations include: wrong
data model (tables instead of, for example, multidimensional arrays), wrong operators (e.g., relational operators
instead of specialized scientific operations, lack of integrated support for complex statistical operations on data,
etc.), unnecessary features (e.g., why pay the overhead of supporting ACID transactions?), missing features (e.g.,
provenance, versioning, uncertainty, etc.).
Database systems are also hard to setup and learn. They typically require a database administrator to setup,
operate, and tune. They also require that users create rigid schemas for their data and upload their data into the
engine before running any queries on the data. Both steps can be painful and a significant barrier to adoption.
1.3 Some Solutions
In spite of the above limitations, many groups have used database systems successfully for science data. The Sloan
Digital Sky Survey (SDSS) (SDSS) is the poster-child example. The SDSS, completed in 2008, had a transformative
effect in Astronomy. This effect is attributable not only to the value of the data it generated, but due to how that data
was organized and presented to the world. The SkyServer project enabled anyone to perform their own analysis —
researchers, students, and the general public — using SQL and a collection of simple web services. In the Nuage
project at the University of Washington, we have also done some recent work where we have successfully used a
relational database management system to analyze astronomy simulation data (Loebman et al., 2009). These are just
two examples but many other groups have benefited from using relational database management systems in their
work.
There is also significant ongoing work that tries to address the limitations of existing database management
systems. One project at the University of Washington, called SQLShare (Howe), enables scientists to upload spread-
sheets and start to query them directly with SQL without any database setup, schema design, or data reformatting
steps. In the Nuage project, we have built a system called SnipSuggest (Khoussainova et al., 2011) that assists sci-
ence users in the SQL query composition process by recommending potentially useful SQL snippets based on the
partial query that the user wrote so far. There are also several efforts in the database community to add features such
as provenance, uncertainty, and others to existing database systems with the specific aim of supporting science users.
Finally, a key new project called SciDB (Rogers et al., 2010) is building a scientific, parallel, database management
system from the ground up. The first release of this system is scheduled for this Fall 2010.
2 Data-Intensive Scalable Computing Systems
A few years ago, a new type of massive-scale data processing platforms have emerged based on Google’s MapRe-
duce (Dean and Ghemawat, 2004) paradigm or equivalent alternatives (e.g., Dryad (Isard et al., 2007)).
2.1 Opportunity
Similar to parallel database management systems, MapReduce-type systems provide the following benefits:
(1) they run on inexpensive shared-nothing clusters; (2) they now provide quick-to-program, declarative inter-
faces (Hive; Olston et al., 2008); and (3) they manage all task parallelization, execution, and failure-handling chal-
lenges. These frameworks thus hold the promise to enable cost-effective, massive-scale data analysis.
In contrast to parallel database systems, MapReduce-type systems have the added advantage that they do not
require any schema design, nor complex data loading phases. They are also designed to scale to larger-sized clusters
than relational databases (thousands of machines instead of tens to hundreds of machines) and they make it easier
for users to write specialized user-defined operations to transform their data.
2.2 Challenges
While the above opportunities make MapReduce-type systems very attractive, they are still difficult to exploit for
scientific analytics.
Many researchers have converted science algorithms into the MapReduce framework (e.g., gene sequencing (Schatz,
2009), data clustering (Kwon et al., 2010b), other data mining algorithms (Apache1)). However, the conversion is
not trivial as reported in these papers. Additionally, it is difficult for users to convert their analysis tasks in a manner
that leads to high-performance (Kwon et al., 2010b; Schatz, 2009). In general, it is difficult for users to understand
the performance they are getting from these systems and get the best out of them. Hence, while it is easier to get
started with these systems, the time-to-efficient-solution remains too high for ad-hoc analytics. For complex analy-
sis, MapReduce systems have also been found to be often much slower than parallel database systems (Pavlo et al.,
References
AMAZON1, Amazon Elastic MapReduce. http://aws.amazon.com/elasticmapreduce/.
AMAZON2, Amazon Relational Database Service (RDS). http://www.amazon.com/rds/.
AMAZON3, Amazon SimpleDB. http://www.amazon.com/simpledb/.
AMAZON4, Amazon Web Services (AWS). http://aws.amazon.com.
APACHE1, Apache Mahout. http://mahout.apache.org/.
BABU, S. (2010). Towards automatic optimization of MapReduce programs. In ACM Symposium on Cloud Computing (SOCC), 137–142.
BOECKMANN, B., BAIROCH, A., APWEILER, R., BLATTER, M. C., ESTREICHER, A., GASTEIGER, E., ET AL. (2003). The SWISS-PROT protein knowledgebase and its supplement TrEMBL in 2003. Nucleic Acids Research 31 (1), 365–370, URL http://www.ncbi.nlm.nih.gov/entrez/query.fcgi?cmd=Retrieve&d%b=pubmed
&dopt=Abstract&list_uids=12520024.
BU, Y., HOWE, B., BALAZINSKA, M., AND ERNST, M. D. (2010). HaLoop: Efficient iterative data processing on large clusters. Proc. of the VLDB Endowment 3 (1).
DAS, S., SISMANIS, Y., BEYER, K. S., GEMULLA, R., HAAS, P. J., AND MCPHERSON, J. (2010). Ricardo: integrating r and hadoop. In SIGMOD’10: Proc. of the ACM SIGMOD Int. Conf. on Management of Data, 987–998.
DEAN, J. AND GHEMAWAT, S. (2004). MapReduce: simplified data processing on large clusters. In Proc. of the 6th USENIX Symp. on Operating Systems Design & Implementation (OSDI).
GOOGLE1, Google App Engine. http://code.google.com/appengine/.
GOOGLE2, Google App Engine Datastore. http://code.google.com/appengine/docs/datastore/.
GOOGLE3, Google Fusion Tables. http://tables.googlelabs.com/public/tour/tour1.html.
GREENPLUM, Greenplum database. http://www.greenplum.com/.
HIVE. http://hadoop.apache.org/hive/.
HOWE, B., SQLShare: Database-as-a-service for researchers. http://escience.washington.edu/sqlshare.
IBM1, IBM DB2. http://www-01.ibm.com/software/data/db2/.
IBM2, IBM zSeries SYSPLEX. http://publib.boulder.ibm.com/infocenter/dzichelp/v2r2/index. jsp?topic=%/com.ibm.db2.doc.admin/xf6495.htm.
IRIS, Incorporated Research Institutions for Seismology. http://www.iris.edu/.
ISARD, M., BUDIU, M., YU, Y., BIRRELL, A., AND FETTERLY, D. (2007). Dryad: Distributed data-parallel programs from sequential building blocks. In Proc. of the European Conference on Computer Systems (EuroSys), 59–72.
KHOUSSAINOVA, N., KWON, Y., BALAZINSKA, M., AND SUCIU, D. (2011). SnipSuggest: A context-aware SQL- autocomplete system. Proc. of the VLDB Endowment 4 (1).
KO, S. Y., HOQUE, I., CHO, B., AND GUPTA, I. (2010). Making cloud intermediate data fault-tolerant. In ACM Symposium on Cloud Computing (SOCC), 181–192.
KWON, Y., BALAZINSKA, M., HOWE, B., AND ROLIA, J. (2010a). Skew-resistant parallel processing of feature-extracting scientific user-defined functions. In ACM Symposium on Cloud Computing (SOCC).
KWON, Y., NUNLEY, D., GARDNER, J. P., BALAZINSKA, M., HOWE, B., AND LOEBMAN, S. (2010b). Scalable clustering algorithm for N-body simulations in a shared-nothing cluster. In 22nd international conference on scientific and statistical database management (SSDBM).
LOEBMAN, S., NUNLEY, D., KWON, Y., HOWE, B., BALAZINSKA, M., AND GARDNER, J. P. (2009). Analyzing massive astrophysical datasets: Can Pig/Hadoop or a relational DBMS help? In Proceedings of the Workshop on Interfaces and Architectures for Scientific Data Storage.
LOGOTHETIS, D., OLSTON, C., REED, B., WEBB, K. C., AND YOCUM, K. (2010). Stateful bulk processing for incremental analytics. In ACM Symposium on Cloud Computing (SOCC), 51–62.
LSST, Large Synoptic Survey Telescope. http://www.lsst.org/.
LU, W., JACKSON, J., AND BARGA, R. (2010). AzureBlast: A case study of developing science applications on the cloud. In Proc. of the 1st Workshop on Scientific Cloud Computing (Science Cloud 2010).
MICROSOFT1, Microsoft SQL server. http://www.microsoft.com/sqlserver/.
MICROSOFT2, Administering SQL Server (SQL Server 2000) configuring linked servers. http://msdn.microsoft. com/en-us/library/aa213778%28SQL.80%29.aspx.
MICROSOFT3, Microsoft SQL Azure. http://www.microsoft.com/windowsazure/sqlazure/.
MICROSOFT4, Windows Azure Platform. http://www.microsoft.com/windowsazure/.
MICROSOFT5, Windows Azure Storage Services REST API Reference. http://msdn.microsoft.com/en-us/ library/dd179355.aspx.
MORTON, K., BALAZINSKA, M., AND GROSSMAN, D. (2010a). ParaTimer: A progress indicator for MapReduce DAGs. In SIGMOD’10: Proc. of the ACM SIGMOD Int. Conf. on Management of Data.
MORTON, K., FRIESEN, A., BALAZINSKA, M., AND GROSSMAN, D. (2010b). Estimating the progress of MapReduce pipelines. In Proc. of the 26th Int. Conf. on Data Engineering (ICDE).
OLSTON, C., REED, B., SRIVASTAVA, U., KUMAR, R., AND TOMKINS, A. (2008). Pig latin: a not-so-foreign language for data processing. In SIGMOD’08: Proc. of the ACM SIGMOD Int. Conf. on Management of Data, 1099–1110.
ORACLE. http://www.oracle.com/database.
PAVLO, A., PAULSON, E., RASIN, A., ABADI, D. J., DEWITT, D. J., MADDEN, S., ET AL. (2009). A comparison of approaches to large-scale data analysis. In SIGMOD’09: Proc. of the ACM SIGMOD Int. Conf. on Management of Data, 165–178.
PRUSCINO, A. (2003). Oracle RAC: Architecture and performance. In SIGMOD’03: Proc. of the ACM SIGMOD Int. Conf. on Management of Data, 635.
ROGERS, J., SIMAKOV, R., SOROUSH, E., VELIKHOV, P., BALAZINSKA, M., DEWITT, D., ET AL. (2010). Overview of SciDB: Large scale array storage, processing and analysis. In SIGMOD’10: Proc. of the ACM SIGMOD Int. Conf. on Management of Data.
SCHATZ, M. C. (2009). CloudBurst: highly sensitive read mapping with MapReduce. Bioinformatics 25 (11), 1363–1369.
SDSS, Sloan Digital Sky Survey. http://cas.sdss.org.
STONEBRAKER, M., BECLA, J., DEWITT, D., LIM, K.-T., MAIER, D., RATZESBERGER, O., ET AL. (2009). Requirements for science data bases and SciDB. In Fourth Biennial Conf. on Innovative Data Systems Research (CIDR) – Perspectives.
TERADATA. http://www.teradata.com/.
WATSON, P., Cloud computing for chemical property prediction. Talk at Cloud Futures 2010.
XU, Y., KOSTAMAA, P., AND GAO, L. (2010). Integrating hadoop and parallel dbms. In SIGMOD’10: Proc. of the ACM SIGMOD Int. Conf. on Management of Data, 969–974.