Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

H2OContext can't be initalized on Databricks cloud #4237

Closed
exalate-issue-sync bot opened this issue May 22, 2023 · 2 comments
Closed

H2OContext can't be initalized on Databricks cloud #4237

exalate-issue-sync bot opened this issue May 22, 2023 · 2 comments
Assignees

Comments

@exalate-issue-sync
Copy link

In databricks environment, create cluster, add library - sparkling-water-assembly jar and create notebook with

{code:java}
val hc = H2OContext.getOrCreate(spark).
{code}

This will fail on class not found exception: org.spark_project.jetty.servlet...

The reason for this is that Spark normally uses shaded jetty in package org.spark_project.jetty and we use it as well

import org.spark_project.jetty.servlet.{DefaultServlet, ServletContextHandler, ServletHolder}

However Databricks does not use this shaded jetty an uses regular jetty, that is why we see this exception.

The first idea won't work - change shaded jetty to regular jetty in the class above as we are relocating H2O jetty ot a new package and this class would be relocated as well. We might try to forbid relocation for this particular class as here, we need to use just spark jetty.

The current workaround is to disable SParkling Water UI Tab as

{code:java}
val conf = new H2OConf(spark).set("spark.ui.enabled", "false")

val hc = H2OContext.getOrCreate(spark, conf)
{code}

@DinukaH2O
Copy link

JIRA Issue Migration Info

Jira Issue: SW-683
Assignee: Jakub Hava
Reporter: Jakub Hava
State: Resolved
Fix Version: 2.0.23
Attachments: N/A
Development PRs: Available

Linked PRs from JIRA

#544

@hasithjp
Copy link
Member

JIRA Issue Migration Info Cont'd

Jira Issue Created Date: 2018-01-19T02:43:30.880-0800

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants