Skip to content

Commit

Permalink
refactor(docker/hive): tweak start.sh and hive-dependency.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
unknowntpo committed Jul 17, 2024
1 parent ff2474c commit d3349a6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion dev/docker/hive/hive-dependency.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ hive_dir="$(cd "${hive_dir}">/dev/null; pwd)"
# Environment variables definition
#HADOOP_VERSION=${HADOOP_VERSION:-"2.7.3"}
HADOOP2_VERSION="2.7.3"
HADOOP3_VERSION="3.2.1"
HADOOP3_VERSION="3.1.0"
#HIVE_VERSION=${HIVE_VERSION:-"2.3.9"}

HIVE2_VERSION="2.3.9"
Expand Down
5 changes: 5 additions & 0 deletions dev/docker/hive/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,11 @@ cp /opt/hadoop-conf/* ${HADOOP_CONF_DIR}
# Link mysql-connector-java after deciding where HIVE_HOME symbolic link points to.
ln -s /opt/mysql-connector-java-${MYSQL_JDBC_DRIVER_VERSION}/mysql-connector-java-${MYSQL_JDBC_DRIVER_VERSION}.jar ${HIVE_HOME}/lib

# Fix guava problem
# See https://issues.apache.org/jira/browse/HIVE-22915
rm ${HIVE_HOME}/lib/guava-*.jar
cp ${HADOOP_HOME}/share/hadoop/hdfs/lib/guava-*-jre.jar ${HIVE_HOME}/lib/

# install Ranger hive plugin
if [[ -n "${RANGER_HIVE_REPOSITORY_NAME}" && -n "${RANGER_SERVER_URL}" ]]; then
# If Hive enable Ranger plugin need requires zookeeper
Expand Down

0 comments on commit d3349a6

Please sign in to comment.