0

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?

Barbora
  • 921
  • 1
  • 6
  • 11
Smith
  • 13
  • 1
  • 6

1 Answers1

0

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.

Jan
  • 729
  • 4
  • 14
  • But I want to know why spark sources developer declear the "java" folder in there? – Smith Oct 16 '17 at 00:52
  • This is about how you've imported this into Eclipse, there's nothing wrong with the layout of the source code per se. It looks like you have source code in the folders: src/main/java, src/test/java, and src/gen/java. You have correctly got src/main/java and src/gen/java as source folders in Eclipse, but you've got src/gen as a source folder instead of src/gen/java. – Jan Oct 16 '17 at 11:49