Home > Database > Mysql Tutorial > hadoop在linux上的安装

hadoop在linux上的安装

WBOY
Release: 2016-06-07 14:58:49
Original
1384 people have browsed it

hadoop在linux上的安装 配置免密码登录 ssh-keygen -t dsa -P -f ~/.ssh/id_dsa cat ~/.ssh/id_dsa.pub ~/.ssh/authorized_keys test:ssh localhost hadoop环境变量 export JAVA_HOME=/usr/local/jdk export HADOOP_INSTALL=/usr/local/hadoop export PATH=

hadoop在linux上的安装

 

配置免密码登录

ssh-keygen -t dsa -P '' -f ~/.ssh/id_dsa

cat ~/.ssh/id_dsa.pub >> ~/.ssh/authorized_keys

 

test:ssh localhost

 

hadoop环境变量

export JAVA_HOME=/usr/local/jdk

export HADOOP_INSTALL=/usr/local/hadoop

export PATH=$PATH:$HADOOP_INSTALL/bin

 

修改hadoop配置

修改conf/core-site.xml

  fs.default.name

  hdfs://localhost:9000

 

修改conf/hdfs-site.xml

  dfs.replication

  1

 

修改conf/mapred-site.xml

  mapred.job.tracker

  localhost:9001

 

启动

./bin/hadoop namenode -format

./bin/start-all.sh 

 

测试

localhost:50030

localhost:50070

 

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template