An error occurs when developing spark application, as shown in the figure,
This mistake bothered me for two days, but I generally knew it was the problem of dependency.
First of all, I reemport pom.xml , and still report an error. Adding reimport after deleting dependency is also an error. This step is basically ruled out pom.xml It’s a matter of time.
After that, I suspected that the package downloaded to the local was damaged. I went to the local Maven warehouse to check, deleted all the files in the Maven warehouse, let Maven download again, and still reported an error. Here, we exclude the damage of the local package. Maybe there is something wrong with the download.
Then, I opened the local Maven warehouse and found a file with suffix. Lastupdated in the relevant package. The jar package was not downloaded successfully. I tried to manually download the corresponding jar package and add it, but still reported an error. But the reason for the error is basically locked, which is the problem of downloading!
Finally, I reconfigured Maven’s setting.xml File, and repeat the first two steps, reload dependency, no error after running again, the problem is solved
In a word, if you encounter problems about dependency, you can basically solve them step by step according to the previous ideas. If you encounter problems, don’t be afraid. If you analyze them step by step according to the problems and feedback, you can certainly solve them.
Read More:
- Maven package error: [WARNING] The POM for xxx is missing, no dependency inform
- error while loading shared libraries: lib*.so: cannot open shared object file: No such file or directory
- ./popins2: error while loading shared libraries: libbifrost.so: cannot open shared object file: No such file or directory
- [Solved] A needed class was not found. This could be due to an error in your runpath. Missing class: scala/co
- [Solved] ./my_cmake_exe: error while loading shared libraries: libswresample.so.4: cannot open shared object file: No such file or directory
- [619]libgtk-3.so.0 or libXt.so.6: cannot open shared object file: No such file or directory
- [Solved] NPM Error: gyp: No Xcode or CLT version detected!
- Error:scalac: Scala compiler JARs not found [How to Solve]
- [Solved] Notwritablepropertyexception: invalid property ‘mapperhelper’ of bean class
- .NETproject compilation error. Type or namespace name could not be found. Visual studio automatically introduces dependency package (shortcut key)
- Error:invalid new-expression of abstract class type XXX [How to Solve]
- [Solved] ERROR: Could not open requirements file: [Errno 2] No such file or directory : ‘requirments.txt‘
- [Solved] Python2 Install tensorflow Error: class DescriptorBase(metaclass=DescriptorMetaclass), SyntaxError: invalid syntax
- Git xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcru
- [Solved] RuntimeError: Error(s) in loading state_dict for Model: Missing key(s) in state_dict
- [How to Solve] Error: Invalid or corrupt jarfile…
- [Solved] Jmeter Error: Error loading results file – see file log
- ERROR ITMS-90022: “Missing required icon file. [How to Solve]
- [Samtools] Run error: error while loading shared libraries: libcrypto.so.1.0.0 or libncurses.so.5 or libtinfow.so.5
- IDEA Create Scala Project Error: scalac: Error: Error compiling the sbt component ‘compiler-interface-2.10.0-52.0‘