Skip to content

"java.net.NoRouteToHostException: No route to host (Host unreachable)" when connecting to Hive metastore from Spark #329

Answered by maltesander
paulpaul1076 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @paulpaul1076 ,

the NoRouteToHostException basically states that the client (spark) cannot connect to the server (hive). This maybe caused by several things.

  • Hive server not working correctly
  • Network / Firewall problems
  • DNS problems

Could you please check:

  • Is the hive server up and running correctly?
  • If yes, can you ping it / connect via another client?
  • Does it run in the same namespace as spark?
  • Are you connecting via IP / Service / FQDN?

and provide the full hive and spark cluster yaml (remove / redact secrets, s3 access/secret keys etc.)

What hive version are you running? What is your kubernetes / openshift cluster version?

Replies: 1 comment 8 replies

Comment options

You must be logged in to vote
8 replies
@adwk67
Comment options

adwk67 Dec 21, 2023
Collaborator

@paulpaul1076
Comment options

@paulpaul1076
Comment options

@maltesander
Comment options

Answer selected by paulpaul1076
@paulpaul1076
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants