• zookeeper伪分布式部署

    发布于:2018-07-03 作者:Garany 评论(0) 引用(0) 浏览(189)   分类:破万卷书  

    1.下载安装 # wget http://mirrors.hust.edu.cn/apache/zookeeper/zookeeper-3.4.10/zookeeper-3.4.10.tar.gz -P /usr/local/src/ # cd /usr/local/src/ # tar zxvf zookeeper-3.4.10.tar.gz  # mv zookeeper-3.4.10 /opt/zookeeper 2.配置三个server # cd /opt/ # mv zookeeper/ zookeeper-1 # mv zookeeper/conf/zoo_sample.cfg zookeeper/conf/zoo.cfg # cp -r  zookeeper-1/ zookeeper-2 # cp -r  zookeeper-1/ zookeeper-3 # sed -n '/^[^#]/p' /opt/zookeeper-1/conf/zoo.cfg  tickTime=2000 initLimit=...

    阅读全文>>

  • hadoop伪分布式部署

    发布于:2018-07-03 作者:Garany 评论(0) 引用(0) 浏览(197)   分类:破万卷书  

    Hadoop 1. HDFS 1.1 NameNode 主节点 1.2 DataNode 从节点 1.3 SecondaryNameNode 主节点 2. MapReduce 2.1 JobTracker 主节点 2.2 TaskTracker 从节点 1.配置免密码登录 # ssh-keygen -t rsa # mv /root/.ssh/id_rsa.pub /root/.ssh/authorized_keys 2.安装java # cd /opt/ # tar zxvf jdk-8u91-linux-x64.tar.gz # mv jdk1.8.0_91/ java # vim /etc/profile.d/java.sh JAVA_HOME=/opt/java PATH=$PATH:$JAVA_HOME/bin CLASSPATH=/opt/java/lib/dt.jar:/opt/java/lib/tools.jar export JAVA_HOME PATH  CLASSPATH # source /etc/profile.d/java...

    阅读全文>>