0

私はかなり長い間、学校の研究室のコンピューターで本の最初の例をコンパイルしようとしてきましたが、HADOOP_CLASSPATH 変数と -classpath フラグを javac で試してみましたが、役に立ちませんでした。私がまだ受け取っているエラーメッセージは次のとおりです。

javac -verbose -classpath ~/Downloads/hadoop/share/hadoop/common/hadoop-common-2.0.4-alpha.jar:~/Downloads/hadoop/share/hadoop/mapreduce/hadoop-mapreduce-client-app-2.0 .4-alpha.jar:~/Downloads/hadoop/share/hadoop/mapreduce/hadoop-mapreduce-client-core-2.0.4-alpha.jar:~/Downloads/hadoop/share/hadoop/mapreduce/hadoop-mapreduce -client-common-2.0.4-alpha.jar:~/Downloads/hadoop/share/hadoop/mapreduce/hadoop-mapreduce-client-hs-2.0.4-alpha.jar:~/Downloads/hadoop/share/hadoop /mapreduce/hadoop-mapreduce-client-jobclient-2.0.4-alpha-tests.jar:~/ダウンロード/hadoop/share/hadoop/mapreduce/hadoop-mapreduce-examples-2.0.4-alpha.jar:~/ダウンロード/hadoop/share/hadoop/mapreduce/hadoop-mapreduce-client-shuffle-2.0.4-alpha.jar MaxTemperatureMapper.java

[解析開始 RegularFileObject[MaxTemperatureMapper.java]] [解析完了 13ms] [ソースファイルの検索パス: /home/2013/rbokse/Downloads/hadoop/share/hadoop/common/hadoop-common-2.0.4-alpha.jar ,~/Downloads/hadoop/share/hadoop/mapreduce/hadoop-mapreduce-client-app-2.0.4-alpha.jar,~/Downloads/hadoop/share/hadoop/mapreduce/hadoop-mapreduce-client-core-2.0 .4-alpha.jar,~/Downloads/hadoop/share/hadoop/mapreduce/hadoop-mapreduce-client-common-2.0.4-alpha.jar,~/Downloads/hadoop/share/hadoop/mapreduce/hadoop-mapreduce -client-hs-2.0.4-alpha.jar,~/Downloads/hadoop/share/hadoop/mapreduce/hadoop-mapreduce-client-jobclient-2.0.4-alpha-tests.jar,~/Downloads/hadoop/share /hadoop/mapreduce/hadoop-mapreduce-examples-2.0.4-alpha.jar,~/Downloads/hadoop/share/hadoop/mapreduce/hadoop-mapreduce-client-shuffle-2.0.4-alpha.jar]

