Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Upgrade to Apache Phoenix 4.11.0 on HDP 2.5.3.0-37
#!/usr/bin/env bash
HDP_INSTALL_PATH=/usr/hdp/2.5.5.0-157
cd /tmp
wget http://redrockdigimark.com/apachemirror/phoenix/apache-phoenix-4.12.0-HBase-1.1/bin/apache-phoenix-4.12.0-HBase-1.1-bin.tar.gz
tar -xvf apache-phoenix-4.12.0-HBase-1.1-bin.tar.gz
cp -r apache-phoenix-4.12.0-HBase-1.1-bin ${HDP_INSTALL_PATH}/apache-phoenix-4.12.0
PHOENIX_INSTALL_DIR=${HDP_INSTALL_PATH}/apache-phoenix-4.12.0
chmod -R 755 ${PHOENIX_INSTALL_DIR}
rm -rf apache-phoenix-4.12.0-HBase-1.1-bin.tar.gz
rm -rf apache-phoenix-4.12.0-HBase-1.1-bin
all_files=(${HDP_INSTALL_PATH}/phoenix/phoenix-client.jar ${HDP_INSTALL_PATH}/phoenix/phoenix-hive.jar ${HDP_INSTALL_PATH}/phoenix/phoenix-server.jar ${HDP_INSTALL_PATH}/phoenix/phoenix-thin-client.jar ${HDP_INSTALL_PATH}/hbase/lib/phoenix-server.jar)
for upd_file in "${all_files[@]}"
do
rm -rf ${upd_file}
done
cd ${HDP_INSTALL_PATH}/phoenix
ln -s ${PHOENIX_INSTALL_DIR}/phoenix-4.12.0-HBase-1.1-client.jar phoenix-client.jar
ln -s ${PHOENIX_INSTALL_DIR}/phoenix-4.12.0-HBase-1.1-hive.jar phoenix-hive.jar
ln -s ${PHOENIX_INSTALL_DIR}/phoenix-4.12.0-HBase-1.1-server.jar phoenix-server.jar
ln -s ${PHOENIX_INSTALL_DIR}/phoenix-4.12.0-HBase-1.1-thin-client.jar phoenix-thin-client.jar
chmod -R 755 ${HDP_INSTALL_PATH}/phoenix
cd ${HDP_INSTALL_PATH}/hbase/lib
ln -s ${PHOENIX_INSTALL_DIR}/phoenix-4.12.0-HBase-1.1-server.jar phoenix-server.jar
echo "Done"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment