标签:
1,设置Java环境
rpm -ivh jdk-8u73-linux-x64.rpm
添加环境变量到启动文件
vi /etc/profile
export JAVA_HOME=/usr/java/jdk1.8.0_73 export PATH=$JAVA_HOME/bin:$PATH export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tool.jar
测试java环境
[root@DEV ~]# more test.java public class test{ public static void main(String args[]){ System.out.println("A new jdk test...sqing!"); } }
javac test.java
[root@hadoop1 ~]# java test
A new jdk test...sqing!
看到这,表明java环境设置成功!
2,配置hosts
192.168.1.208 hadoop1
192.168.1.210 hadoop2
3,配置ssh无密登录
标签:
原文地址:http://www.cnblogs.com/changbo/p/5258019.html