Last active
August 4, 2019 15:47
-
-
Save phaneesh/16f77539d1f1249aa9b0e5a847ce48a0 to your computer and use it in GitHub Desktop.
Upgrade to Apache Phoenix 4.11.0 on HDP 2.5.3.0-37
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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