summaryrefslogtreecommitdiff
path: root/devel/hive/files
diff options
context:
space:
mode:
Diffstat (limited to 'devel/hive/files')
-rw-r--r--devel/hive/files/hiveserver2.in39
-rw-r--r--devel/hive/files/metastore.in38
-rw-r--r--devel/hive/files/patch-conf-hive-env.sh.template19
3 files changed, 0 insertions, 96 deletions
diff --git a/devel/hive/files/hiveserver2.in b/devel/hive/files/hiveserver2.in
deleted file mode 100644
index 49315a89b6a7..000000000000
--- a/devel/hive/files/hiveserver2.in
+++ /dev/null
@@ -1,39 +0,0 @@
-#!/bin/sh
-#
-# $FreeBSD$
-#
-# PROVIDE: hiveserver2
-# REQUIRE: LOGIN metastore
-# KEYWORD: shutdown
-#
-# hiveserver2_enable (bool): Set to NO by default.
-# Set it to YES to enable HiveServer2.
-
-. /etc/rc.subr
-
-export PATH=${PATH}:%%LOCALBASE%%/bin
-name=hiveserver2
-rcvar=hiveserver2_enable
-pidfile=%%HIVE_RUNDIR%%/${name}.pid
-
-load_rc_config "${name}"
-
-: ${hiveserver2_enable:=NO}
-hiveserver2_user=%%HIVE_USER%%
-
-start_cmd="hiveserver2_start"
-stop_cmd="hiveserver2_stop"
-command="%%PREFIX%%/hive/bin/hive"
-
-hiveserver2_start() {
- su -m %%HIVE_USER%% -c "HADOOP_OPTS=\"-Dhive.log.dir=%%HIVE_LOGDIR%% -Dhive.log.file=hiveserver2.log -Dhive.log.threshold=INFO\" $command --service $name > %%HIVE_LOGDIR%%/$name.out 2>&1 < /dev/null & "' echo $! '"> $pidfile"
-}
-
-hiveserver2_stop() {
- rc_pid=$(check_pidfile ${pidfile} %%JAVA_HOME%%/bin/java)
- if [ -n "$rc_pid" ]; then
- kill $rc_pid
- fi
-}
-
-run_rc_command "$1"
diff --git a/devel/hive/files/metastore.in b/devel/hive/files/metastore.in
deleted file mode 100644
index 9ac71cac7665..000000000000
--- a/devel/hive/files/metastore.in
+++ /dev/null
@@ -1,38 +0,0 @@
-#!/bin/sh
-#
-# $FreeBSD$
-#
-# PROVIDE: metastore
-# REQUIRE: LOGIN
-# KEYWORD: shutdown
-#
-# metastore_enable (bool): Set to NO by default.
-# Set it to YES to enable Hive metastore service.
-
-. /etc/rc.subr
-
-export PATH=${PATH}:%%LOCALBASE%%/bin
-name=metastore
-rcvar=metastore_enable
-pidfile=%%HIVE_RUNDIR%%/${name}.pid
-
-load_rc_config "${name}"
-
-: ${metastore_enable:=NO}
-
-start_cmd="metastore_start"
-stop_cmd="metastore_stop"
-command="%%PREFIX%%/hive/bin/hive"
-
-metastore_start() {
- su -m %%HIVE_USER%% -c "HADOOP_OPTS=\"-Dhive.log.dir=%%HIVE_LOGDIR%% -Dhive.log.file=metastore.log -Dhive.log.threshold=INFO\" $command --service ${name} > %%HIVE_LOGDIR%%/$name.out 2>&1 < /dev/null & "' echo $! '"> $pidfile"
-}
-
-metastore_stop() {
- rc_pid=$(check_pidfile ${pidfile} %%JAVA_HOME%%/bin/java)
- if [ -n "$rc_pid" ]; then
- kill $rc_pid
- fi
-}
-
-run_rc_command "$1"
diff --git a/devel/hive/files/patch-conf-hive-env.sh.template b/devel/hive/files/patch-conf-hive-env.sh.template
deleted file mode 100644
index 1422f4995cb6..000000000000
--- a/devel/hive/files/patch-conf-hive-env.sh.template
+++ /dev/null
@@ -1,19 +0,0 @@
---- conf/hive-env.sh.template.orig 2014-05-04 01:58:16.000000000 +0400
-+++ conf/hive-env.sh.template 2015-04-24 16:21:41.593157000 +0300
-@@ -45,10 +45,14 @@
-
-
- # Set HADOOP_HOME to point to a specific hadoop install directory
--# HADOOP_HOME=${bin}/../../hadoop
-+HADOOP_HOME=%%LOCALBASE%%
-
- # Hive Configuration Directory can be controlled by:
--# export HIVE_CONF_DIR=
-+export HIVE_CONF_DIR=%%PREFIX%%/hive/conf
-+
-+# workaround for java.lang.IncompatibleClassChangeError: Found class jline.Terminal, but interface was expected
-+# should be fixed in newer hive / hadoop versions.
-+export HADOOP_USER_CLASSPATH_FIRST=true
-
- # Folder containing extra ibraries required for hive compilation/execution can be controlled by:
- # export HIVE_AUX_JARS_PATH=