Coder Social home page Coder Social logo

Comments (8)

susodapop avatar susodapop commented on July 30, 2024 3

You can disable SSL entirely by adding _tls_no_verify=True to your connection arguments when building a connection.

For example:

from databricks import sql
import os

with sql.connect(server_hostname = os.getenv("DATABRICKS_SERVER_HOSTNAME"),
                 http_path       = os.getenv("DATABRICKS_HTTP_PATH"),
                 access_token    = os.getenv("DATABRICKS_TOKEN"),
                 _tls_no_verify=True) as connection:

...

from databricks-sql-python.

steiner-takeda avatar steiner-takeda commented on July 30, 2024

thanks so much for such quick reply :) it worked but I came to another isssue:
OperationalError: Error: expected server to use a protocol version >= SPARK_CLI_SERVICE_PROTOCOL_V2, instead got: 7
How can I setup correct protocol version?
Thanks!

from databricks-sql-python.

susodapop avatar susodapop commented on July 30, 2024

To what kind of cluster are you connecting? A SQL warehouse or an interactive cluster?

from databricks-sql-python.

steiner-takeda avatar steiner-takeda commented on July 30, 2024

Not sure about answer, we are running both, databases and notebooks on this cluster

from databricks-sql-python.

susodapop avatar susodapop commented on July 30, 2024

For this specific issue it will be best to go through Databricks support so they can private examine how your cluster is configured.

from databricks-sql-python.

alex-hsp avatar alex-hsp commented on July 30, 2024

Have the same issue with databricks sql commands ran by dbt-databricks.
Why this even an issue? Databricks cli work fine.

from databricks-sql-python.

fvanrossum avatar fvanrossum commented on July 30, 2024

If I look in thrift_backend.py and to the different type of protocols it seems like it references the following: " HIVE_CLI_SERVICE_PROTOCOL_V8 = 7" . Maybe this connector currently doesn't account for connecting to Hive

from databricks-sql-python.

susodapop avatar susodapop commented on July 30, 2024

@fvanrossum I'll reiterate that this should be debugged privately with Databricks. I don't see any indication that this is a bug with the connector. Closing for now, but anyone is welcome to reopen the issue if they can demonstrate a bug in the connector code.

from databricks-sql-python.

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.