[クラスファイルの検索パス: /usr/lib/jvm/java-7-openjdk-i386/jre/lib/resources.jar,/usr/lib/jvm/java-7-openjdk-i386/jre/lib/rt .jar、/usr/lib/jvm/java-7-openjdk-i386/jre/lib/sunrsasign.jar、/usr/lib/jvm/java-7-openjdk-i386/jre/lib/jsse.jar、/ usr/lib/jvm/java-7-openjdk-i386/jre/lib/jce.jar、/usr/lib/jvm/java-7-openjdk-i386/jre/lib/charsets.jar、/usr/lib/ jvm/java-7-openjdk-i386/jre/lib/netx.jar、/usr/lib/jvm/java-7-openjdk-i386/jre/lib/plugin.jar、/usr/lib/jvm/java- 7-openjdk-i386/jre/lib/rhino.jar、/usr/lib/jvm/java-7-openjdk-i386/jre/lib/jfr.jar、/usr/lib/jvm/java-7-openjdk- i386/jre/classes、/usr/lib/jvm/java-7-openjdk-i386/jre/lib/ext/sunpkcs11.jar、/usr/lib/jvm/java-7-openjdk-i386/jre/lib/ ext/sunjce_provider.jar、/usr/lib/jvm/java-7-openjdk-i386/jre/lib/ext/localedata.jar、/usr/lib/jvm/java-7-openjdk-i386/jre/lib/ ext/java-atk-wrapper.jar、/usr/lib/jvm/java-7-openjdk-i386/jre/lib/ext/dnsns.jar、/usr/lib/jvm/java-7-openjdk-i386/jre/lib/ext/pulse-java. jar、/usr/lib/jvm/java-7-openjdk-i386/jre/lib/ext/zipfs.jar、/home/2013/rbokse/Downloads/hadoop/share/hadoop/common/hadoop-common-2.0. 4-alpha.jar,~/Downloads/hadoop/share/hadoop/mapreduce/hadoop-mapreduce-client-app-2.0.4-alpha.jar,~/Downloads/hadoop/share/hadoop/mapreduce/hadoop-mapreduce- client-core-2.0.4-alpha.jar,~/Downloads/hadoop/share/hadoop/mapreduce/hadoop-mapreduce-client-common-2.0.4-alpha.jar,~/Downloads/hadoop/share/hadoop/ mapreduce/hadoop-mapreduce-client-hs-2.0.4-alpha.jar,~/Downloads/hadoop/share/hadoop/mapreduce/hadoop-mapreduce-client-jobclient-2.0.4-alpha-tests.jar,~/ダウンロード/hadoop/share/hadoop/mapreduce/hadoop-mapreduce-examples-2.0.4-alpha.jar,~/Downloads/hadoop/share/hadoop/mapreduce/hadoop-mapreduce-client-shuffle-2.0.4-alpha.jar]

[ZipFileIndexFileObject[/usr/lib/jvm/java-7-openjdk-i386/lib/ct.sym(META-INF/sym/rt.jar/java/io/IOException.class)]を読み込み中]

[ZipFileIndexFileObject の読み込み中[/home/2013/rbokse/Downloads/hadoop/share/hadoop/common/hadoop-common-2.0.4-alpha.jar(org/apache/hadoop/io/IntWritable.class)]] [ZipFileIndexFileObject の読み込み中] [/home/2013/rbokse/Downloads/hadoop/share/hadoop/common/hadoop-common-2.0.4-alpha.jar(org/apache/hadoop/io/LongWritable.class)]]

[ZipFileIndexFileObject を読み込み中[/home/2013/rbokse/Downloads/hadoop/share/hadoop/common/hadoop-common-2.0.4-alpha.jar(org/apache/hadoop/io/Text.class)]] MaxTemperatureMapper.java :8: エラー: パッケージ org.apache.hadoop.mapreduce が存在しません import org.apache.hadoop.mapreduce.Mapper; ^ MaxTemperatureMapper.java:11: エラー: シンボル extends Mapper が見つかりません { ^ シンボル: クラス マッパー MaxTemperatureMapper.java:16: エラー: シンボル public void map(LongWritable キー、テキスト値、コンテキスト コンテキスト) が見つかりません ^ シンボル: クラス コンテキストの場所: クラス MaxTemperatureMapper

[ZipFileIndexFileObject を読み込み中[/usr/lib/jvm/java-7-openjdk-i386/lib/ct.sym(META-INF/sym/rt.jar/java/lang/InterruptedException.class)]]

[ZipFileIndexFileObject[/usr/lib/jvm/java-7-openjdk-i386/lib/ct.sym(META-INF/sym/rt.jar/java/lang/Override.class)]を読み込み中]

[ZipFileIndexFileObject[/usr/lib/jvm/java-7-openjdk-i386/lib/ct.sym(META-INF/sym/rt.jar/java/lang/Object.class)]を読み込み中...

[ロード中 ZipFileIndexFileObject[/usr/lib/jvm/java-7-openjdk-i386/lib/ct.sym(META-INF/sym/rt.jar/java/lang/Number.class)]] MaxTemperatureMapper.java:15 : エラー: メソッドはスーパータイプ @Override のメソッドをオーバーライドまたは実装していません ^ [合計 170 ミリ秒] 4 エラー

どんな助けでも大歓迎です。

4

1 に答える 1