這篇文章主要介紹了如何安裝偽分布式Hadoop,具有一定借鑒價(jià)值,感興趣的朋友可以參考下,希望大家閱讀完這篇文章之后大有收獲,下面讓小編帶著大家一起了解一下。
致力于企業(yè)形象建設(shè)和產(chǎn)品!多年來(lái),創(chuàng)新互聯(lián)公司不忘初心,以建立行業(yè)服務(wù)標(biāo)桿為目標(biāo),不斷提升技術(shù)設(shè)計(jì)服務(wù)水平,幫助客戶在互聯(lián)網(wǎng)推廣自己的產(chǎn)品、服務(wù),為客戶創(chuàng)造價(jià)值從而實(shí)現(xiàn)自身價(jià)值!中小型企業(yè)如何做成都品牌網(wǎng)站建設(shè)?初創(chuàng)業(yè)公司建站預(yù)算不足?
安裝偽分布式Hadoop
http://blog.csdn.net/ggz631047367/article/details/42426391
sudo vi /usr/local/hadoop/etc/hadoop/hadoop-env.sh
在hadoop-env.sh中 修改HADOOP_OPTS:
export HADOOP_OPTS="-Djava.library.path=$HADOOP_PREFIX/lib:$HADOOP_PREFIX/lib/native"
export HADOOP_OPTS="-Djava.library.path=$HADOOP_PREFIX/lib:$HADOOP_PREFIX/lib/native"
sudo gedit ~/.bashrc
#HADOOP VARIABLES START
export JAVA_HOME=/usr/java/jdk1.7.0_75
export HADOOP_INSTALL=/usr/local/hadoop
export PATH=$PATH:$HADOOP_INSTALL/bin
export PATH=$PATH:$HADOOP_INSTALL/sbin
export HADOOP_MAPRED_HOME=$HADOOP_INSTALL
export HADOOP_COMMON_HOME=$HADOOP_INSTALL
export HADOOP_HDFS_HOME=$HADOOP_INSTALL
export YARN_HOME=$HADOOP_INSTALL
export HADOOP_COMMON_LIB_NATIVE_DIR=$HADOOP_INSTALL/lib/native
export HADOOP_OPTS="-Djava.library.path=$HADOOP_INSTALL/lib"
#HADOOP VARIABLES END
bin/hadoop jar share/hadoop/mapreduce/sources/hadoop-mapreduce-examples-2.7.1-sources.jar org.apache.hadoop.examples.WordCount input output
sudo vi /usr/local/hadoop/etc/hadoop/core-site.xml
sudo vi /usr/local/hadoop/etc/hadoop/mapred-site.xml
sudo vi /usr/local/hadoop/etc/hadoop/yarn-site.xml
sudo vi /usr/local/hadoop/etc/hadoop/hdfs-site.xml
sudo vi /usr/local/hadoop/etc/hadoop/masters 添加:localhost
sudo vi /usr/local/hadoop/etc/hadoop/slaves 添加:localhost
感謝你能夠認(rèn)真閱讀完這篇文章,希望小編分享的“如何安裝偽分布式Hadoop”這篇文章對(duì)大家有幫助,同時(shí)也希望大家多多支持創(chuàng)新互聯(lián),關(guān)注創(chuàng)新互聯(lián)行業(yè)資訊頻道,更多相關(guān)知識(shí)等著你來(lái)學(xué)習(xí)!