打jar包在linux上运行,用于演示wordcount原理,结果没有起来。
提示异常:java.io.IOException: Initialization of all the collectors failed. Error in last collector was :class com.sun.jersey.core.impl.provider.entity.XMLJAXBElementProvider$Text;
如下图:
原来是自己的主程序运行应用的Text架包有问题,重新改为import org.apache.hadoop.io.Text架包就没有问题了。
重新打包,重新上传,重新执行: