####To-do:
On stat1004:
[x] Set up archive directory `hdfs://analytics-hadoop/user/neilpquinn-wmf/toledo_pageviews/daily`: `hdfs dfs -mkdir -p /user/neilpquinn-wmf/toledo_pageviews/daily`
[x] Copy data file from `hdfs://analytics-hadoop/user/chelsyx/toledo_pageviews/daily` to `hdfs://analytics-hadoop/user/neilpquinn-wmf/toledo_pageviews/daily`: `hdfs dfs -cp /user/chelsyx/toledo_pageviews/daily/data.gz /user/neilpquinn-wmf/toledo_pageviews/daily`
[x] Create the table `neilpquinn.toledo_pageviews` (script P8767), then verify
[x] Copy oozie files to `hdfs://analytics-hadoop/user/neilpquinn-wmf/`
** `cp -r /home/chelsyx/oozie_for_neil/ /home/neilpquinn-wmf/oozie/`
** `hdfs dfs -put /home/neilpquinn-wmf/oozie/ /user/neilpquinn-wmf/`
[] Deploy the oozie job, verify that it works correctly: `oozie job -run -Duser=neilpquinn-wmf -config ./oozie/toledo_pageviews/daily/coordinator.properties -Dstart_time=2019-07-17T00:00Z`
On notebook1004:
[x] Replace all `chelsyx` with `neilpquinn-wmf`/`neilpquinn` in the code and notebook of [the github repo](https://github.com/wikimedia-research/Audiences-External_automatic_translation)
** Done. Please run `git clone https://github.com/wikimedia-research/Audiences-External_automatic_translation.git external-automatic-translation`
[x] Copy file `external_machine_translation_edits_revert.tsv` to `neilpquinn-wmf`: `cp /home/chelsyx/external-automatic-translation/external_machine_translation_edits_revert.tsv /home/neilpquinn-wmf/external-automatic-translation/`
[x] Test the notebook to see if everything works correctly
[x] Change permission for the publishing directory:
** `chmod g+rwx /srv/published-datasets/external-automatic-translation`
** `chmod g+rw /srv/published-datasets/external-automatic-translation/impact\ of\ external\ automatic\ translation\ services.html`
[] Create an `.bash_profile` in home directory and add:
```
[[ -r ~/.bashrc ]] && . ~/.bashrc
export PATH=${PATH}:~/venv/bin
export http_proxy=http://webproxy.eqiad.wmnet:8080
export https_proxy=http://webproxy.eqiad.wmnet:8080
```
[] Install [mwapi](https://pythonhosted.org/mwapi/) and [mwreverts](https://pythonhosted.org/mwreverts/), then try to run `external-automatic-translation/fetch_edit_check_revert.py` and see if it works correctly
[] Run `update_publish_notebook.sh` and check `notebook_update.log` to see if there is any error
[] Deploy the cron job: `crontab -e`, then paste this line `0 2 * * * /home/neilpquinn-wmf/external-automatic-translation/update_publish_notebook.sh`