<commit_before># Oinker on Marathon on DC/OS

This example runs [Oinker-Go](https://github.com/mesosphere/oinker-go) on [Marathon](https://mesosphere.github.io/marathon/) on [DC/OS Vagrant](https://github.com/dcos/dcos-vagrant) with [Cassandra-Mesos](https://github.com/mesosphere/cassandra-mesos) and [Marathon-LB](https://github.com/mesosphere/marathon-lb).


## Install DC/OS

1. Follow the [dcos-vagrant setup](https://github.com/dcos/dcos-vagrant#setup) steps to configure your installation.
1. Use vagrant to deploy a cluster with 1 (large) private agent node and 1 (small) public agent node (requires 8.5 GB free memory):

    ```
    vagrant up m1 a1 p1 boot
    ```

1. Log into the DC/OS UI with a browser: <http://m1.dcos/>.
1. Install and configure the [DC/OS CLI](https://dcos.io/docs/latest/usage/cli/) by following the instructions in the DC/OS UI.
1. Log into DC/OS with the DC/OS CLI:

    ```
    vagrant auth login
    ```

    Follow the printed instructions to authenticate.

    If you were previously logged into a different cluster, you may have to logout first.


## Install Cassandra

1. Configure Cassandra with lower resource usage than default:

    ```
    cat >/tmp/cassandra.json <<EOF
    {
        "service": {
            "cpus": 0.1,
            "mem": 512,
            "heap": 256
        },
        "executor": {
            "cpus": 0.1,
            "mem": 512,
            "heap": 256
        },
        "nodes": {
            "cpus": 0.5,
            "mem": 2048,
            "disk": 4096,
            "heap": {
                "size": 1024,<commit_msg>dcos auth login, not vagrant auth login<commit_after># Oinker on Marathon on DC/OS

This example runs [Oinker-Go](https://github.com/mesosphere/oinker-go) on [Marathon](https://mesosphere.github.io/marathon/) on [DC/OS Vagrant](https://github.com/dcos/dcos-vagrant) with [Cassandra-Mesos](https://github.com/mesosphere/cassandra-mesos) and [Marathon-LB](https://github.com/mesosphere/marathon-lb).


## Install DC/OS

1. Follow the [dcos-vagrant setup](https://github.com/dcos/dcos-vagrant#setup) steps to configure your installation.
1. Use vagrant to deploy a cluster with 1 (large) private agent node and 1 (small) public agent node (requires 8.5 GB free memory):

    ```
    vagrant up m1 a1 p1 boot
    ```

1. Log into the DC/OS UI with a browser: <http://m1.dcos/>.
1. Install and configure the [DC/OS CLI](https://dcos.io/docs/latest/usage/cli/) by following the instructions in the DC/OS UI.
1. Log into DC/OS with the DC/OS CLI:

    ```
    dcos auth login
    ```

    Follow the printed instructions to authenticate.

    If you were previously logged into a different cluster, you may have to logout first.


## Install Cassandra

1. Configure Cassandra with lower resource usage than default:

    ```
    cat >/tmp/cassandra.json <<EOF
    {
        "service": {
            "cpus": 0.1,
            "mem": 512,
            "heap": 256
        },
        "executor": {
            "cpus": 0.1,
            "mem": 512,
            "heap": 256
        },
        "nodes": {
            "cpus": 0.5,
            "mem": 2048,
            "disk": 4096,
            "heap": {
                "size": 1024,
{'fraction_non_alphanumeric': 0.1336865066999065, 'fraction_numerical': 0.027422873169211593, 'mean_word_length': 2.3126934984520124, 'pattern_counts': {'":': 28, '<': 9, '<?xml version=': 0, '>': 7, 'https://': 14, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3679043', 'n_tokens_mistral': 1112, 'n_tokens_neox': 1012, 'n_words': 317}