溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊(cè)×
其他方式登錄
點(diǎn)擊 登錄注冊(cè) 即表示同意《億速云用戶服務(wù)條款》

hadoop1.1.2如何配置及啟動(dòng)

發(fā)布時(shí)間:2021-12-07 14:50:53 來源:億速云 閱讀:182 作者:小新 欄目:云計(jì)算

這篇文章主要為大家展示了“hadoop1.1.2如何配置及啟動(dòng)”,內(nèi)容簡(jiǎn)而易懂,條理清晰,希望能夠幫助大家解決疑惑,下面讓小編帶領(lǐng)大家一起研究并學(xué)習(xí)一下“hadoop1.1.2如何配置及啟動(dòng)”這篇文章吧。

1.安裝jdk,配置環(huán)境變量

下載地址:http://yunpan.cn/csUMbjpYd6LIU    提取碼 8e1d

修改/etc/profile

export JAVA_HOME=/opt/jdk1.6.0_12

export PATH=$PATH:$JAVA_HOME/bin

重啟

2.下載hadoop1.1.2

下載地址:http://yunpan.cn/csUMinfxTYFZr 提取碼 7bf8

修改配置文件

hadoop-env.sh

export JAVA_HOME=/opt/jdk1.6.0_12

core-site.xml

<?xml version="1.0"?>

<?xml-stylesheet type="text/xsl" href="configuration.xsl"?>

<!-- Put site-specific property overrides in this file. -->

<configuration>

 <property>

  <name>fs.default.name</name>

  <value>hdfs://localhost:9000</value>

 </property>

 <property>

  <name>hadoop.tmp.dir</name>

  <value>/opt/hadoop-1.1.2/tmp</value>

 </property>

</configuration>

hdfs-site.xml

<?xml version="1.0"?>

<?xml-stylesheet type="text/xsl" href="configuration.xsl"?>

<!-- Put site-specific property overrides in this file. -->

<configuration>

<!-- 設(shè)置備份的份數(shù) --> 

 <property>

  <name>dfs.replication</name>

  <value>1</value>

 </property>

</configuration>

mapred-site.xml

<?xml version="1.0"?>

<?xml-stylesheet type="text/xsl" href="configuration.xsl"?>

<!-- Put site-specific property overrides in this file. -->

<configuration>

 <property>

  <name>mapred.job.tracker</name>

  <value>localhost:9001</value>

 </property>

</configuration>

免密碼登陸

$ ssh-keygen -t rsa

$ cd $HOME/.ssh

$ cp id_rsa.pub authorized_keys

$ ssh localhost

格式化HDFS:hadoop namenode -format

啟動(dòng)hadoop群集:start-all.sh

卸載hadoop,由于沒配環(huán)境變量,直接刪除文件就行

以上是“hadoop1.1.2如何配置及啟動(dòng)”這篇文章的所有內(nèi)容,感謝各位的閱讀!相信大家都有了一定的了解,希望分享的內(nèi)容對(duì)大家有所幫助,如果還想學(xué)習(xí)更多知識(shí),歡迎關(guān)注億速云行業(yè)資訊頻道!

向AI問一下細(xì)節(jié)

免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如果涉及侵權(quán)請(qǐng)聯(lián)系站長(zhǎng)郵箱:is@yisu.com進(jìn)行舉報(bào),并提供相關(guān)證據(jù),一經(jīng)查實(shí),將立刻刪除涉嫌侵權(quán)內(nèi)容。

AI