M
M
Mamol272020-09-10 16:35:28
Java
Mamol27, 2020-09-10 16:35:28

Why can't intellij IDEA see libraries connected with maven?

Hello.
I'm learning spark, got to the ml library, registered the dependency in maven, it seems to have downloaded and indexed it.

<dependency>
            <groupId>org.apache.spark</groupId>
            <artifactId>spark-mllib_2.12</artifactId>
            <version>3.0.0</version>
            <scope>runtime</scope>
        </dependency>

Appeared in External Libraries

Maven: org.apache.spark:spark-mllib_2.12:3.0.0
Maven: org.apache.spark:spark-mllib-local_2.12:3.0.0


But when I include libraries, the idea does not find them:
import org.apache.spark.ml.feature.VectorAssembler;
import org.apache.spark.ml.linalg.Vectors;

Cannot resolve symbol 'VectorAssembler'
Cannot resolve symbol 'Vectors'


Although this is an example from an off site: https://spark.apache.org/docs/3.0.0/ml-statistics.html

How to solve this problem?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question