Eclipse Archive for required library in project cannot be read or is not a valid ZIP file
Encountered a problem:
Since the development of the project needs to use the third-party jar package of spark, download the jar package of spark and introduce it. The problems are as follows:
Archive for required library: 'FVRULAGUR LIBGUR SPAKMAE assemblyMel 1.5.2MUTHADOOop2.4.0.jar' in project' project' cannot be read or is not a valid ZIP file
Archive for required library: 'FRV LBG SparkMAE examplesMel 1.5.2 Muthhadoop2.4.0.jar' in project' project' cannot be read or is not a valid ZIP file
The solution is as follows:
1. It is suspected that the jar package is damaged. Go to the spark official website to download the jar package again. The problem still exists.
2. Because the sizes of these two jar packets are relatively large (spark-assembly-1.5.2-hadoop2.4.0 117m; spark-examples-1.5.2-hadoop2.4.0 115m), it is doubtful that the memory of eclipse is not enough, so increase the memory to 1.5g (without details, there are many ways for du Niang), the problem still exists.
3, the project will be run on other computers, there is no problem, so compare the similarities and differences between the two computers, but the JDK version and eclipse version are different, change the JDK version to the same version, the problem still exists, change the eclipse version, the problem is solved.
Summary: later du Niang, the problem is a bug of eclipse, and the problem can be solved by replacing the latest version of eclipse.