Skip to content

SRS))Hadoop setup

ilgwonPark edited this page Nov 5, 2018 · 1 revision

install apache hadoop https://hadoop.apache.org/releases.html

ACESS TO hdfs hadoop fs _____ : _____ hadoop에 있는 file system(HDFS)을 access함. hadoop fs -ls / : HDFS안에 root디렉토리에 있는 파일 이름들을 보여줌. 홈 디렉토리는 /user/training hadoop fs -ls == hadoop fs -ls /user/training cd ~/training_materials/developer/data(Local Machine에 access)

hadoop fs -put ___ _____ : ___(Local Machine에 있는 data)를 _____(HDFS에 있는 디렉토리)에 복사를 한다.(local에 있는 file을 hadoop에 올려주는 작업.) hadoop fs -get ___ : ___파일에 관련된 내용을 name node에게 물어봐서 알려줌.

hadoop fs -mkdir directoryname : directoryname 디렉토리를 만든다.

Clone this wiki locally