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

How to connect via ODBC to Spark? #106

Open
ghost opened this issue Oct 16, 2020 · 2 comments
Open

How to connect via ODBC to Spark? #106

ghost opened this issue Oct 16, 2020 · 2 comments

Comments

@ghost
Copy link

ghost commented Oct 16, 2020

Expected Behavior
I want to connect via Windwos ODBC to the docker-spark container.

Actual Behavior
I receive an SSL error.

Steps to Reproduce the Problem

  • Download and install SIMBA Spark ODBC driver, e.g. from Cloudera
  • Add new DSN
    image
  • Choose Simba Spark
    image
  • Edit connection
    image
  • I see an error
    image

Version:

  • I am using Spark 3.0.0 for Hadoop 3.2 with OpenJDK 8 and Scala 2.12 version
  • To start docker-spark I have:
git clone https://github.com/big-data-europe/docker-spark
cd docker-spark
docker-compose up

Platform:

  • Windows 10
@ghost
Copy link
Author

ghost commented Oct 16, 2020

@GezimSejdiu are you the Windows/ODBC master here ;-)?

@noahkawasakigoogle
Copy link

I think you need to start up the Thrift Server to connect with ODBC? This particular image does not do that by default, I was trying to connect to Spark through JDBC from outside the container as well.

From within the master node:

cd /spark/bin && /spark/sbin/../bin/spark-class org.apache.spark.deploy.SparkSubmit --class org.apache.spark.sql.hive.thriftserver.HiveThriftServer2 spark-internal

After that, it might work

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

No branches or pull requests

1 participant