From e2e9f02d81fe097526bc7447f2a17a106a4293f4 Mon Sep 17 00:00:00 2001
From: darmac <xiaojun2@hisilicon.com>
Date: Tue, 14 Jan 2020 11:01:27 +0800
Subject: [PATCH] add new package : hive (#14443)

---
 .../repos/builtin/packages/hive/package.py    | 27 +++++++++++++++++++
 1 file changed, 27 insertions(+)
 create mode 100644 var/spack/repos/builtin/packages/hive/package.py

diff --git a/var/spack/repos/builtin/packages/hive/package.py b/var/spack/repos/builtin/packages/hive/package.py
new file mode 100644
index 0000000000..a32e08a80c
--- /dev/null
+++ b/var/spack/repos/builtin/packages/hive/package.py
@@ -0,0 +1,27 @@
+# Copyright 2013-2020 Lawrence Livermore National Security, LLC and other
+# Spack Project Developers. See the top-level COPYRIGHT file for details.
+#
+# SPDX-License-Identifier: (Apache-2.0 OR MIT)
+
+from spack import *
+
+
+class Hive(Package):
+    """
+    The Apache Hive data warehouse software facilitates reading, writing,
+    and managing large datasets residing in distributed storage using SQL.
+    Structure can be projected onto data already in storage. A command line
+    tool and JDBC driver are provided to connect users to Hive.
+    """
+
+    homepage = "https://hive.apache.org/"
+    url      = "https://www.apache.org/dist/hive/hive-3.1.2/apache-hive-3.1.2-bin.tar.gz"
+
+    version('3.1.2', sha256='d75dcf36908b4e7b9b0ec9aec57a46a6628b97b276c233cb2c2f1a3e89b13462')
+    version('2.3.6', sha256='0b3736edc8d15f01ed649bfce7d74346c35fd57567411e9d0c3f48578f76610d')
+    version('1.2.2', sha256='763b246a1a1ceeb815493d1e5e1d71836b0c5b9be1c4cd9c8d685565113771d1')
+
+    depends_on('hadoop', type='run')
+
+    def install(self, spec, prefix):
+        install_tree('.', prefix)
-- 
GitLab