Git Product home page Git Product logo

Comments (2)

jakubhava avatar jakubhava commented on May 24, 2024 1

Hi @Dom-nik and @Stefan8888 ,
with this commit 566d2a7 it's possible to pass arbitrary client configuration to python h2o.connect method. We don't do this as part of the H2OConf object since we want to keep the configuration object consistent between scala and python and this change is specific to python.

Right now you can use the same command as before to start sparkling-water( same env variables ) and in pysparkling do:

from pysparkling import *
hc= H2OContext.getOrCreate(sc, auth=XX)

where XX is either a (username, password) pair for basic authentication, or one of the requests.auth authenticator objects.

Just to confirm - this should work with ldap, kerberos and hash authentifications.

Closing this issue for now, please feel free reopen when you still have same problems with this

from sparkling-water.

streof avatar streof commented on May 24, 2024

Hi Dom-nik,

I don't think it's possible yet to pass an username as an argument. I'm running pysparkling (Sparkling Water 1.6) and as a workaround I slightly adjusted the getOrCreate method within context.py. After that you can either rebuild the pysparkling package or import the adjusted context.py file as an additional module. Hence:

  • Wihtin context.py replace h2o.init(ip=h2o_context._client_ip, port=h2o_context._client_port, start_h2o=False, strict_version_check=False) by
    h2o.init(ip=h2o_context._client_ip, port=h2o_context._client_port, start_h2o=False, strict_version_check=False, username=<USER>, password=<PASSWORD>)

It might not be the nicest workaround but it does the job.

Btw I'm using the Hash file authentication and I'm not sure whether it'll also work for LDAP.

from sparkling-water.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.