hadoop hive-2.3.5 installation:
Unzip the file: [[email protected] opt]# tar -zxvf apache-hive-2.3.5-bin.tar.gz -C /opt
Establish a soft connection: [[email protected] opt]# ln -s apache-hive-2.3.5-bin/ hive
Enter the lib file: add maven Drag the mysql file in
Copy a file: [[emailprotected] conf]# cp hive-default.xml.template hive-site.xml
Modify the hive file: change the original Only the following picture is left for file deletion:
Add configuration file:
< span class="md-expand">
span>
span>
span>
span>
< /span>
span>
span>
Modify environment variables: (note the $ before PATH/HIVE)
export HIVE_HOME=/usr/soft/hive2.3.5
< p>export PATH=$PATH:$HIVE_HOME/bin
Activate: source /etc/profile
Create in sqlyog: hive database
In the conf file Next initialization: schematool -dbType mysql -initSchema
Check whether there are tables in the hive database in sqlyog.
This is OK!