apache-sparkapache-spark-sqlspark-hive

The declared package "org.apache.hive.service.cli.thrift" does not match the expected package "java.org.apache.hive.service.cli.thrift"


I import the spark source to eclipse:

enter image description here

But I got some error:

The declared package "org.apache.hive.service.cli.thrift" does not match the expected package "java.org.apache.hive.service.cli.thrift"

enter image description here

What should I do?


Solution

  • You don't want the "java" folder in there, the top level of the source folder should be "org", i.e. the top level package name.