解决Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/hadoop/fs/ FSDataInputStream
我们将Hadoop的classhpath信息添加到CLASSPATH变量中,在~/.bashrc中增加如下几行:exportHADOOP_HOME=/home/hadoop/app/hadoopexportJAVA_HOME=/home/hadoop/app/java/jdkexportSCALA_HOME=/home/hadoop/app/scalaexportPATH=$PATH:$JAVA_