Problems encountered:
Since the project development required the use of Spark's third-party jar package, the Spark's jar package was downloaded and introduced, showing the following problems:
650) this.width=650; "Src=" https://s3.51cto.com/wyfs02/M01/95/38/wKioL1kS2P3zH-7cAAC-2ayBi_M304.png-wh_500x0-wm_ 3-wmp_4-s_2637710262.png "title=" Error.png "alt=" Wkiol1ks2p3zh-7caac-2aybi_m304.png-wh_50 "/>
Archive for Required library: ' F:/lib/spark-assembly-1.5.2-hadoop2.4.0.jar ' on Project ' project ' cannot be read or was not A valid ZIP file
Archive for Required library: ' F:/lib/spark-examples-1.5.2-hadoop2.4.0.jar ' on Project ' project ' cannot be read or was not A valid ZIP file
Solution Ideas:
1, suspected jar package damage, to the spark website to re-download the jar package, the problem persists.
2, because the size of the 2 jar package is relatively large (spark-assembly-1.5.2-hadoop2.4.0 117M; spark-examples-1.5.2-hadoop2.4.0 115M), Doubt is not eclipse memory is not enough, to adjust the memory to 1.5G (the specific method does not detail, degree Niang has many methods), the problem still exists.
3, the project is running on other computers, there is no such problem, so compare two computers have what similarities and differences, nothing but JDK version and Eclipse version, the JDK version to replace the same version, the problem persists, replace the Eclipse version, problem resolution.
Summary: Later Niang a bit, this issue for Eclipse a bug, replace the latest version of Eclipse to solve the problem.
This article is from the "Technology sharing" blog, so be sure to keep this source http://hkwang.blog.51cto.com/12307738/1924238
Eclipse Archive for required library in project cannot being read or is not a valid ZIP file