Home > other >  Spark example JavaSparkSQL, an error when using the IDEA of packaging tools package org. Apache. Spa
Spark example JavaSparkSQL, an error when using the IDEA of packaging tools package org. Apache. Spa

Time:09-18

In using intellij idea to test an example of a simple spark bring JavaSparkSQL, packaging or close run the main method will appear such a problem, as long as the containing SQL import place will be packaged or run when encounter this error, do you have met my this kind of problem, or how to solve this problem?
 
Information: the 15-9-10 - Compilation afternoon laying completed with 21 errors and zero warnings in 978 ms
/root/workspace/MySpace/SRC/JavaSparkSQL. Java
Error: (26, 28) Java: package org. Apache. Spark. SQL does not exist
Error: (27, 28) Java: package org. Apache. Spark. SQL does not exist
Error: (28, 28) Java: package org. Apache. Spark. SQL does not exist
Error: (57, 5) Java: can't find the symbols
Symbol: class SQLContext
Location: class JavaSparkSQL

CodePudding user response:

Check whether pom, all packages are to rely on

CodePudding user response:

Lz, to share, to support you

CodePudding user response:

Pom file all wrote, 'folder as well, it is the spark is there - the core spark - jar package but was unable to parse SQL?????? Why

CodePudding user response:

Check whether pom file are introduced, as well as the version problem, need to go scala2.11 don't scala2.12
  • Related