Ubuntu : 20.04.3 (Focal Fossa)
Hadoop : 3.3.1
https://hadoop.apache.org/release/3.3.1.html
Apache Hadoop
Release 3.3.1 available <!--- Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless require
hadoop.apache.org
여기서 tar.gz 파일을 우분투 내에 다운받는다.
Downloads로 받아지니 home으로 꺼내왔음.
압축 파일이니까 압축을 풀어준다.
$ cd ~
$ tar -xvf hadoop-3.3.1.tar.gz
hadoop이라는 이름의 링크를 걸어 사용이 편리하게 만든다
$ ln -s hadoop-3.3.1 hadoop
$ vi ~/hadoop/etc/hadoop/core-site.xml
configuration에 아래 내용을 추가해준다.
경로명에 자기 username으로 바꾸기
$ vi ~/hadoop/etc/hadoop/hdfs-site.xml
$ vi ~/hadoop/etc/hadoop/yarn-site.xml
$ vi ~/hadoop/etc/hadoop/hadoop-env.sh
맨 밑에 두 줄 추가
포맷하기
$ cd ~/hadoop/bin
$ ./hadoop namenode -format
어랏 에러가...
ERROR: JAVA_HOME /user/lib/jvm/java-8-openjdk-amd64 does not exist.
이유 : 자바를 안깔았다.
자바를 깔아준다
맥북인지라 amd가 아니라 arm이었지 ...
위에서 설정한 환경을 바꿔준다. hadoop-env.sh 이거
설치 끝 !
'Coding > Hadoop & Spark' 카테고리의 다른 글
Ubuntu에서 하둡 HDFS 시작하기 (0) | 2023.06.10 |
---|---|
맥북 M1 UTM과 Ubuntu 설치하기 (0) | 2023.06.10 |
맥북 M1 Virtual Box 와 Ubuntu 설치하기 (실패했음) (2) | 2023.06.10 |