Skip to content
This repository has been archived by the owner on Apr 27, 2021. It is now read-only.

Offset patcher #145

Open
wants to merge 1 commit into
base: staging
Choose a base branch
from
Open

Offset patcher #145

wants to merge 1 commit into from

Conversation

olessia
Copy link

@olessia olessia commented Feb 20, 2018

As a review, could you please checkout the branch and follow the process below. This should uncover any issues/things to improve.

I'll also document this in our playbook.

Fixing stuck offsets

  • Unschedule import
  • Download the offsets, e.g. HADOOP_CONF_DIR=<path_to_starscream_repo>/.dev/starscream/spark/current/conf/conf.cloudera.yarn/ hadoop fs -copyToLocal /var/camus/execution/history/2018-01-01-00-00-00 .
  • Running the script, e.g
    java -Xms1G -Xmx2G -cp /usr/local/Cellar/hadoop/2.8.0/bin/hadoop classpath:/Users/olessia/src/github.com/Shopify/camus/camus-shopify/target/camus-shopify-0.1.0-shopify1.jar org.wikimedia.analytics.refinery.job.CamusOffsetPatcher -e /Users/olessia/Documents/kafka_offsets/2018-02-20-13-30-30 -t nginx.shopify -p 120 -o 1226657431
  • Upload new offset file to management2
  • Sanity check of old offset file vs new offset file e.g.
    hadoop fs -libjars /u/apps/camus/current/camus-shopify-0.1.0-shopify1.jar -text file:///<path>/patched-offsets-m-00104
  • Delete old file, replace with new file with the same name
  • Start camus, check offsets

Copy link

@dterror-zz dterror-zz left a comment

Choose a reason for hiding this comment

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

ran step by step, all 👍 ✅

@dterror-zz
Copy link

(we can go straight to prod, too, I think)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants