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

Cannot create sample table #1251

Open
koksen opened this issue Jan 31, 2019 · 4 comments
Open

Cannot create sample table #1251

koksen opened this issue Jan 31, 2019 · 4 comments

Comments

@koksen
Copy link

koksen commented Jan 31, 2019

Hi,

I downloaded the enterprice version from the homepage.

On my local machine I does this:
val sample = snappy.createSampleTable("interactions_stratified", Option("INTERACTIONS"), interactionSchema, Map(("fraction", " 0.01")), true)

Then I get this error:
19/01/31 14:46:59 INFO SnappyContext: Initializing SnappyData in cluster mode: Local mode: sc = org.apache.spark.SparkContext@36068727, url = mcast-port=0
Exception in thread "main" java.lang.ClassNotFoundException: Failed to find data source: org.apache.spark.sql.sampling.DefaultSource. Please find packages at http://spark.apache.org/third-party-projects.html
at org.apache.spark.sql.execution.datasources.DataSource$.lookupDataSource(DataSource.scala:594)

Seems that I have not loaded the datasource to support this method. What do I need to put in my sbt?

Current:
libraryDependencies += "io.snappydata" %% "snappydata-cluster" % "1.0.2.1" from "file:///lib/snappydata-cluster_2.11-1.0.2.1.jar"

@guanxianchun
Copy link

I have the same problem. Have you solved your problem

@koksen
Copy link
Author

koksen commented Mar 23, 2019

No, I couldn’t get an answer or find anything in the open sourced code.
We wrote our own stuff instead

@ahshahid
Copy link
Contributor

ahshahid commented Mar 23, 2019 via email

@ahshahid
Copy link
Contributor

ahshahid commented Mar 23, 2019 via email

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

3 participants