hostnamectl set-hostname node1
hostnamectl set-hostname node2
hostnamectl set-hostname node3
cat >> /etc/hosts << EOF
172.16.16.101 node1
172.16.16.102 node2
172.16.16.103 node3
EOF
ssh-keygen -t rsa -P '' -f ~/.ssh/id_rsa
ssh-copy-id -i ~/.ssh/id_rsa.pub vagrant@node1
ssh-copy-id -i ~/.ssh/id_rsa.pub vagrant@node2
ssh-copy-id -i ~/.ssh/id_rsa.pub vagrant@node3
export PDSH_RCMD_TYPE=ssh
export M2_HOME=/home/vagrant/apache-maven-3.8.4
export JAVA_HOME=/home/vagrant/jdk1.8.0_311
export PATH=$JAVA_HOME/bin:$M2_HOME/bin:$HIVE_HOME/bin:$PATH
https://archive.apache.org/dist/hadoop/common/hadoop-2.7.3/
https://hadoop.apache.org/docs/r2.7.3/
https://archive.apache.org/dist/spark/spark-3.0.0/
https://blog.csdn.net/u012551524/article/details/105787109
mvn clean package -Dmaven.test.skip=true
mvn clean package -DskipTests -Dspark3 -Dscala-2.12 -Drat.skip=ture -Pflink-bundle-shade-hive3
hive 2.3.1 => 3.1.2
网友评论