linux install big data software

1. Install ipconfig

yum install net-tools.x86_64

2. Install wget

yum install wget

3. Install Scala

mkdir /usr/local/scala
mv scala-2.13.0.tgz /usr/local/scala
tar -zxvf scala-2.13.0.tgz
vim /etc/profile
#增加配置
export SCALA_HOME=/usr/local/scala/scala-2.13.0
export SCALA_PATH=${SCALA_HOME}/bin

export JAVA_HOME=/usr/local/java/jdk1.8
export JRE_HOME=${JAVA_HOME}/jre
export CLASSPATH=.:${JAVA_HOME}/lib:${JRE_HOME}/lib:$CLASSPATH
export JAVA_PATH=${JAVA_HOME}/bin:${JRE_HOME}/bin

export PATH=$PATH:${JAVA_PATH}:${SCALA_PATH}

. /etc/profile
scala -version

4. build a zookeeper cluster

mkdir /usr/local/zookeeper
mv zookeeper-3.4.6.tar.gz /usr/local/zookeeper
cd /usr/local/zookeeper
tar -zxvf zookeeper-3.4.6.tar.gz
cd zookeeper-3.4.6/conf/
cp zoo_sample.cfg zoo.cfg
vi zoo.cfg
###########配置文件内容############
# The number of milliseconds of each tick
tickTime=2000
# The number of ticks that the initial
# synchronization phase can take
initLimit=10
# The number of ticks that can pass between
# sending a request and getting an acknowledgement
syncLimit=5
# the directory where the snapshot is stored.
####此处需要修改
dataDir=/data/zookeeper
# the port at which the clients will connect
clientPort=2181
####此处需要新增,
server.1=bigdata1:2888:3888
server.2=bigdata2:2888:3888
server.3=bigdata3:2888:3888
############配置文件结束#############
mkdir -p /data/zookeeper
cd /data/zookeeper
echo 1 > myid

vi /etc/profile
######追加内容#######
export ZOOKEEPER_HOME=/usr/local/zookeeper/zookeeper-3.4.6
export ZOOKEEPER_PATH=${ZOOKEEPER_HOME}/bin
######追加内容#######
. /etc/profile
#启动zookeeper
zkServer.sh start

Modify the hostname

vi /etc/hosts
#########文件内容########
192.168.162.11 bigdata1
192.168.162.12 bigdata2
192.168.162.13 bigdata3

Installation telnet

yum install telnet

problem:

telnet virtual machine No route to host a solution to
know ip address of the virtual machine, and can ping through
but nowhere even telnet

solution

The virtual machine firewall clear about

sudo iptables -F

Published 10 original articles · won praise 1 · views 726

Guess you like

Origin blog.csdn.net/qq_37012496/article/details/104051884