Hadoop-1, web page calls reported no hbase.jar package to address [2], reported java.lang.NoSuchMethodError: org.eclipse.jdt.internal.compiler.CompilationResult.getProblems () [Lorg / eclipse / jdt / core / compiler / IProblem; [to solve]

1: web page calls reported no hbase.jar package

Java file would have no problem, but a jsp java file that method calls on the error, reported no hadoop / hbase related problems reported.

The main solution is:

Copy hbase / lib inside the jar hadoop package to the lib file and then open hadoop / etc / hadoop / hadoop-env.sh

Increase this sentence:

1 export HADOOP_CLASSPATH=$HADOOP_CLASSPATH:/usr/local/hbase/lib/*:/usr/lib/hbase/*
2 
3 export HADOOP_CLASSPATH=$HBASE_HOME/hbase-1.1.15.jar:\
4 
5 export HBASE_HOME=/home/hadoop/hbase-1.1.15
6 
7 
8 
9 export HADOOP_CLASSPATH=$HBASE_HOME/hbase-1.1.15.jar:$HBASE_HOME/hbase-it-1.1.15-tests.jar:$HBASE_HOME/conf:$HBASE_HOME/lib/zookeeper-3.4.6.jar

If that does not work, then the eclipse and then open the original file in the file / webcontend / WEB-INF / lib copy and paste that all hbase / lib in the bag, no problem

2:报java.lang.NoSuchMethodError: org.eclipse.jdt.internal.compiler.CompilationResult.getProblems()[Lorg/eclipse/jdt/core/compiler/IProblem

If you still run the wrong jar package so that the problem of conflict

To delete the WEB-INF / lib inside

jar package all servlet jsp jasper related would be no problem.

Guess you like

Origin www.cnblogs.com/smartisn/p/11565081.html