hadoop读取文件程序,提示这个Exception in thread main java.lang.ClassNotFoundException:HBaseNewAPI

2025-05-21 15:47:07
推荐回答(1个)
回答(1):

Your command line to execute the said class is not correct. You are giving path with folders included. instead you shall give fully qualified class name
[root@dev MapReduce]# hadoop jar target/MapReduce-0.0.1-SNAPSHOT.jar src/main/java/com/hadoop/bi/MapReduce/MaxTemperature sample.txt /out
should be changed to
[root@dev MapReduce]# hadoop jar target/MapReduce-0.0.1-SNAPSHOT.jar com/hadoop/bi/MapReduce/MaxTemperature sample.txt /out
as per your package heirarchy.
Hope this helps.