GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing spark.apache.org — Spark SQL & DataFrames | Apache Spark Spark SQL & DataFrames
Spark SQL is Apache Spark's module for working with structured data.
IntegratedSeamlessly mix SQL queries with Spark programs. Spark SQL lets you query structured data inside Spark programs, using either SQL or a familiar DataFrame API. Usable in Java, Scala, Python and R.
results = spark.sql(
"SELECT * FROM people") names = results.map(lambda p: p.name) Apply functions to results of SQL queries.
Uniform data accessConnect to any data source the same way. DataFrames and SQL provide a common way to access a variety of data sources, including Hive, Avro, Parquet, ORC, JSON, and JDBC. You can even join data across these sources.
spark.read.json("s3n://...")
.registerTempTable("json") results = spark.sql( """SELECT * FROM people JOIN json ...""") Query and join different data sources.
Hive integrationRun SQL or HiveQL queries on existing warehouses. Spark SQL supports the HiveQL syntax as well as Hive SerDes and UDFs, allowing you to access existing Hive warehouses.
Spark SQL can use existing Hive metastores, SerDes, and UDFs.
Standard connectivityConnect through JDBC or ODBC. A server mode provides industry standard JDBC and ODBC connectivity for business intelligence tools.
Use your existing BI tools to query big data.
Performance & scalabilitySpark SQL includes a cost-based optimizer, columnar storage and code generation to make queries fast. At the same time, it scales to thousands of nodes and multi hour queries using the Spark engine, which provides full mid-query fault tolerance. Don't worry about using a different engine for historical data. CommunitySpark SQL is developed as part of Apache Spark. It thus gets tested and updated with each Spark release. If you have questions about the system, ask on the Spark mailing lists. The Spark SQL developers welcome contributions. If you'd like to help out, read how to contribute to Spark, and send us a patch! Getting startedTo get started with Spark SQL:
Latest News
|
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |