《Haoop权威指南》实验
1.设置Hadoop的类目录,hadoop-env.sh
[hadoop@Master conf]$ cd /usr/hadoop/conf
[hadoop@Master conf]$ vim hadoop-env.sh
增加 export HADOOP_CLASSPATH=/usr/hadoop/myclass
2.设置搜索目录:使到运行javac,jps等程序时,省去打入一长串路径
[hadoop@Master hadoop]$ cd /home/hadoop/
[hadoop@Master ~]$ ls -a |grep .bash_profile
.bash_profile
[hadoop@Master ~]$ vim .bash_profile
3.编写java
[hadoop@Master ~]$ cd /usr/hadoop/myclass
[hadoop@Master myclass]$ vim URLCat.java
import org.apache.hadoop.fs.FsUrlStreamHandlerFactory;
import org.apache.hadoo