iThome 會員中心 | iThome online | iT邦幫忙 | apphome

[研究] Hadoop 2.5.0 安裝 (CentOS 7.0 x86_64)

標籤: hadoop 2.5.0 hadoop

[研究] Hadoop 2.5.0 安裝 (CentOS 7.0 x86_64)


The Apache Hadoop project develops open-source software for reliable, scalable, distributed computing.
它參考Google Filesystem,以Java開發,提供HDFS與MapReduce API。





# 為了省事,避免意外的情況,關閉 SELinux (Security Linux ) 和 iptables

# 立刻關閉 SELinux
setenforce 0 

# 設定 reboot 後自動關閉 SELinux
#vi  /etc/selinux/config

sed -i -e "s@SELINUX=enforcing@#SELINUX=enforcing@"   /etc/selinux/config
sed -i -e "s@SELINUX=permissive@#SELINUX=permissive@"   /etc/selinux/config
sed -i -e "/SELINUX=/aSELINUX=disabled"   /etc/selinux/config

# 立刻停掉 iptables
#service iptables stop  
#service ip6tables stop 
systemctl   stop  firewalld 

# 設定 reboot 後自動關閉 iptable
#chkconfig iptables off  
#chkconfig ip6tables off  
systemctl   disable  firewalld 
systemctl status  firewalld

yum -y install  java
# or
#yum -y install java-1.7.0-openjdk

yum -y install  java-1.7.0-openjdk-devel   

echo 'export JAVA_HOME=/usr/lib/jvm/java-1.7.0-openjdk-' >> /etc/profile

source /etc/profile

cd /usr/local
tar zxvf hadoop-2.5.0.tar.gz

echo 'export HADOOP_HOME=/usr/local/hadoop-2.5.0' >> /etc/profile
echo 'export PATH=$PATH:$HADOOP_HOME/bin' >> /etc/profile
echo 'export PATH=$PATH:$HADOOP_HOME/sbin' >> /etc/profile
source /etc/profile


[root@localhost local]# hadoop version
Hadoop 2.5.0
Subversion -r 1616291
Compiled by jenkins on 2014-08-06T17:31Z
Compiled with protoc 2.5.0
From source with checksum 423dcd5a752eddd8e45ead6fd5ff9a24
This command was run using /usr/local/hadoop-2.5.0/share/hadoop/common/hadoop-common-2.5.0.jar

[root@localhost local]#

[root@localhost local]# hadoop

Usage: hadoop [--config confdir] COMMAND
       where COMMAND is one of:
  fs                   run a generic filesystem user client
  version              print the version
  jar <jar>            run a jar file
  checknative [-a|-h]  check native hadoop and compression libraries availability
  distcp <srcurl> <desturl> copy file or directories recursively
  archive -archiveName NAME -p <parent path> <src>* <dest> create a hadoop archive
  classpath            prints the class path needed to get the
                       Hadoop jar and the required libraries
  daemonlog            get/set the log level for each daemon
  CLASSNAME            run the class named CLASSNAME

Most commands print help when invoked w/o parameters.
[root@localhost ~]#




[研究] Hadoop 2.5.0 安裝 (CentOS 7.0 x86_64)

[研究] Hadoop 2.4.1 安裝 (CentOS 7.0 x86_64)

[研究] hadoop-2.4.1-src.tar.gz 快速編譯安裝程式(CentOS 7.0 x86_64)

[研究] hadoop-2.2.0-src.tar.gz 快速編譯安裝程式(二)(CentOS 6.5 x86_64)

[研究] hadoop-2.2.0-src.tar.gz 快速編譯安裝程式(CentOS 6.5 x86_64)

[研究] hadoop-2.2.0-src.tar.gz 編譯研究(CentOS 6.5 x86_64)

[研究] Hadoop 2.2.0 編譯 (CentOS 6.4 x64)

[研究] Hadoop 2.2.0 Single Cluster 安裝 (二)(CentOS 6.4 x64)

[研究] Hadoop 2.2.0 Single Cluster 安裝 (一)(CentOS 6.4 x64)

[研究] Hadoop 1.2.1 (rpm)安裝 (CentOS 6.4 x64)

[研究] Hadoop 1.2.1 (bin)安裝 (CentOS 6.4 x64)

[研究] Hadoop 1.2.1 安裝 (CentOS 6.4 x64)

[研究] 雲端軟體 Hadoop 1.0.0 安裝 (CentOS 6.2 x86)

[研究] 雲端軟體 Hadoop 0.20.2 安裝 (CentOS 5.5 x86)

[研究] 雲端軟體 Hadoop 0.20.2 安裝 (CentOS 5.4 x86)

2014-08-25 16:14:36





不當言論 惡意灌水 廣告行為 一文多貼 其他



還不是iThome download會員? 立即加入!