Linux?2???Hadoopα?????
???????????? ???????[ 2014/2/18 11:35:12 ] ?????????????? ???? ???????
???????沢????????????sshd????
[root@promote .ssh]# service sshd restart
Redirecting to /bin/systemctl restart sshd.service
[root@promote .ssh]# ps -ef|grep sshd
root 1995 1 0 22:33 ? 00:00:00 sshd: hadoop [priv]
hadoop 2009 1995 0 22:33 ? 00:00:00 sshd: hadoop@pts/0
root 4171 1 0 23:11 ? 00:00:00 /usr/sbin/sshd -D
root 4175 3397 0 23:12 pts/0 00:00:00 grep --color=auto sshd
|
????????л???hadoop???????ssh??鷲???????/home/hadoop/.ssh/authorized_keys?????
????[root@promote .ssh]# su hadoop
????[hadoop@promote .ssh]$ cat id_rsa.pub >> authorized_keys
???????authorized_keys?????????644?????????У?
????[hadoop@promote .ssh]$ chmod 644 authorized_keys
????[hadoop@promote .ssh]$ ssh localhost
????The authenticity of host 'localhost (127.0.0.1)' can't be established.
????RSA key fingerprint is 25:1f:be:72:7b:83:8e:c7:96:b6:71:35:fc:5d:2e:7d.
????Are you sure you want to continue connecting (yes/no)? yes
????Warning: Permanently added 'localhost' (RSA) to the list of known hosts.
????Last login: Thu Feb 13 23:42:43 2014
????????ε??????????????????/home/hadoop/.ssh/known_hosts????У??????ε?????????????????
????[hadoop@promote .ssh]$ ssh localhost
????Last login: Thu Feb 13 23:46:04 2014 from localhost.localdomain
????????ssh??鲿?????????
??????????????JDK
????[hadoop@promote ~]$ java -version
????java version "1.7.0_25"
????OpenJDK Runtime Environment (fedora-2.3.10.3.fc19-i386)
????OpenJDK Client VM (build 23.7-b01?? mixed mode)
??????OpenJDK???Oracle??Java SE
????[hadoop@promote .ssh]$ cd ~
????[hadoop@promote ~]$ uname -i
????i386
??????Oracle?????????jdk-6u45-linux-i586.bin??????????????????????????а??????????????
????[hadoop@promote ~]$ chmod u+x jdk-6u45-linux-i586.bin
????[hadoop@promote ~]$ ./jdk-6u45-linux-i586.bin
????[hadoop@promote ~]$ rm -rf jdk-6u45-linux-i586.bin
????[hadoop@promote conf]$ export PATH=$PATH:/home/hadoop/jdk1.6.0_45/bin
?????????????????JDK????????
????[hadoop@promote ~]$ java -version
????java version "1.6.0_45"
????Java(TM) SE Runtime Environment (build 1.6.0_45-b06)
????Java HotSpot(TM) Client VM (build 20.45-b01?? mixed mode?? sharing)
???????????????Hadoop
??????Hadoop????????hadoop-1.2.1.tar.gz?????????????/home/hadoop·????
????[hadoop@promote ~]$ tar -xzf hadoop-1.2.1.tar.gz
????[hadoop@promote ~]$ rm -rf hadoop-1.2.1.tar.gz
????[hadoop@promote ~]$ cd hadoop-1.2.1/conf/
????[hadoop@promote conf]$ vi hadoop-env.sh
??????JAVA_HOME????????????JDK???????
????# The java implementation to use. Required.
????export JAVA_HOME=/home/hadoop/jdk1.6.0_45
???????沢???
??????????????Hadoop???????
???????core-site.xml??
<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="configuration.xsl"?>
<configuration>
<property>
<name>fs.default.name</name>
<value>hdfs://localhost:9000</value>
</property>
</configuration>
|
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11