반응형
환경설치 파일들
hadoop 을 설치하면
@HADOOP_HOME/conf 디렉토리 내에 환경 설정 파일들을 편집해야 한다.
총 세개의 xml 파일이 존재하게 된다.
conf/mapred-site.xml
conf/hdfs-site.xml
conf/core-site.xml
커멘트 창에
vi @HADOOP_HOME/conf/mapred-site.xml
입력한다.
그럼 위와 같은 화면이 나오는데
여기서 중요한 것은
<configuration> </configuration> 사이에 아무것도 없어야 한다.
혹시, 이 둘 사이에 뭔가가 있다면, 과감하게 지우길 바란다.
나머지 파일(hdfs-site.xml core-site.xml)로 같은 방식으로 vi로 접속후
<configuration> </configuration> 사이를 공백으로 메워준다.
하둡의 설치가 제대로 되었는지 확인하기 위해서
하둡설치시 제공되는 샘플을 돌려보는 것이 가장 좋다
hadoop-examples-1.0.3.jar 에 포함되어 있다.
커멘트 창에
cd $HADOOP_HOME
bin/hadoop jar hadoop-examples-1.0.3.jar wordcount README.txt ~/wordcount -output
을 입력한다.
반응형
'IT 연구회' 카테고리의 다른 글
IPv4 의 class 구역 및 주소 할당 범위 (2) | 2015.06.20 |
---|---|
Oracle Error Code (0) | 2015.01.20 |
오라클오류코드로 SQLException (0) | 2015.01.20 |
org.springframework.web.servlet.PageNotFound noHandlerFound [spring] (0) | 2014.10.18 |
spring : jsp 에서 java로 데이터 넘기기 (2) | 2014.09.09 |
[하둡설치] starting hadoop (0) | 2014.03.07 |
xml (1) | 2014.03.01 |
Conversion to Dalvik format failed: Unable to execute dex: java.nio.BufferOverflowException. Check the Eclipse log for stack trace. (1) | 2013.12.23 |
이중 스크롤뷰(ScrollView)의 scroll 컨트롤하기 (0) | 2013.09.17 |
용량이 1MB가 넘는 파일을 asset에 담을 때 (0) | 2013.09.17 |