SlideShare a Scribd company logo
1 of 16
구성도 
Master 
192.168.1.11 
node1 
LG xNote 
Slave1 Slave2 Slave3 
192.168.1.11 
node1 
LG xNote 
192.168.1.12 
node2 
LG Desktop 
192.168.1.13 
node3 
IBM x356 
2014-12-03 1
Master 
User: root 
설치할 Software 
•JDK 1.8 
•Hadoop 1.2.1 
Software 설치 Directory 
•JDK 1.8: /usr/java/jdk 
•Hadoop: /home/hadoop 
java 설치 
https://java.com/ko/download/ie_manual.jsp?locale=ko 
Hadoop 설치 
•http://mirror.apache-kr.org/hadoop/common/stable/ 에서 hadoop- 
1.2.1.tar.gz download 
•tar zxvf hadoop-1.2.1.tar.gz 
2014-12-03 2
Master 
환경변수 설정 
•vi .bash_profile 
export JAVA_HOME=/usr/java/jdk 
export HADOOP_HOME=/home/hadoop 
export PATH=$JAVA_HOME/bin:$HADOOP_HOME/bin:$PATH 
•source .bash_profile 
/home/hadoop/conf/hadoop-env.sh 
export JAVA_HOME=/usr/java/jdk 
export HADOOP_HOME=/home/hadoop 
export HADOOP_HOME_WARN_SUPPRESS=TRUE 
export HADOOP_LOG_DIR=${HADOOP_HOME}/logs 
export HADOOP_SLAVES=${HADOOP_HOME/conf/slaves 
export HADOOP_PID_DIR=${HADOOP_HOME}/pids 
/home/hadoop/conf/core-site.xml 
<property> 
<name>fs.default.name</name> 
<value>hdfs://node1:9000</value> 
</property> 
<property> 
<name>hadoop.tmp.dir</name> 
<value>/home/hadoop/hadoop-${user.name}</value> 
</property> 
2014-12-03 3
Master 
/home/hadoop/conf/hdfs-site.xml 
<property> 
<name>dfs.name.dir</name> 
<value>/home/hadoop/dfs/name</value> 
</property> 
<property> 
<name>dfs.name.edits.dir</name> 
<value>${dfs.name.dir}</value> 
</property> 
<property> 
<name>dfs.data.dir</name> 
<value>/home/hadoop/dfs/data</value> 
</property> 
2014-12-03 4
Master 
/home/hadoop/conf/mapred-site.xml 
<property> 
<name>mapred.job.tracker</name> 
<value>node1:9001</value> 
</property> 
<property> 
<name>mapred.local.dir</name> 
<value>${hadoop.tmp.dir}/mapred/local</value> 
</property> 
<property> 
<name>mapred.system.dir</name> 
<value>${hadoop.tmp.dir}/mapred/system</value> 
</property> 
/home/hadoop/conf/masters 
node1 
/home/hadoop/conf/slaves 
node1 
node2 
node3 
2014-12-03 5
Master 
Master Node SSH Key 생성 및 복사 
ssh-keygen –t dsa –P ‘’ –f ~/.ssh/id_dsa 
cat ~/.ssh/id_dsa.pub >> ~/.ssh/authorized_keys 
scp ~/.ssh/id_dsa.pub node2:/root/.ssh/authorized_keys 
scp ~/.ssh/id_dsa.pub node3:/root/.ssh/authorized_keys 
scp ~/.ssh/id_dsa.pub node4:/root/.ssh/authorized_keys 
scp ~/.ssh/id_dsa.pub node5:/root/.ssh/authorized_keys 
Namenode format 
hadoop namenode –format 
*Datanode 구동시 ID관련한 에러가 발생하면 
/home/hadoop/dfs/data 안의 내용을 삭제 
Hadoop 구동 
bin/start-all.sh 
bin/start-mapred.sh 
bin/start-dfs.sh 
bin/stop-all.sh 
bin/stop-mapred.sh 
bin/stop-dfs.sh 
2014-12-03 6
Master 
jps 
master node 
jobtracker / namenode / datanode 
slave nodes 
tasktracker / datanode 
UI 확인 (Slave까지 설치한 후에) 
http://node1:50030 MapReduce 
http://node1:50070 HDFS 
Word Count 실행 
bin/hadoop dfs –mkdir input 
bin/hadoop dfs –put CHANGE.txt input/ 
bin/hadop jar /home/hadoop/hadoop-examples-1.2.1.jar wordcount 
input output 
2014-12-03 7
구성도 
Master 
192.168.1.11 
node1 
LG xNote 
Slave1 Slave2 Slave3 
192.168.1.11 
node1 
LG xNote 
192.168.1.12 
node2 
LG Desktop 
192.168.1.13 
node3 
IBM x356 
2014-12-03 8
Slaves 
User: root 
설치할 Software 
•JDK 1.8 
•Hadoop 1.2.1 
Software 설치 Directory 
•JDK 1.8: /usr/java/jdk 
•Hadoop: /home/hadoop 
java 설치 
https://java.com/ko/download/ie_manual.jsp?locale=ko 
Hadoop 설치 
•http://mirror.apache-kr.org/hadoop/common/stable/ 에서 hadoop- 
1.2.1.tar.gz download 
•tar zxvf hadoop-1.2.1.tar.gz 
2014-12-03 9
Slaves 
환경변수 설정 
•vi .bash_profile 
export JAVA_HOME=/usr/java/jdk 
export HADOOP_HOME=/home/hadoop 
export PATH=$JAVA_HOME/bin:$HADOOP_HOME/bin:$PATH 
•source .bash_profile 
/home/hadoop/conf/hadoop-env.sh 
export JAVA_HOME=/usr/java/jdk 
export HADOOP_HOME=/home/hadoop 
export HADOOP_HOME_WARN_SUPPRESS=TRUE 
export HADOOP_LOG_DIR=${HADOOP_HOME}/logs 
export HADOOP_SLAVES=${HADOOP_HOME/conf/slaves 
export HADOOP_PID_DIR=${HADOOP_HOME}/pids 
/home/hadoop/conf/core-site.xml 
<property> 
<name>fs.default.name</name> 
<value>hdfs://node1:9000</value> 
</property> 
<property> 
<name>hadoop.tmp.dir</name> 
<value>/home/hadoop/hadoop-${user.name}</value> 
</property> 
2014-12-03 10
Slaves 
/home/hadoop/conf/hdfs-site.xml 
<property> 
<name>dfs.name.dir</name> 
<value>/home/hadoop/dfs/name</value> 
</property> 
<property> 
<name>dfs.name.edits.dir</name> 
<value>${dfs.name.dir}</value> 
</property> 
<property> 
<name>dfs.data.dir</name> 
<value>/home/hadoop/dfs/data</value> 
</property> 
2014-12-03 11
Slaves 
/home/hadoop/conf/mapred-site.xml 
<property> 
<name>mapred.job.tracker</name> 
<value>node1:9001</value> 
</property> 
<property> 
<name>mapred.local.dir</name> 
<value>${hadoop.tmp.dir}/mapred/local</value> 
</property> 
<property> 
<name>mapred.system.dir</name> 
<value>${hadoop.tmp.dir}/mapred/system</value> 
</property> 
/home/hadoop/conf/masters 
node1 
/home/hadoop/conf/slaves 
node1 
node2 
node3 
2014-12-03 12
Slaves 
jps 
master node 
jobtracker / namenode / datanode 
slave nodes 
tasktracker / datanode 
2014-12-03 13
File Handling Commands 
hadoop fs –cmd 
hadoop fs –ls 
hadoop fs –ls / 
hadop fs –mkdir /user/chuck 
hadoop fs –lsr / 
hadoop fs –put example.txt 
hadoop fs –get example.txt 
hadoop fs –cat example.txt 
hadoop fs –tail example.txt 
hadoop fs –rm example.txt 
/home/hadoop Directory에서 
hadoop fs –mkdir /input 
hadoop fs –put ivy.xml input/ 
hadoop jar /home/hadoop/hadoop-examples-1.2.1.jar wordcount input 
output 
2014-12-03 14
Node 삭제/추가 
노드 삭제 
•제외할 노드 파일 리스트 생성 
•Namenode가 참조하는 설정 “dfs.hosts.exclude”에 해당 항목을 지정 
•bin/hadoop dfsadmin –refreshNodes 
새로운 노드 등록 
•신규노드에 hadoop 설치, 구성 
•bin/hadoop/datanode 실행 
•bin/start-balancer.sh 
•bin/stop-balancer.sh 
2014-12-03 15
System Healthcheck 
bin/hadoop fsck / 
bin/hadoop fsck /user/hadoop/test –files –blocks –location –racks 
bin/hadoop dfsadmin –report 
bin/hadoop –metasave <filename> 
Exception in CreateBlockOutputStream error 
service iptables save 
service iptables stop 
chkconfig iptables off 
2014-12-03 16

More Related Content

What's hot

Apache Hadoop Shell Rewrite
Apache Hadoop Shell RewriteApache Hadoop Shell Rewrite
Apache Hadoop Shell RewriteAllen Wittenauer
 
Hadoop 20111117
Hadoop 20111117Hadoop 20111117
Hadoop 20111117exsuns
 
Hadoop Installation and basic configuration
Hadoop Installation and basic configurationHadoop Installation and basic configuration
Hadoop Installation and basic configurationGerrit van Vuuren
 
Hadoop 20111215
Hadoop 20111215Hadoop 20111215
Hadoop 20111215exsuns
 
PGConf.ASIA 2019 Bali - Mission Critical Production High Availability Postgre...
PGConf.ASIA 2019 Bali - Mission Critical Production High Availability Postgre...PGConf.ASIA 2019 Bali - Mission Critical Production High Availability Postgre...
PGConf.ASIA 2019 Bali - Mission Critical Production High Availability Postgre...Equnix Business Solutions
 
Hadoop 2.2.0 Multi-node cluster Installation on Ubuntu
Hadoop 2.2.0 Multi-node cluster Installation on Ubuntu Hadoop 2.2.0 Multi-node cluster Installation on Ubuntu
Hadoop 2.2.0 Multi-node cluster Installation on Ubuntu 康志強 大人
 
Introduction to Stacki at Atlanta Meetup February 2016
Introduction to Stacki at Atlanta Meetup February 2016Introduction to Stacki at Atlanta Meetup February 2016
Introduction to Stacki at Atlanta Meetup February 2016StackIQ
 
Hadoop 2.0 cluster setup on ubuntu 14.04 (64 bit)
Hadoop 2.0 cluster setup on ubuntu 14.04 (64 bit)Hadoop 2.0 cluster setup on ubuntu 14.04 (64 bit)
Hadoop 2.0 cluster setup on ubuntu 14.04 (64 bit)Nag Arvind Gudiseva
 
Automating Disaster Recovery PostgreSQL
Automating Disaster Recovery PostgreSQLAutomating Disaster Recovery PostgreSQL
Automating Disaster Recovery PostgreSQLNina Kaufman
 
Open Source Backup Conference 2014: Workshop bareos introduction, by Philipp ...
Open Source Backup Conference 2014: Workshop bareos introduction, by Philipp ...Open Source Backup Conference 2014: Workshop bareos introduction, by Philipp ...
Open Source Backup Conference 2014: Workshop bareos introduction, by Philipp ...NETWAYS
 
Hadoop spark performance comparison
Hadoop spark performance comparisonHadoop spark performance comparison
Hadoop spark performance comparisonarunkumar sadhasivam
 
Out of the Box Replication in Postgres 9.4(pgconfsf)
Out of the Box Replication in Postgres 9.4(pgconfsf)Out of the Box Replication in Postgres 9.4(pgconfsf)
Out of the Box Replication in Postgres 9.4(pgconfsf)Denish Patel
 
High Availability Server with DRBD in linux
High Availability Server with DRBD in linuxHigh Availability Server with DRBD in linux
High Availability Server with DRBD in linuxAli Rachman
 
Tajo Seoul Meetup-201501
Tajo Seoul Meetup-201501Tajo Seoul Meetup-201501
Tajo Seoul Meetup-201501Jinho Kim
 
Oracle cluster installation with grid and nfs
Oracle cluster  installation with grid and nfsOracle cluster  installation with grid and nfs
Oracle cluster installation with grid and nfsChanaka Lasantha
 
Oracle cluster installation with grid and iscsi
Oracle cluster  installation with grid and iscsiOracle cluster  installation with grid and iscsi
Oracle cluster installation with grid and iscsiChanaka Lasantha
 
Hive data migration (export/import)
Hive data migration (export/import)Hive data migration (export/import)
Hive data migration (export/import)Bopyo Hong
 

What's hot (20)

Apache Hadoop Shell Rewrite
Apache Hadoop Shell RewriteApache Hadoop Shell Rewrite
Apache Hadoop Shell Rewrite
 
Hadoop 20111117
Hadoop 20111117Hadoop 20111117
Hadoop 20111117
 
Hadoop Installation and basic configuration
Hadoop Installation and basic configurationHadoop Installation and basic configuration
Hadoop Installation and basic configuration
 
Hadoop 20111215
Hadoop 20111215Hadoop 20111215
Hadoop 20111215
 
PGConf.ASIA 2019 Bali - Mission Critical Production High Availability Postgre...
PGConf.ASIA 2019 Bali - Mission Critical Production High Availability Postgre...PGConf.ASIA 2019 Bali - Mission Critical Production High Availability Postgre...
PGConf.ASIA 2019 Bali - Mission Critical Production High Availability Postgre...
 
Hadoop 2.2.0 Multi-node cluster Installation on Ubuntu
Hadoop 2.2.0 Multi-node cluster Installation on Ubuntu Hadoop 2.2.0 Multi-node cluster Installation on Ubuntu
Hadoop 2.2.0 Multi-node cluster Installation on Ubuntu
 
Introduction to Stacki at Atlanta Meetup February 2016
Introduction to Stacki at Atlanta Meetup February 2016Introduction to Stacki at Atlanta Meetup February 2016
Introduction to Stacki at Atlanta Meetup February 2016
 
Hadoop 2.0 cluster setup on ubuntu 14.04 (64 bit)
Hadoop 2.0 cluster setup on ubuntu 14.04 (64 bit)Hadoop 2.0 cluster setup on ubuntu 14.04 (64 bit)
Hadoop 2.0 cluster setup on ubuntu 14.04 (64 bit)
 
Automating Disaster Recovery PostgreSQL
Automating Disaster Recovery PostgreSQLAutomating Disaster Recovery PostgreSQL
Automating Disaster Recovery PostgreSQL
 
Open Source Backup Conference 2014: Workshop bareos introduction, by Philipp ...
Open Source Backup Conference 2014: Workshop bareos introduction, by Philipp ...Open Source Backup Conference 2014: Workshop bareos introduction, by Philipp ...
Open Source Backup Conference 2014: Workshop bareos introduction, by Philipp ...
 
Hadoop spark performance comparison
Hadoop spark performance comparisonHadoop spark performance comparison
Hadoop spark performance comparison
 
Out of the Box Replication in Postgres 9.4(pgconfsf)
Out of the Box Replication in Postgres 9.4(pgconfsf)Out of the Box Replication in Postgres 9.4(pgconfsf)
Out of the Box Replication in Postgres 9.4(pgconfsf)
 
High Availability Server with DRBD in linux
High Availability Server with DRBD in linuxHigh Availability Server with DRBD in linux
High Availability Server with DRBD in linux
 
Linux configer
Linux configerLinux configer
Linux configer
 
Hadoop 24/7
Hadoop 24/7Hadoop 24/7
Hadoop 24/7
 
Tajo Seoul Meetup-201501
Tajo Seoul Meetup-201501Tajo Seoul Meetup-201501
Tajo Seoul Meetup-201501
 
Oracle cluster installation with grid and nfs
Oracle cluster  installation with grid and nfsOracle cluster  installation with grid and nfs
Oracle cluster installation with grid and nfs
 
Ceph issue 해결 사례
Ceph issue 해결 사례Ceph issue 해결 사례
Ceph issue 해결 사례
 
Oracle cluster installation with grid and iscsi
Oracle cluster  installation with grid and iscsiOracle cluster  installation with grid and iscsi
Oracle cluster installation with grid and iscsi
 
Hive data migration (export/import)
Hive data migration (export/import)Hive data migration (export/import)
Hive data migration (export/import)
 

Viewers also liked

하둡 HDFS 훑어보기
하둡 HDFS 훑어보기하둡 HDFS 훑어보기
하둡 HDFS 훑어보기beom kyun choi
 
하둡 (Hadoop) 및 관련기술 훑어보기
하둡 (Hadoop) 및 관련기술 훑어보기하둡 (Hadoop) 및 관련기술 훑어보기
하둡 (Hadoop) 및 관련기술 훑어보기beom kyun choi
 
AWS 시작하기 및 Amazon S3 살펴보기 (윤석찬) - AWS 웨비나 시리즈
AWS 시작하기 및 Amazon S3 살펴보기 (윤석찬) - AWS 웨비나 시리즈AWS 시작하기 및 Amazon S3 살펴보기 (윤석찬) - AWS 웨비나 시리즈
AWS 시작하기 및 Amazon S3 살펴보기 (윤석찬) - AWS 웨비나 시리즈Amazon Web Services Korea
 
하둡 맵리듀스 훑어보기
하둡 맵리듀스 훑어보기하둡 맵리듀스 훑어보기
하둡 맵리듀스 훑어보기beom kyun choi
 

Viewers also liked (6)

하둡 HDFS 훑어보기
하둡 HDFS 훑어보기하둡 HDFS 훑어보기
하둡 HDFS 훑어보기
 
하둡 (Hadoop) 및 관련기술 훑어보기
하둡 (Hadoop) 및 관련기술 훑어보기하둡 (Hadoop) 및 관련기술 훑어보기
하둡 (Hadoop) 및 관련기술 훑어보기
 
Hadoop
HadoopHadoop
Hadoop
 
AWS 시작하기 및 Amazon S3 살펴보기 (윤석찬) - AWS 웨비나 시리즈
AWS 시작하기 및 Amazon S3 살펴보기 (윤석찬) - AWS 웨비나 시리즈AWS 시작하기 및 Amazon S3 살펴보기 (윤석찬) - AWS 웨비나 시리즈
AWS 시작하기 및 Amazon S3 살펴보기 (윤석찬) - AWS 웨비나 시리즈
 
하둡 맵리듀스 훑어보기
하둡 맵리듀스 훑어보기하둡 맵리듀스 훑어보기
하둡 맵리듀스 훑어보기
 
HBase 훑어보기
HBase 훑어보기HBase 훑어보기
HBase 훑어보기
 

Similar to HADOOP 실제 구성 사례, Multi-Node 구성

02 Hadoop deployment and configuration
02 Hadoop deployment and configuration02 Hadoop deployment and configuration
02 Hadoop deployment and configurationSubhas Kumar Ghosh
 
Setting up a HADOOP 2.2 cluster on CentOS 6
Setting up a HADOOP 2.2 cluster on CentOS 6Setting up a HADOOP 2.2 cluster on CentOS 6
Setting up a HADOOP 2.2 cluster on CentOS 6Manish Chopra
 
Hadoop single node installation on ubuntu 14
Hadoop single node installation on ubuntu 14Hadoop single node installation on ubuntu 14
Hadoop single node installation on ubuntu 14jijukjoseph
 
Session 03 - Hadoop Installation and Basic Commands
Session 03 - Hadoop Installation and Basic CommandsSession 03 - Hadoop Installation and Basic Commands
Session 03 - Hadoop Installation and Basic CommandsAnandMHadoop
 
Install hadoop in a cluster
Install hadoop in a clusterInstall hadoop in a cluster
Install hadoop in a clusterXuhong Zhang
 
Big data with hadoop Setup on Ubuntu 12.04
Big data with hadoop Setup on Ubuntu 12.04Big data with hadoop Setup on Ubuntu 12.04
Big data with hadoop Setup on Ubuntu 12.04Mandakini Kumari
 
Implementing Hadoop on a single cluster
Implementing Hadoop on a single clusterImplementing Hadoop on a single cluster
Implementing Hadoop on a single clusterSalil Navgire
 
Deploying to Ubuntu on Linode
Deploying to Ubuntu on LinodeDeploying to Ubuntu on Linode
Deploying to Ubuntu on LinodeWO Community
 
Puppet control-repo 
to the next level
Puppet control-repo 
to the next levelPuppet control-repo 
to the next level
Puppet control-repo 
to the next levelAlessandro Franceschi
 
Deployment and Management of Hadoop Clusters
Deployment and Management of Hadoop ClustersDeployment and Management of Hadoop Clusters
Deployment and Management of Hadoop ClustersAmal G Jose
 
Cloud Foundry V2 | Intermediate Deep Dive
Cloud Foundry V2 | Intermediate Deep DiveCloud Foundry V2 | Intermediate Deep Dive
Cloud Foundry V2 | Intermediate Deep DiveKazuto Kusama
 
Single node setup
Single node setupSingle node setup
Single node setupKBCHOW123
 
Nagios Conference 2014 - Mike Weber - Expanding NRDS Capabilities on Linux Sy...
Nagios Conference 2014 - Mike Weber - Expanding NRDS Capabilities on Linux Sy...Nagios Conference 2014 - Mike Weber - Expanding NRDS Capabilities on Linux Sy...
Nagios Conference 2014 - Mike Weber - Expanding NRDS Capabilities on Linux Sy...Nagios
 
Continuous delivery with docker
Continuous delivery with dockerContinuous delivery with docker
Continuous delivery with dockerJohan Janssen
 

Similar to HADOOP 실제 구성 사례, Multi-Node 구성 (20)

02 Hadoop deployment and configuration
02 Hadoop deployment and configuration02 Hadoop deployment and configuration
02 Hadoop deployment and configuration
 
Hadoop 설치
Hadoop 설치Hadoop 설치
Hadoop 설치
 
Setting up a HADOOP 2.2 cluster on CentOS 6
Setting up a HADOOP 2.2 cluster on CentOS 6Setting up a HADOOP 2.2 cluster on CentOS 6
Setting up a HADOOP 2.2 cluster on CentOS 6
 
Exp-3.pptx
Exp-3.pptxExp-3.pptx
Exp-3.pptx
 
Hadoop single node installation on ubuntu 14
Hadoop single node installation on ubuntu 14Hadoop single node installation on ubuntu 14
Hadoop single node installation on ubuntu 14
 
Session 03 - Hadoop Installation and Basic Commands
Session 03 - Hadoop Installation and Basic CommandsSession 03 - Hadoop Installation and Basic Commands
Session 03 - Hadoop Installation and Basic Commands
 
Install hadoop in a cluster
Install hadoop in a clusterInstall hadoop in a cluster
Install hadoop in a cluster
 
Big data with hadoop Setup on Ubuntu 12.04
Big data with hadoop Setup on Ubuntu 12.04Big data with hadoop Setup on Ubuntu 12.04
Big data with hadoop Setup on Ubuntu 12.04
 
Implementing Hadoop on a single cluster
Implementing Hadoop on a single clusterImplementing Hadoop on a single cluster
Implementing Hadoop on a single cluster
 
Deploying to Ubuntu on Linode
Deploying to Ubuntu on LinodeDeploying to Ubuntu on Linode
Deploying to Ubuntu on Linode
 
Run wordcount job (hadoop)
Run wordcount job (hadoop)Run wordcount job (hadoop)
Run wordcount job (hadoop)
 
Puppet control-repo 
to the next level
Puppet control-repo 
to the next levelPuppet control-repo 
to the next level
Puppet control-repo 
to the next level
 
Deployment and Management of Hadoop Clusters
Deployment and Management of Hadoop ClustersDeployment and Management of Hadoop Clusters
Deployment and Management of Hadoop Clusters
 
Deep Dive into the AOSP
Deep Dive into the AOSPDeep Dive into the AOSP
Deep Dive into the AOSP
 
Cloud Foundry V2 | Intermediate Deep Dive
Cloud Foundry V2 | Intermediate Deep DiveCloud Foundry V2 | Intermediate Deep Dive
Cloud Foundry V2 | Intermediate Deep Dive
 
Hadoop 2.4 installing on ubuntu 14.04
Hadoop 2.4 installing on ubuntu 14.04Hadoop 2.4 installing on ubuntu 14.04
Hadoop 2.4 installing on ubuntu 14.04
 
Single node setup
Single node setupSingle node setup
Single node setup
 
Nagios Conference 2014 - Mike Weber - Expanding NRDS Capabilities on Linux Sy...
Nagios Conference 2014 - Mike Weber - Expanding NRDS Capabilities on Linux Sy...Nagios Conference 2014 - Mike Weber - Expanding NRDS Capabilities on Linux Sy...
Nagios Conference 2014 - Mike Weber - Expanding NRDS Capabilities on Linux Sy...
 
Continuous delivery with docker
Continuous delivery with dockerContinuous delivery with docker
Continuous delivery with docker
 
Hadoop completereference
Hadoop completereferenceHadoop completereference
Hadoop completereference
 

Recently uploaded

DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenHervé Boutemy
 
Story boards and shot lists for my a level piece
Story boards and shot lists for my a level pieceStory boards and shot lists for my a level piece
Story boards and shot lists for my a level piececharlottematthew16
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024Lorenzo Miniero
 
DSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningDSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningLars Bell
 
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyAlfredo García Lavilla
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsSergiu Bodiu
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupFlorian Wilhelm
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek SchlawackFwdays
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubKalema Edgar
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebUiPathCommunity
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Enterprise Knowledge
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsMark Billinghurst
 
Artificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxArtificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxhariprasad279825
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii SoldatenkoFwdays
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 3652toLead Limited
 
Search Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfSearch Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfRankYa
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfAddepto
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr BaganFwdays
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...Fwdays
 

Recently uploaded (20)

DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache Maven
 
Story boards and shot lists for my a level piece
Story boards and shot lists for my a level pieceStory boards and shot lists for my a level piece
Story boards and shot lists for my a level piece
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024
 
DSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningDSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine Tuning
 
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easy
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platforms
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project Setup
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding Club
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio Web
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
 
Artificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxArtificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptx
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365
 
Search Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfSearch Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdf
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdf
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
 

HADOOP 실제 구성 사례, Multi-Node 구성

  • 1. 구성도 Master 192.168.1.11 node1 LG xNote Slave1 Slave2 Slave3 192.168.1.11 node1 LG xNote 192.168.1.12 node2 LG Desktop 192.168.1.13 node3 IBM x356 2014-12-03 1
  • 2. Master User: root 설치할 Software •JDK 1.8 •Hadoop 1.2.1 Software 설치 Directory •JDK 1.8: /usr/java/jdk •Hadoop: /home/hadoop java 설치 https://java.com/ko/download/ie_manual.jsp?locale=ko Hadoop 설치 •http://mirror.apache-kr.org/hadoop/common/stable/ 에서 hadoop- 1.2.1.tar.gz download •tar zxvf hadoop-1.2.1.tar.gz 2014-12-03 2
  • 3. Master 환경변수 설정 •vi .bash_profile export JAVA_HOME=/usr/java/jdk export HADOOP_HOME=/home/hadoop export PATH=$JAVA_HOME/bin:$HADOOP_HOME/bin:$PATH •source .bash_profile /home/hadoop/conf/hadoop-env.sh export JAVA_HOME=/usr/java/jdk export HADOOP_HOME=/home/hadoop export HADOOP_HOME_WARN_SUPPRESS=TRUE export HADOOP_LOG_DIR=${HADOOP_HOME}/logs export HADOOP_SLAVES=${HADOOP_HOME/conf/slaves export HADOOP_PID_DIR=${HADOOP_HOME}/pids /home/hadoop/conf/core-site.xml <property> <name>fs.default.name</name> <value>hdfs://node1:9000</value> </property> <property> <name>hadoop.tmp.dir</name> <value>/home/hadoop/hadoop-${user.name}</value> </property> 2014-12-03 3
  • 4. Master /home/hadoop/conf/hdfs-site.xml <property> <name>dfs.name.dir</name> <value>/home/hadoop/dfs/name</value> </property> <property> <name>dfs.name.edits.dir</name> <value>${dfs.name.dir}</value> </property> <property> <name>dfs.data.dir</name> <value>/home/hadoop/dfs/data</value> </property> 2014-12-03 4
  • 5. Master /home/hadoop/conf/mapred-site.xml <property> <name>mapred.job.tracker</name> <value>node1:9001</value> </property> <property> <name>mapred.local.dir</name> <value>${hadoop.tmp.dir}/mapred/local</value> </property> <property> <name>mapred.system.dir</name> <value>${hadoop.tmp.dir}/mapred/system</value> </property> /home/hadoop/conf/masters node1 /home/hadoop/conf/slaves node1 node2 node3 2014-12-03 5
  • 6. Master Master Node SSH Key 생성 및 복사 ssh-keygen –t dsa –P ‘’ –f ~/.ssh/id_dsa cat ~/.ssh/id_dsa.pub >> ~/.ssh/authorized_keys scp ~/.ssh/id_dsa.pub node2:/root/.ssh/authorized_keys scp ~/.ssh/id_dsa.pub node3:/root/.ssh/authorized_keys scp ~/.ssh/id_dsa.pub node4:/root/.ssh/authorized_keys scp ~/.ssh/id_dsa.pub node5:/root/.ssh/authorized_keys Namenode format hadoop namenode –format *Datanode 구동시 ID관련한 에러가 발생하면 /home/hadoop/dfs/data 안의 내용을 삭제 Hadoop 구동 bin/start-all.sh bin/start-mapred.sh bin/start-dfs.sh bin/stop-all.sh bin/stop-mapred.sh bin/stop-dfs.sh 2014-12-03 6
  • 7. Master jps master node jobtracker / namenode / datanode slave nodes tasktracker / datanode UI 확인 (Slave까지 설치한 후에) http://node1:50030 MapReduce http://node1:50070 HDFS Word Count 실행 bin/hadoop dfs –mkdir input bin/hadoop dfs –put CHANGE.txt input/ bin/hadop jar /home/hadoop/hadoop-examples-1.2.1.jar wordcount input output 2014-12-03 7
  • 8. 구성도 Master 192.168.1.11 node1 LG xNote Slave1 Slave2 Slave3 192.168.1.11 node1 LG xNote 192.168.1.12 node2 LG Desktop 192.168.1.13 node3 IBM x356 2014-12-03 8
  • 9. Slaves User: root 설치할 Software •JDK 1.8 •Hadoop 1.2.1 Software 설치 Directory •JDK 1.8: /usr/java/jdk •Hadoop: /home/hadoop java 설치 https://java.com/ko/download/ie_manual.jsp?locale=ko Hadoop 설치 •http://mirror.apache-kr.org/hadoop/common/stable/ 에서 hadoop- 1.2.1.tar.gz download •tar zxvf hadoop-1.2.1.tar.gz 2014-12-03 9
  • 10. Slaves 환경변수 설정 •vi .bash_profile export JAVA_HOME=/usr/java/jdk export HADOOP_HOME=/home/hadoop export PATH=$JAVA_HOME/bin:$HADOOP_HOME/bin:$PATH •source .bash_profile /home/hadoop/conf/hadoop-env.sh export JAVA_HOME=/usr/java/jdk export HADOOP_HOME=/home/hadoop export HADOOP_HOME_WARN_SUPPRESS=TRUE export HADOOP_LOG_DIR=${HADOOP_HOME}/logs export HADOOP_SLAVES=${HADOOP_HOME/conf/slaves export HADOOP_PID_DIR=${HADOOP_HOME}/pids /home/hadoop/conf/core-site.xml <property> <name>fs.default.name</name> <value>hdfs://node1:9000</value> </property> <property> <name>hadoop.tmp.dir</name> <value>/home/hadoop/hadoop-${user.name}</value> </property> 2014-12-03 10
  • 11. Slaves /home/hadoop/conf/hdfs-site.xml <property> <name>dfs.name.dir</name> <value>/home/hadoop/dfs/name</value> </property> <property> <name>dfs.name.edits.dir</name> <value>${dfs.name.dir}</value> </property> <property> <name>dfs.data.dir</name> <value>/home/hadoop/dfs/data</value> </property> 2014-12-03 11
  • 12. Slaves /home/hadoop/conf/mapred-site.xml <property> <name>mapred.job.tracker</name> <value>node1:9001</value> </property> <property> <name>mapred.local.dir</name> <value>${hadoop.tmp.dir}/mapred/local</value> </property> <property> <name>mapred.system.dir</name> <value>${hadoop.tmp.dir}/mapred/system</value> </property> /home/hadoop/conf/masters node1 /home/hadoop/conf/slaves node1 node2 node3 2014-12-03 12
  • 13. Slaves jps master node jobtracker / namenode / datanode slave nodes tasktracker / datanode 2014-12-03 13
  • 14. File Handling Commands hadoop fs –cmd hadoop fs –ls hadoop fs –ls / hadop fs –mkdir /user/chuck hadoop fs –lsr / hadoop fs –put example.txt hadoop fs –get example.txt hadoop fs –cat example.txt hadoop fs –tail example.txt hadoop fs –rm example.txt /home/hadoop Directory에서 hadoop fs –mkdir /input hadoop fs –put ivy.xml input/ hadoop jar /home/hadoop/hadoop-examples-1.2.1.jar wordcount input output 2014-12-03 14
  • 15. Node 삭제/추가 노드 삭제 •제외할 노드 파일 리스트 생성 •Namenode가 참조하는 설정 “dfs.hosts.exclude”에 해당 항목을 지정 •bin/hadoop dfsadmin –refreshNodes 새로운 노드 등록 •신규노드에 hadoop 설치, 구성 •bin/hadoop/datanode 실행 •bin/start-balancer.sh •bin/stop-balancer.sh 2014-12-03 15
  • 16. System Healthcheck bin/hadoop fsck / bin/hadoop fsck /user/hadoop/test –files –blocks –location –racks bin/hadoop dfsadmin –report bin/hadoop –metasave <filename> Exception in CreateBlockOutputStream error service iptables save service iptables stop chkconfig iptables off 2014-12-03 16