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

Allowing AWS, updating links #6

Merged
merged 8 commits into from
Nov 17, 2016
Merged

Allowing AWS, updating links #6

merged 8 commits into from
Nov 17, 2016

Conversation

ianmilligan1
Copy link
Member

Just a pull request that does the following:

  • some tweaks to the vagrantfile to make it AWS compatible, changing username to ubuntu;
  • updating the commands given warcbase refactoring;
  • new download points for spark notebooks;
  • tiny tweaks and tests.

This lets us spin them up in the cloud.

I don't think we have any workshops ahead, so we could repurpose this as a general purpose warcbase repo. Alternatively, happy to migrate this over to a new repo if we want a cloud specific one.

@ianmilligan1
Copy link
Member Author

Let me know what you think, @ruebot – keep it as one repo, or spin off as a separate one. I've tested and it works well on AWS.

Copy link
Member

@ruebot ruebot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let me make a side PR before I merge this to update local to Ubuntu 16.04, and when that happens the documentation will be consistent w/r/t username changing from vagrant to ubuntu, and making sure the code works. Hopefully I can get this done by end of day tomorrow.

...also, nice work! We're gonna make a DevOps engineer out of you 😄


Actually, you might be able to do this yourself with one tiny change.

@ianmilligan1
Copy link
Member Author

Hah thanks @ruebot – have been learning a lot the past few weeks on this end. I can try to look into 16.04 myself, actually, could be a good chance to learn a bit more.

@ruebot
Copy link
Member

ruebot commented Nov 15, 2016

@ianmilligan1 can you edit Vagrant like this? Then we should be consistent across the board. Once you have that, we can get this merged.

...and if you want to go a step further, you can do DigitalOcean like this. (We yanked our aws config a while back, otherwise I would have just told you to steal from there:smile:.)

@ianmilligan1
Copy link
Member Author

ubuntu/xenial64 wasn't supported by aws, but lattice/ubuntu-trusty-64 was – seemed to be the closest box to build off of in the HashiCorp atlas? Just tested on AWS and it works.

@ruebot
Copy link
Member

ruebot commented Nov 15, 2016

Warcbase didn't build for me. I'm about to disappear to a few meetings, but I'll troubleshoot in the late afternoon.

@ianmilligan1
Copy link
Member Author

OK cool. I will try to build locally and see what's up in the meantime. It works on AWS but must have broken something locally..

@ianmilligan1
Copy link
Member Author

Just ran via vagrant up and built it locally. Some of the messages are around skipping components of warcbase that people aren't going to use.

Just ran and tested via Spark Shell and Notebook, both execute sample scripts well. This ran on both.

import org.warcbase.spark.matchbox._ 
import org.warcbase.spark.rdd.RecordRDD._ 
val r = RecordLoader.loadArchives("/home/ubuntu/project/warcbase-resources/Sample-Data/ARCHIVEIT-227-UOFTORONTO-CANPOLPINT-20060622205612-00009-crawling025.archive.org.arc.gz", sc)
  .keepValidPages()
  .map(r => ExtractDomain(r.getUrl))
  .countItems()
  .take(10)

@ruebot
Copy link
Member

ruebot commented Nov 17, 2016

Cool. We're good to go. I'll create a separate ticket to update the lessonplan.

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

Successfully merging this pull request may close these issues.

None yet

2 participants