Ubuntu 安裝hive + mysql
阿新 • • 發佈:2018-11-10
先安裝mysql
sudo apt-get update
sudo apt-get install mysql-server
sudo mysql_secure_installation
具體詳情請另查。
注意:mysql 5.7.24 會有安全檢測之類,可能需要降低安全機制:
詳見:https://blog.csdn.net/u014236541/article/details/78244601
1. 通過tar -zxvf ....hive.tar.gz -C /soft 解壓安裝hive
- 進入conf/目錄:
- cp hive-default.xml.template hive-default.xml
-
<
-
- cp hive-env.sh.template hive-env.sh
-
# Set HADOOP_HOME to point to a specific hadoop install directory HADOOP_HOME=/soft/hadoop-2.5.0-cdh5.3.6 # Hive Configuration Directory can be controlled by: export HIVE_CONF_DIR=/soft/hive-0.13.1-cdh5.3.6/conf # Folder containing extra ibraries required for hive compilation/execution can be controlled by: # export HIVE_AUX_JARS_PATH= [email protected]:/soft/hive-0.13.1-cdh5.3.
3. cp hive-exec-log4j.properties.template hive-exec-log4j.properties 顯示日誌
-
- cp hive-default.xml.template hive-default.xml