Mirror of Apache Hive
Switch branches/tags
release-X.Y.Z-rc0 release-2.1.0-rc3 release-2.1.0-rc2 release-2.1.0-rc1 release-2.1.0-rc0 release-2.0.1 release-2.0.1-rc1 release-2.0.1-rc0 release-2.0.0 release-2.0.0-rc3 release-2.0.0-rc2 release-2.0.0-rc1 release-2.0.0-rc0 release-1.2.1 release-1.2.1-rc0 release-1.2.0 release-1.2.0-rc5 release-1.2.0-rc4 release-1.2.0-rc3 release-1.2.0-rc2 release-1.2.0-rc1 release-1.2.0-rc0 release-1.1.1 release-1.1.1-rc2 release-1.1.1-rc1 release-1.1.1-rc0 release-1.1.0 release-1.1.0-rc3 release-1.1.0-rc2 release-1.1.0-rc1 release-1.1.0-rc0 release-1.0.1 release-1.0.1-rc2 release-1.0.1-rc1 release-1.0.1-rc0 release-1.0.0 release-1.0.0-rc2 release-0.14.0 release-0.14.0-rc0 release-0.13.1 release-0.13.1-rc3 release-0.13.1-rc2 release-0.13.1-rc1 release-0.13.1-rc0 release-0.13.0 release-0.13.0-rc2 release-0.13.0-rc1 release-0.13.0-rc0 release-0.12.0 release-0.12.0-rc1 release-0.12.0-rc0 release-0.11.0 release-0.11.0rc2 release-0.11.0-rc1 release-0.11.0-rc0 release-0.10.0 release-0.10.0-rc0 release-0.9.0 release-0.9.0-rc2 release-0.9.0-rc1 release-0.9-rc0 release-0.8.1 release-0.8.1-rc1 release-0.8.1-rc0 release-0.8.0 release-0.8.0-rc4 release-0.8.0-rc3 release-0.8.0-rc2 release-0.8.0-rc1 release-0.8.0-rc0 release-0.7.1 release-0.7.1-rc0 release-0.7.0 release-0.7.0-rc1 release-0.6.0 release-0.6.0-rc0 release-0.5.0 release-0.5.0-rc0 release-0.4.1 release-0.4.1-rc2 release-0.4.1-rc1 release-0.4.1-rc0 release-0.4.0 release-0.4.0-rc1 release-0.4.0-rc0 release-0.3.0 release-0.3.0-rc1 release-0.3.0-rc0 rel/release-2.1.0 master_2015_11_30
Nothing to show
Clone or download
Pull request Compare This branch is 3893 commits behind apache:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
accumulo-handler
ant
beeline
bin
checkstyle
cli
common
conf
contrib
data
dev-support
docs
druid-handler
findbugs
hbase-handler
hcatalog
hplsql
hwi
itests
jdbc
lib
llap-client
llap-common
llap-ext-client
llap-server
llap-tez
metastore
orc
packaging
ql
serde
service-rpc
service
shims
spark-client
storage-api
testutils
.arcconfig
.checkstyle
.gitattributes
.gitignore
.reviewboardrc
.travis.yml
LICENSE
NOTICE
README.md
RELEASE_NOTES.txt
errata.txt
pom.xml

README.md

Apache Hive (TM)

Master Build Status Maven Central

The Apache Hive (TM) data warehouse software facilitates reading, writing, and managing large datasets residing in distributed storage using SQL. Built on top of Apache Hadoop (TM), it provides:

  • Tools to enable easy access to data via SQL, thus enabling data warehousing tasks such as extract/transform/load (ETL), reporting, and data analysis

  • A mechanism to impose structure on a variety of data formats

  • Access to files stored either directly in Apache HDFS (TM) or in other data storage systems such as Apache HBase (TM)

  • Query execution using Apache Hadoop MapReduce, Apache Tez or Apache Spark frameworks.

Hive provides standard SQL functionality, including many of the later 2003 and 2011 features for analytics. These include OLAP functions, subqueries, common table expressions, and more. Hive's SQL can also be extended with user code via user defined functions (UDFs), user defined aggregates (UDAFs), and user defined table functions (UDTFs).

Hive users have a choice of 3 runtimes when executing SQL queries. Users can choose between Apache Hadoop MapReduce, Apache Tez or Apache Spark frameworks as their execution backend. MapReduce is a mature framework that is proven at large scales. However, MapReduce is a purely batch framework, and queries using it may experience higher latencies (tens of seconds), even over small datasets. Apache Tez is designed for interactive query, and has substantially reduced overheads versus MapReduce. Apache Spark is a cluster computing framework that's built outside of MapReduce, but on top of HDFS, with a notion of composable and transformable distributed collection of items called Resilient Distributed Dataset (RDD) which allows processing and analysis without traditional intermediate stages that MapReduce introduces.

Users are free to switch back and forth between these frameworks at any time. In each case, Hive is best suited for use cases where the amount of data processed is large enough to require a distributed system.

Hive is not designed for online transaction processing. It is best used for traditional data warehousing tasks. Hive is designed to maximize scalability (scale out with more machines added dynamically to the Hadoop cluster), performance, extensibility, fault-tolerance, and loose-coupling with its input formats.

General Info

For the latest information about Hive, please visit out website at:

http://hive.apache.org/

Getting Started

Requirements

  • Java 1.7 or 1.8

  • Hadoop 1.x, 2.x (2.x required for Hive 2.x)

Upgrading from older versions of Hive

  • Hive includes changes to the MetaStore schema. If you are upgrading from an earlier version of Hive it is imperative that you upgrade the MetaStore schema by running the appropriate schema upgrade scripts located in the scripts/metastore/upgrade directory.

  • We have provided upgrade scripts for MySQL, PostgreSQL, Oracle, Microsoft SQL Server, and Derby databases. If you are using a different database for your MetaStore you will need to provide your own upgrade script.

Useful mailing lists

  1. user@hive.apache.org - To discuss and ask usage questions. Send an empty email to user-subscribe@hive.apache.org in order to subscribe to this mailing list.

  2. dev@hive.apache.org - For discussions about code, design and features. Send an empty email to dev-subscribe@hive.apache.org in order to subscribe to this mailing list.

  3. commits@hive.apache.org - In order to monitor commits to the source repository. Send an empty email to commits-subscribe@hive.apache.org in order to subscribe to this mailing list.