lucidworks / zeppelin-solr

Apache Solr interpreter for Apache Zeppelin
Apache License 2.0
28 stars 4 forks source link

How to set up IDE for this project? #13

Closed epugh closed 5 years ago

epugh commented 5 years ago

I've been a long time Eclipse user.. Running mvn eclipse:eclipse I can import the project, but it has a lot of build errors. These appear to be around the Scala based classes like SolrQuerySupport not being found.

epugh commented 5 years ago

I messed around for an hour with Eclipse and Maven and Scala, no joy... Couldn't ever quite get the right incantation of versions of Scala in Eclipse and then the project to work.

I moved on to INtelliJ, which at first blush seemed much more promising. Not an expert there, and so still having issues with having the Java side see the Scala side.

@kiranchitturi if you could share your IDE setup steps, I'd really appreciate it. Feels like I'm close, but not quite there. Really would love to hack on trying to pass in Solr URLS instead of ZK url on SolrCloudClient!

kiranchitturi commented 5 years ago

I haven't used eclipse in a long time, not sure of the eclipse and scala integration

For IntelliJ, it's quite easy. I blew up my project and imported again using these steps

  1. clone the project to local machine
  2. Make sure scala plugin is enabled for IntelliJ
  3. In IntelliJ, click on 'File -> New -> Project from Existing Sources -> (Navigate to zeppelin-solr dir) -> select pom.xml -> click Open'
  4. Go through the steps for creating the project
  5. Overwrite .idea project if the IDE prompts
  6. Once deps are resolved, click on Build Project to verify

Attaching zip of my .idea folder for reference (excluding workspace.xml) zeppelin-solr-idea.zip

Hope this helps. It would be great to have a different option other than zkhost for building CloudSolrClient

epugh commented 5 years ago

Followed the instructions, and now I can run the unit tests!

I’ll play more with how we connect to Solr.

Thank you!

On Dec 22, 2018, at 11:34 AM, Kiran Chitturi notifications@github.com wrote:

I haven't used eclipse in a long time, not sure of the eclipse and scala integration

For IntelliJ, it's quite easy. I blew up my project and imported again using these steps

clone the project to local machine Make sure scala plugin is enabled for IntelliJ In IntelliJ, click on 'File -> New -> Project from Existing Sources -> (Navigate to zeppelin-solr dir) -> select pom.xml -> click Open' Go through the steps for creating the project Overwrite .idea project if the IDE prompts Once deps are resolved, click on Build Project to verify Attaching zip of my .idea folder for reference (excluding workspace.xml) zeppelin-solr-idea.zip https://github.com/lucidworks/zeppelin-solr/files/2705363/zeppelin-solr-idea.zip Hope this helps. It would be great to have a different option other than zkhost for building CloudSolrClient

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/lucidworks/zeppelin-solr/issues/13#issuecomment-449582223, or mute the thread https://github.com/notifications/unsubscribe-auth/AABXe4NwZvd66dqrgFOGs3GTMsMyZ57cks5u7l8agaJpZM4ZfeAT.


Eric Pugh | Founder & CEO | OpenSource Connections, LLC | 434.466.1467 | http://www.opensourceconnections.com http://www.opensourceconnections.com/ | My Free/Busy http://tinyurl.com/eric-cal
Co-Author: Apache Solr Enterprise Search Server, 3rd Ed https://www.packtpub.com/big-data-and-business-intelligence/apache-solr-enterprise-search-server-third-edition-raw
This e-mail and all contents, including attachments, is considered to be Company Confidential unless explicitly stated otherwise, regardless of whether attachments are marked as such.

epugh commented 5 years ago

Okay, this ticket could be closed... Is the configuration pretty standard for this project and any Java/Scala person would know what to do, and I'm just new to Scala and IntelliJ? Or is there a documentation fix needed?

kiranchitturi commented 5 years ago

Configuration is pretty standard and anyone who has configured Scala with IntelliJ should be able to figure out. It would be nicer to add documentation too

kiranchitturi commented 5 years ago

Added to README here https://github.com/lucidworks/zeppelin-solr/blob/master/README.md#setting-up-intellij-idea-for-this-project

epugh commented 5 years ago

Thanks!