Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ Creating a new Storm cluster involves four main steps, some of which are necessa

### Create a Zookeeper Image

A *Zookeeper image* is a master disk image with all necessary Zookeeper softwares and libraries installed. We'll create our using [Linode Images](/docs/platform/linode-images) The benefits of using a Zookeeper image include:
A *Zookeeper image* is a master disk image with all necessary Zookeeper software and libraries installed. We'll create our using [Linode Images](/docs/platform/linode-images) The benefits of using a Zookeeper image include:

- Quick creation of a Zookeeper cluster by simply cloning it to create as many nodes as required, each a perfect copy of the image
- Distribution packages and third party software packages are identical on all nodes, preventing version mismatch errors
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ rec = {

'pid': result['data-pid']

4. Other data attributes may be nested deeper in the HTML strucure, and can be accessed using a combination of dot and array notation. For example, the date a result was posted is stored in `datetime`, which is a data attribute of the `time` element, which is a child of a `p` tag that is a child of `result`. To access this value use the following format:
4. Other data attributes may be nested deeper in the HTML structure, and can be accessed using a combination of dot and array notation. For example, the date a result was posted is stored in `datetime`, which is a data attribute of the `time` element, which is a child of a `p` tag that is a child of `result`. To access this value use the following format:

'date': result.p.time['datetime']

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ end

knife cookbook upload lamp-stack

5. Add the recipe to a node's run-list, replaceing `nodename` with your chosen node's name:
5. Add the recipe to a node's run-list, replacing `nodename` with your chosen node's name:

knife node run_list add nodename "recipe[lamp-stack::apache]"

Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ The following playbooks are for learning purposes only, and will NOT result in a

3. Write a playbook that creates a new normal user, adds in our public key, and adds the new user to the `sudoers` file.

We're introducing a new aspect of Ansible here: *variables*. Note the `vars:` entry and the `NORMAL_USER_NAME` line. You'll notice that it is reused twice in the file so that we only have to change it once. Replace `yourusername` with your choosen username, `localusername` in the path for the `authorized_key`, and the password hash.
We're introducing a new aspect of Ansible here: *variables*. Note the `vars:` entry and the `NORMAL_USER_NAME` line. You'll notice that it is reused twice in the file so that we only have to change it once. Replace `yourusername` with your chosen username, `localusername` in the path for the `authorized_key`, and the password hash.

{{< file "initialize_basic_user.yml" yaml >}}
---
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ With the Vagrantfile configured, and scripts and files created, it's now time to

* apache2 is running

4. To see that the environment is accesible online, check for the IP address:
4. To see that the environment is accessible online, check for the IP address:

hostname -i

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ If you have not added your limited user account to the `docker` group (with `sud

| Docker Syntax | Description |
|:-------------|:---------|
| **docker run** -it user/image | Runs an image, creating a container and<br> changing the termihnal<br> to the terminal within the container. |
| **docker run** -it user/image | Runs an image, creating a container and<br> changing the terminal<br> to the terminal within the container. |
| **docker run** -p $HOSTPORT:$CONTAINERPORT -d user/image | Run an image in detached mode<br> with port forwarding. |
| **`ctrl+p` then `ctrl+q`** | From within the container's command prompt,<br> detach and return to the host's prompt. |
| **docker attach** [container name or ID] | Changes the command prompt<br> from the host to a running container. |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ VE_LAYOUT=simfs
- Provide a nameserver. Google's nameserver (8.8.8.8) should be sufficient.
- If you have trouble booting into your virtual environment, you may try changing **VE_LAYOUT** back to "ploop" from "simfs."

You may also configure other options at your discrection, such as SWAP and RAM allocation. Save and close when finished.
You may also configure other options at your discretion, such as SWAP and RAM allocation. Save and close when finished.

{{< file "/etc/vz/conf/101.conf" >}}
. . .
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ If you employ a firewall to specify what ports can be accessed on your Linode, v
- 5222 - Client to Server (standard and encrypted)
- 5223 - Client to Server (legacy SSL support)
- 5229 - Flash Cross Domain (Flash client support)
- 7070 - HTTP Binding (unsecured HTTP connecitons)
- 7070 - HTTP Binding (unsecured HTTP connections)
- 7443 - HTTP Binding (secured HTTP connections)
- 7777 - File Transfer Proxy (XMPP file transfers)
- 9090 - Admin Console (unsecured)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ If you employ a firewall to specify what ports can be accessed on your Linode, p
- 5222 - Client to Server (standard and encrypted)
- 5223 - Client to Server (legacy SSL support)
- 5229 - Flash Cross Domain (Flash client support)
- 7070 - HTTP Binding (unsecured HTTP connecitons)
- 7070 - HTTP Binding (unsecured HTTP connections)
- 7443 - HTTP Binding (secured HTTP connections)
- 7777 - File Transfer Proxy (XMPP file transfers)
- 9090 - Admin Console (unsecured)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ If you employ a firewall to specify what ports can be accessed on your Linode, p
- 5222 - Client to Server (standard and encrypted)
- 5223 - Client to Server (legacy SSL support)
- 5229 - Flash Cross Domain (Flash client support)
- 7070 - HTTP Binding (unsecured HTTP connecitons)
- 7070 - HTTP Binding (unsecured HTTP connections)
- 7443 - HTTP Binding (secured HTTP connections)
- 7777 - File Transfer Proxy (XMPP file transfers)
- 9090 - Admin Console (unsecured)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ If you employ a firewall to specify what ports can be accessed on your Linode, p
- 5222 - Client to Server (standard and encrypted)
- 5223 - Client to Server (legacy SSL support)
- 5229 - Flash Cross Domain (Flash client support)
- 7070 - HTTP Binding (unsecured HTTP connecitons)
- 7070 - HTTP Binding (unsecured HTTP connections)
- 7443 - HTTP Binding (secured HTTP connections)
- 7777 - File Transfer Proxy (XMPP file transfers)
- 9090 - Admin Console (unsecured)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ If you employ a firewall to specify what ports can be accessed on your Linode, p
- 5222 - Client to Server (standard and encrypted)
- 5223 - Client to Server (legacy SSL support)
- 5229 - Flash Cross Domain (Flash client support)
- 7070 - HTTP Binding (unsecured HTTP connecitons)
- 7070 - HTTP Binding (unsecured HTTP connections)
- 7443 - HTTP Binding (secured HTTP connections)
- 7777 - File Transfer Proxy (XMPP file transfers)
- 9090 - Admin Console (unsecured)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ If you employ a firewall to specify what ports can be accessed on your Linode, p
- 5222 - Client to Server (standard and encrypted)
- 5223 - Client to Server (legacy SSL support)
- 5229 - Flash Cross Domain (Flash client support)
- 7070 - HTTP Binding (unsecured HTTP connecitons)
- 7070 - HTTP Binding (unsecured HTTP connections)
- 7443 - HTTP Binding (secured HTTP connections)
- 7777 - File Transfer Proxy (XMPP file transfers)
- 9090 - Admin Console (unsecured)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ If you employ a firewall to specify what ports can be accessed on your Linode, p
- 5222 - Client to Server (standard and encrypted)
- 5223 - Client to Server (legacy SSL support)
- 5229 - Flash Cross Domain (Flash client support)
- 7070 - HTTP Binding (unsecured HTTP connecitons)
- 7070 - HTTP Binding (unsecured HTTP connections)
- 7443 - HTTP Binding (secured HTTP connections)
- 7777 - File Transfer Proxy (XMPP file transfers)
- 9090 - Admin Console (unsecured)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ Next, set up a server to host a package index. This guide will use `pypiserver`,
pip install pypiserver

{{< note >}}
Alternatively, [download pypiserver from Gitub](https://github.com/pypiserver/pypiserver), then navigate into the downloaded pypiserver directory and install with `python setup.py install`.
Alternatively, [download pypiserver from Github](https://github.com/pypiserver/pypiserver), then navigate into the downloaded pypiserver directory and install with `python setup.py install`.
{{< /note >}}

4. Move `linode_example-0.1.tar.gz` into `~/packages`:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ This guide is written for a non-root user. Commands that require elevated privil
sudo apt-get update
sudo apt-get upgrade

2. One of the great things about using a Linux distribution with a dependancy-aware package manager is that you can just install the application you want to run, and it will make sure you have all the required software. If you're installing a graphic utility, that will include X. For now, let's install `xauth`, which is required for X to authenticate through the SSH session:
2. One of the great things about using a Linux distribution with a dependency-aware package manager is that you can just install the application you want to run, and it will make sure you have all the required software. If you're installing a graphic utility, that will include X. For now, let's install `xauth`, which is required for X to authenticate through the SSH session:

sudo apt-get install xauth

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ This guide is written for a non-root user. Commands that require elevated privil
sudo apt-get update
sudo apt-get upgrade

2. One of the great things about using a Linux distribution with a dependancy-aware package manager is that you can just install the application you want to run, and it will make sure you have all the required software. If you're installing a graphic utility, that will include X. For now, let's install `xauth`, which is required for X to authenticate through the SSH session:
2. One of the great things about using a Linux distribution with a dependency-aware package manager is that you can just install the application you want to run, and it will make sure you have all the required software. If you're installing a graphic utility, that will include X. For now, let's install `xauth`, which is required for X to authenticate through the SSH session:

sudo apt-get install xauth

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ Run the following command to restart the Apache Web server so that `mod_rewrite`

/etc/init.d/apache2 restart

You're now ready to install Elgg. For the purposes of this guide, Elgg will be installed at the root level of an Apache virtual host. The `DocumentRoot` for the virtual host will be located at `/srv/www/example.com/public_html/` and the site will be located at `http://example.com/`. You will need to substitute these paths with the paths that you comfigured in your Elgg virtual host.
You're now ready to install Elgg. For the purposes of this guide, Elgg will be installed at the root level of an Apache virtual host. The `DocumentRoot` for the virtual host will be located at `/srv/www/example.com/public_html/` and the site will be located at `http://example.com/`. You will need to substitute these paths with the paths that you configured in your Elgg virtual host.

# Installing Elgg

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ Install the `kibana` package:

### Elasticsearch

By default, Elasticsearch will create five shards and one replica for every index that's created. When deploying to production, these are reasonable settings to use. In this tutorial, only one server is used in the Elasticsearch setup, so multiple shards and replicas are unncessary. Changing these defaults can avoid unecessary overhead.
By default, Elasticsearch will create five shards and one replica for every index that's created. When deploying to production, these are reasonable settings to use. In this tutorial, only one server is used in the Elasticsearch setup, so multiple shards and replicas are unnecessary. Changing these defaults can avoid unnecessary overhead.

1. Create a temporary JSON file with an *index template* that instructs Elasticsearch to set the number of shards to one and number of replicas to zero for all matching index names (in this case, a wildcard `*`):

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ Install the `kibana` package:

### Elasticsearch

By default, Elasticsearch will create five shards and one replica for every index that's created. When deploying to production, these are reasonable settings to use. In this tutorial, only one server is used in the Elasticsearch setup, so multiple shards and replicas are unncessary. Changing these defaults can avoid unecessary overhead.
By default, Elasticsearch will create five shards and one replica for every index that's created. When deploying to production, these are reasonable settings to use. In this tutorial, only one server is used in the Elasticsearch setup, so multiple shards and replicas are unnecessary. Changing these defaults can avoid unnecessary overhead.

1. Create a temporary JSON file with an *index template* that instructs Elasticsearch to set the number of shards to one and number of replicas to zero for all matching index names (in this case, a wildcard `*`):

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ To run the same application in cluster mode, replace `--deploy-mode client`with

When you submit a job, Spark Driver automatically starts a web UI on port `4040` that displays information about the application. However, when execution is finished, the Web UI is dismissed with the application driver and can no longer be accessed.

Spark provides a History Server that collects application logs from HDFS and displays them in a persistent web UI. The following steps will enable log persistance in HDFS:
Spark provides a History Server that collects application logs from HDFS and displays them in a persistent web UI. The following steps will enable log persistence in HDFS:

1. Edit `$SPARK_HOME/conf/spark-defaults.conf` and add the following lines to enable Spark jobs to log in HDFS:

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ external_resources:
- '[MySQLdb User''s Guide](http://mysql-python.sourceforge.net/MySQLdb.html)'
---

MariaDB is a fork of the popular cross-platform MySQL database management system and is considered a full [drop-in replacement](https://mariadb.com/kb/en/mariadb/mariadb-vs-mysql-features/) for MySQL. MariaDB was created by one of MySQL's originial developers in 2009 after MySQL was acquired by Oracle during the Sun Microsystems merger. Today MariaDB is maintained and developed by the [MariaDB Foundation](https://mariadb.org/en/foundation/) and community contributors with the intention of it remaining GNU GPL software.
MariaDB is a fork of the popular cross-platform MySQL database management system and is considered a full [drop-in replacement](https://mariadb.com/kb/en/mariadb/mariadb-vs-mysql-features/) for MySQL. MariaDB was created by one of MySQL's original developers in 2009 after MySQL was acquired by Oracle during the Sun Microsystems merger. Today MariaDB is maintained and developed by the [MariaDB Foundation](https://mariadb.org/en/foundation/) and community contributors with the intention of it remaining GNU GPL software.

![How to Install MariaDB on CentOS 7](/docs/assets/how-to-install-mariadb-on-centos-7.png)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ On Debian 9 and later, run `sudo apt install dirmngr` before importing the key.
| Ubuntu 16.04 | 0xF1656F24C74CD1D8 | 10.1 | deb [arch=amd64,i386,ppc64el] http://mirror.nodesdirect.com/mariadb/repo/10.1/ubuntu xenial main
| Ubuntu 16.04 | 0xF1656F24C74CD1D8 | 10.0 | deb [arch=amd64,i386,ppc64el] http://mirror.nodesdirect.com/mariadb/repo/10.1/ubuntu xenial main

There may not be a released version for each distribution. e.g. Debian 8 has version 10.0 and 10.1 whereas Debian 9 has only 10.1 available. To see all available distributions, visit the MariaDB reporsitory [download page](https://downloads.mariadb.org/mariadb/repositories/).
There may not be a released version for each distribution. e.g. Debian 8 has version 10.0 and 10.1 whereas Debian 9 has only 10.1 available. To see all available distributions, visit the MariaDB repository [download page](https://downloads.mariadb.org/mariadb/repositories/).

3. Install MariaDB, Galera, and Rsync:

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ bindIp: 192.0.2.5

mongo mongo-query-router:27017 -u mongo-admin -p --authenticationDatabase admin

If your query router has a different hostname, subsitute that in the command.
If your query router has a different hostname, substitute that in the command.

3. From the `mongos` interface, add each shard individually:

Expand All @@ -392,7 +392,7 @@ Before adding replica sets as shards, you must first configure the replica sets

## Configure Sharding

At this stage, the components of your cluster are all connected and communicating with one another. The final step is to enable sharding. Enabling sharding takes place in stages due to the organization of data in MongoDB. To understand how data will be distrubuted, let's briefly review the main data structures:
At this stage, the components of your cluster are all connected and communicating with one another. The final step is to enable sharding. Enabling sharding takes place in stages due to the organization of data in MongoDB. To understand how data will be distributed, let's briefly review the main data structures:

- **Databases** - The broadest data structure in MongoDB, used to hold groups of related data.
- **Collections** - Analogous to tables in traditional relational database systems, collections are the data structures that comprise databases
Expand All @@ -406,7 +406,7 @@ First, we'll enable sharding at the database level, which means that collections

mongo mongo-query-router:27017 -u mongo-admin -p --authenticationDatabase admin

If applicable, subsitute your own query router's hostname.
If applicable, substitute your own query router's hostname.

2. From the `mongos` shell, create a new database. We'll call ours `exampleDB`:

Expand Down Expand Up @@ -466,7 +466,7 @@ It's not always necessary to shard every collection in a database. Depending on

## Test Your Cluster

This section is optional. To ensure your data is being distributed evenly in the example database and collection we configured aboved, you can follow these steps to generate some basic test data and see how it is divided among the shards.
This section is optional. To ensure your data is being distributed evenly in the example database and collection we configured above, you can follow these steps to generate some basic test data and see how it is divided among the shards.

1. Connect to the `mongo` shell on your query router if you're not already there:

Expand Down
2 changes: 1 addition & 1 deletion docs/databases/mongodb/install-mongodb-on-centos-7.md
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ If you enabled role-based access control in the [Configure MongoDB](#configure-m

db.createUser({user: "example-user", pwd: "password", roles:[{role: "read", db: "user-data"}, {role:"readWrite", db: "exampleDB"}]})

To create additional users, repeat Steps 6 and 7 as the administrative user, creating new usernames, passwords and roles by substituing the appropriate values.
To create additional users, repeat Steps 6 and 7 as the administrative user, creating new usernames, passwords and roles by substituting the appropriate values.

8. Exit the mongo shell:

Expand Down
Loading