From 427dd875958c8a6d2d791d55f9dda300ebdc853b Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Wed, 4 Apr 2018 11:55:22 -0700 Subject: merge backfill into extraction directory --- extraction/README.md | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) (limited to 'extraction/README.md') diff --git a/extraction/README.md b/extraction/README.md index 1da1454..b063fba 100644 --- a/extraction/README.md +++ b/extraction/README.md @@ -1,5 +1,4 @@ - ## Development and Testing Requires (eg, via `apt`): @@ -17,3 +16,26 @@ Run the tests with: TODO: GROBID and HBase during development? +## Backfill + +An example actually connecting to HBase from a local machine, with thrift +running on a devbox: + + ./backfill_hbase_from_cdx.py tests/files/example.cdx \ + --hbase-table wbgrp-journal-extract-0-qa \ + --hbase-host bnewbold-dev.us.archive.org + +Actual invocation to run on Hadoop cluster (running on an IA devbox, where +hadoop environment is configured): + + # Create tarball of virtualenv + pipenv shell + tar -czf backfill-4OmRI0zZ.tar.gz -C /home/bnewbold/.local/share/virtualenvs/backfill-4OmRI0zZ . + + ./backfill_hbase_from_cdx.py \ + -r hadoop \ + --hbase-host bnewbold-dev.us.archive.org \ + --hbase-table wbgrp-journal-extract-0-qa \ + -c mrjob.conf \ + --archive backfill-4OmRI0zZ.tar.gz#venv \ + hdfs:///user/bnewbold/journal_crawl_cdx/citeseerx_crawl_2017.cdx -- cgit v1.2.3