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

getting started with Simba #84

Open
geoHeil opened this issue Mar 15, 2017 · 10 comments
Open

getting started with Simba #84

geoHeil opened this issue Mar 15, 2017 · 10 comments

Comments

@geoHeil
Copy link

geoHeil commented Mar 15, 2017

Hi,
do you have a getting started project for Simba?
How can I load a WKT string into Simba? Will it just work fine if I provide a Dataset[Polygon]?
And what are your maven coordinates?

git clone [email protected]:InitialDLab/Simba.git && cd Simba
git checkout standalone-2.1
sbt publishLocal

results in ~/.ivy2/local/default/simba_2.11/1.0/ivys/ivy.xml but trying to import "simba_2.11:1.0" will fail with an exception from sbt.

@dongx-psu
Copy link
Member

dongx-psu commented Mar 16, 2017

Personally, I have limited experience with sbt. One way I can imagine to run this system is the following:

  • Do sbt package.
  • Include the built artifact in spark-submit, and also include JTS if you want to play with anything related to it (For example polygons).
  • Write your program and run it on you cluster.

Another way is to modify the plugin.sbt a little bit such that the built Simba artifact will include JTS other than Spark. (More exactly sbt assembly) It should also work if you just include that artifact into your spark-submission.

Thanks for your interest on our project.

Dong

@geoHeil
Copy link
Author

geoHeil commented Mar 16, 2017 via email

@dongx-psu
Copy link
Member

The examples are in the example package. Currently, the example shows the old way which relies on Double fields.

The current version should also work if you construct a dataset from our provided spatial classes. I will add some examples recently about that.

And we do have some effort to import data directly from GeoJSON, ShapeFile and OSM formatted file. I think we will include that soon enough after we testest the performance and stability for standalone-2.1 branch.

@dongx-psu
Copy link
Member

New examples added for spatial class inference.

I will try to make a maven example later on.

@geoHeil
Copy link
Author

geoHeil commented Mar 16, 2017 via email

@geoHeil
Copy link
Author

geoHeil commented Mar 20, 2017 via email

@dongx-psu
Copy link
Member

We haven't published it to any maven repo. The best way to use it is to include the built artifact in your project folder and add it to your built dependencies in the maven file. Do make sure you also include the Simba artifact in spark-submit as well.

@geoHeil
Copy link
Author

geoHeil commented Mar 20, 2017

I know that. After cloning the repo and switching to the spark 2 branch I executed sbt publishLocal. this claims to publish as: ivy2/local/default/simba_2.11/1.0/ivys/ivy.xml

Why trying to include it like "simba" %% "1.0" to the dependencies this will break the resolution of sbt.

@Skyprophet
when adding
organization := "InitialDLab" to your build.sbt then I can Import it via "InitialDLab" %% "simba" % "1.0",

#86

@dongx-psu
Copy link
Member

Will adding organization simply solves the problem?

@geoHeil
Copy link
Author

geoHeil commented Mar 20, 2017

yes. That's why I created the pull request.

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

2 participants