Table of contents
Linux installation and configuration Zookeeper
Linux installation and configuration Hadoop
Linux installation and configuration Zookeeper
new folder
mkdir /home/zookeeper
Download to specified folder
official website
wget https://dlcdn.apache.org/zookeeper/zookeeper-3.8.1/apache-zookeeper-3.8.1-bin.tar.gz -P /home/zookeeper/
Unzip to the specified file
tar xf /home/zookeeper/apache-zookeeper-3.8.1-bin.tar.gz -C /home/zookeeper/
Check
enter directory
cd apache-zookeeper-3.8.1-bin
Create log/data folder
mkdir -p tmp/data;cd tmp;mkdir logs;
copy configuration file
cd /home/zookeeper/apache-zookeeper-3.8.1-bin/conf/;cp zoo_sample.cfg zoo.cfg;
Use vim to enter zoo.cfg
Modify it as follows:
Record the path of zookeeper and then
vim /etc/profile
Refresh resources
source /etc/profile
run
zkServer.sh start
check status
zkServer.sh status
Linux installation and configuration Hadoop
Create folder plus file download
cd /home/;mkdir hadoop;wget https://mirrors.tuna.tsinghua.edu.cn/apache/hadoop/common/stable/hadoop-3.3.5.tar.gz -P /home/hadoop; enter the folder
unzip files
tar -zxvf /home/hadoop/hadoop-3.3.5.tar.gz -C /home/hadoop/
Open the environment variable configuration
export HADOOP_HOME=/home/hadoop/hadoop-3.3.5
export PATH=$HADOOP_HOME/bin:$HADOOP_HOME/sbin:$PATH
to refresh
source /etc/profile
Whether the verification is successful
hadoop version
Install Hbase on Linux
Here is the mirror station of Tsinghua University
Index of /apache/hbase (tsinghua.edu.cn)
https://mirrors.tuna.tsinghua.edu.cn/apache/hbase/2.4.17/hbase-2.4.17-bin.tar.gz
Create a folder and download
cd /home;mkdir hbase; wget https://mirrors.tuna.tsinghua.edu.cn/apache/hbase/2.4.17/hbase-2.4.17-bin.tar.gz -P /home/hbase
decompress
tar -zxvf /home/hbase/hbase-2.4.17-bin.tar.gz -C /home/hbase/
vim /etc/profile
Configure environment variables
vim /etc/profile
New environment variable
export HBASE_HOME=/home/hbase/hbase-2.4.17
export PATH=$HBASE_HOME/bin:$PATH
Refresh environment variables
source /etc/profile
Check for success
start-hbase.sh
fail
View the habse source file
before fixing
after modification
CLASSPATH="${HBASE_CONF_DIR}"
CLASSPATH=${CLASSPATH}:$JAVA_HOME/lib/tools.jar:/home/hbase/hbase-2.4.17/lib/*
start up
start-hbase.sh
Fail again! ! ! !
remove conflicting jars
rm /home/hbase/hbase-2.4.17/lib/client-facing-thirdparty/slf4j-reload4j-1.7.33.jar
start again
still error
Follow the prompts to kill process 2089
start or error
running master, logging to /home/hbase/hbase-2.4.17/logs/hbase-lancer-master-Lancer.out
Well, this seems to be a success haha! !