You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@druid.apache.org by "paul-rogers (via GitHub)" <gi...@apache.org> on 2023/01/27 00:13:28 UTC
[GitHub] [druid] paul-rogers commented on a diff in pull request #13647: Remove unnecessary python topic. Style changes to quickstart.
paul-rogers commented on code in PR #13647:
URL: https://github.com/apache/druid/pull/13647#discussion_r1088458210
##########
docs/tutorials/cluster.md:
##########
@@ -133,7 +133,7 @@ The [basic cluster tuning guide](../operations/basic-cluster-tuning.md) has info
We recommend running your favorite Linux distribution. You will also need
* [Java 8 or 11](../operations/java.md).
-* [Python2 or Python3](../operations/python.md)
+* Python 2 or Python 3
Review Comment:
Python 2 is EOL. Should we require just Python 3? Or, do we suspect there are users still on Python 2 for various reasons?
##########
docs/tutorials/index.md:
##########
@@ -22,34 +22,33 @@ title: "Quickstart (local)"
~ under the License.
-->
-This quickstart gets you started with Apache Druid and introduces you to Druid ingestion and query features. For this tutorial, we recommend a machine with at least 6 GB of RAM.
+This quickstart helps you install Apache Druid and introduces you to Druid ingestion and query features. For this tutorial, you need a machine with at least 16 GiB of RAM.
-In this quickstart, you'll do the following:
+In this quickstart, you'll:
- install Druid
- start up Druid services
- use SQL to ingest and query data
Druid supports a variety of ingestion options. Once you're done with this tutorial, refer to the
[Ingestion](../ingestion/index.md) page to determine which ingestion method is right for you.
-## Requirements
+## Prerequisites
You can follow these steps on a relatively modest machine, such as a workstation or virtual server with 16 GiB of RAM.
Druid comes equipped with launch scripts that can be used to start all processes on a single server. Here, we will use [`auto`](../operations/single-server.md#druid-auto-start), which automatically sets various runtime properties based on available processors and memory.
-In addition, Druid includes several [bundled non-automatic profiles](../operations/single-server.md) for a range of machine sizes. These range from nano (1 CPU, 4GiB RAM) to x-large (64 CPU, 512GiB RAM).
-We won't use those here, but for more information, see [Single server deployment](../operations/single-server.md). For additional information on deploying Druid services across clustered machines, see [Clustered deployment](./cluster.md).
+In addition, Druid includes several [bundled static profiles](../operations/single-server.md) for a range of machine sizes. These range from nano (1 CPU, 4 GiB RAM) to x-large (64 CPU, 512 GiB RAM).
+See [Single server deployment](../operations/single-server.md) for more information. To learn how to deploy Druid services across clustered machines, see [Clustered deployment](./cluster.md).
The software requirements for the installation machine are:
* Linux, Mac OS X, or other Unix-like OS. (Windows is not supported)
* [Java 8u92+ or Java 11](../operations/java.md)
-* [Python2 or Python3](../operations/python.md)
+* Python 2 or Python 3
-> Druid relies on the environment variables `JAVA_HOME` or `DRUID_JAVA_HOME` to find Java on the machine. You can set
-`DRUID_JAVA_HOME` if there is more than one instance of Java. To verify Java requirements for your environment, run the
-`bin/verify-java` script.
+You must set either the `JAVA_HOME` or `DRUID_JAVA_HOME` environment variable for Druid to find Java on the machine. If there is more than one version of Java installed, set
Review Comment:
Is this true? I suspect we can also infer the location from the `java` command. For example, on my machine, I have neither of the above env vars set, but `java` is on the path.
##########
docs/tutorials/index.md:
##########
@@ -22,34 +22,33 @@ title: "Quickstart (local)"
~ under the License.
-->
-This quickstart gets you started with Apache Druid and introduces you to Druid ingestion and query features. For this tutorial, we recommend a machine with at least 6 GB of RAM.
+This quickstart helps you install Apache Druid and introduces you to Druid ingestion and query features. For this tutorial, you need a machine with at least 16 GiB of RAM.
-In this quickstart, you'll do the following:
+In this quickstart, you'll:
- install Druid
- start up Druid services
- use SQL to ingest and query data
Druid supports a variety of ingestion options. Once you're done with this tutorial, refer to the
[Ingestion](../ingestion/index.md) page to determine which ingestion method is right for you.
-## Requirements
+## Prerequisites
You can follow these steps on a relatively modest machine, such as a workstation or virtual server with 16 GiB of RAM.
Druid comes equipped with launch scripts that can be used to start all processes on a single server. Here, we will use [`auto`](../operations/single-server.md#druid-auto-start), which automatically sets various runtime properties based on available processors and memory.
-In addition, Druid includes several [bundled non-automatic profiles](../operations/single-server.md) for a range of machine sizes. These range from nano (1 CPU, 4GiB RAM) to x-large (64 CPU, 512GiB RAM).
-We won't use those here, but for more information, see [Single server deployment](../operations/single-server.md). For additional information on deploying Druid services across clustered machines, see [Clustered deployment](./cluster.md).
+In addition, Druid includes several [bundled static profiles](../operations/single-server.md) for a range of machine sizes. These range from nano (1 CPU, 4 GiB RAM) to x-large (64 CPU, 512 GiB RAM).
Review Comment:
Perhaps add, "Many people use the micro-quickstart profile when learning Druid." That way, folks won't have to guess which one to pick to get started.
##########
docs/tutorials/index.md:
##########
@@ -97,16 +98,19 @@ $ ./bin/start-druid
[Tue Nov 29 16:31:06 2022] Running command[middleManager]: bin/run-druid middleManager /apache-druid-{{DRUIDVERSION}}/conf/druid/single-server/quickstart '-Xms64m -Xmx64m' '-Ddruid.worker.capacity=2 -Ddruid.indexer.runner.javaOptsArray=["-server","-Duser.timezone=UTC","-Dfile.encoding=UTF-8","-XX:+ExitOnOutOfMemoryError","-Djava.util.logging.manager=org.apache.logging.log4j.jul.LogManager","-Xms256m","-Xmx256m","-XX:MaxDirectMemorySize=256m"]'
```
-All persistent state, such as the cluster metadata store and segments for the services, are kept in the `var` directory under
-the Druid root directory, apache-druid-{{DRUIDVERSION}}. Each service writes to a log file under `var/sv`.
+It may use up to 80% of the total available system memory.
+To explicitly set the total memory available to Druid, pass a value for the memory parameter. For example, `./bin/start-druid -m 16g`.
+
+Druid stores all persistent state data, such as the cluster metadata store and data segments, in `apache-druid-{{DRUIDVERSION}}/var`.
+Each service writes to a log file under `var/sv`.
At any time, you can revert Druid to its original, post-installation state by deleting the entire `var` directory. You may want to do this, for example, between Druid tutorials or after experimentation, to start with a fresh instance.
To stop Druid at any time, use CTRL+C in the terminal. This exits the `bin/start-druid` script and terminates all Druid processes.
## Open the web console
-After the Druid services finish startup, open the [web console](../operations/web-console.md) at [http://localhost:8888](http://localhost:8888).
+After the Druid services launch, open the [web console](../operations/web-console.md) at [http://localhost:8888](http://localhost:8888).
Review Comment:
Actually, it takes some time for the services to become ready after they "launch." Maybe:
> After starting the Druid services, open ...
##########
docs/tutorials/index.md:
##########
@@ -97,16 +98,19 @@ $ ./bin/start-druid
[Tue Nov 29 16:31:06 2022] Running command[middleManager]: bin/run-druid middleManager /apache-druid-{{DRUIDVERSION}}/conf/druid/single-server/quickstart '-Xms64m -Xmx64m' '-Ddruid.worker.capacity=2 -Ddruid.indexer.runner.javaOptsArray=["-server","-Duser.timezone=UTC","-Dfile.encoding=UTF-8","-XX:+ExitOnOutOfMemoryError","-Djava.util.logging.manager=org.apache.logging.log4j.jul.LogManager","-Xms256m","-Xmx256m","-XX:MaxDirectMemorySize=256m"]'
```
-All persistent state, such as the cluster metadata store and segments for the services, are kept in the `var` directory under
-the Druid root directory, apache-druid-{{DRUIDVERSION}}. Each service writes to a log file under `var/sv`.
+It may use up to 80% of the total available system memory.
Review Comment:
It -> "Druid"
##########
docs/tutorials/index.md:
##########
@@ -22,9 +22,9 @@ title: "Quickstart (local)"
~ under the License.
-->
-This quickstart gets you started with Apache Druid and introduces you to Druid ingestion and query features. For this tutorial, we recommend a machine with at least 6 GB of RAM.
+This quickstart helps you install Apache Druid and introduces you to Druid ingestion and query features. For this tutorial, you need a machine with at least 16 GiB of RAM.
Review Comment:
Have we checked how much RAM is _actually_ used? Note that stating the machine RAM size is misleading: I might be running something that already uses 15 GB of RAM. Do we need 16 GB of _available_ memory? Probably much less? How much?
##########
docs/tutorials/index.md:
##########
@@ -22,34 +22,33 @@ title: "Quickstart (local)"
~ under the License.
-->
-This quickstart gets you started with Apache Druid and introduces you to Druid ingestion and query features. For this tutorial, we recommend a machine with at least 6 GB of RAM.
+This quickstart helps you install Apache Druid and introduces you to Druid ingestion and query features. For this tutorial, you need a machine with at least 16 GiB of RAM.
-In this quickstart, you'll do the following:
+In this quickstart, you'll:
- install Druid
- start up Druid services
- use SQL to ingest and query data
Druid supports a variety of ingestion options. Once you're done with this tutorial, refer to the
[Ingestion](../ingestion/index.md) page to determine which ingestion method is right for you.
-## Requirements
+## Prerequisites
You can follow these steps on a relatively modest machine, such as a workstation or virtual server with 16 GiB of RAM.
Druid comes equipped with launch scripts that can be used to start all processes on a single server. Here, we will use [`auto`](../operations/single-server.md#druid-auto-start), which automatically sets various runtime properties based on available processors and memory.
-In addition, Druid includes several [bundled non-automatic profiles](../operations/single-server.md) for a range of machine sizes. These range from nano (1 CPU, 4GiB RAM) to x-large (64 CPU, 512GiB RAM).
-We won't use those here, but for more information, see [Single server deployment](../operations/single-server.md). For additional information on deploying Druid services across clustered machines, see [Clustered deployment](./cluster.md).
+In addition, Druid includes several [bundled static profiles](../operations/single-server.md) for a range of machine sizes. These range from nano (1 CPU, 4 GiB RAM) to x-large (64 CPU, 512 GiB RAM).
+See [Single server deployment](../operations/single-server.md) for more information. To learn how to deploy Druid services across clustered machines, see [Clustered deployment](./cluster.md).
The software requirements for the installation machine are:
* Linux, Mac OS X, or other Unix-like OS. (Windows is not supported)
* [Java 8u92+ or Java 11](../operations/java.md)
-* [Python2 or Python3](../operations/python.md)
+* Python 2 or Python 3
-> Druid relies on the environment variables `JAVA_HOME` or `DRUID_JAVA_HOME` to find Java on the machine. You can set
-`DRUID_JAVA_HOME` if there is more than one instance of Java. To verify Java requirements for your environment, run the
-`bin/verify-java` script.
+You must set either the `JAVA_HOME` or `DRUID_JAVA_HOME` environment variable for Druid to find Java on the machine. If there is more than one version of Java installed, set
+`DRUID_JAVA_HOME`. You can run `bin/verify-java` to verify Java requirements for your environment.
Review Comment:
Suggestion. Newbies may not know which `bin` we mean above. The system one? One way to solve that is to define `DRUID_HOME` as the location of Druid, and say `$DRUID_HOME/bin...`.
##########
docs/tutorials/index.md:
##########
@@ -71,17 +70,19 @@ The distribution directory contains `LICENSE` and `NOTICE` files and subdirector
## Start up Druid services
Start up Druid services using the `auto` single-machine configuration.
-This configuration includes default settings that are appropriate for this tutorial, such as loading the `druid-multi-stage-query` extension by default so that you can use the MSQ task engine.
+This configuration includes default settings that are appropriate for this tutorial.
+For example, it loads `druid-multi-stage-query` extension so that you can use the MSQ task engine to ingest data using SQL.
-You can view that setting and others in the configuration files in the `conf/druid/auto`.
+You can view the default settings in the configuration files located in `conf/druid/auto`.
From the apache-druid-{{DRUIDVERSION}} package root, run the following command:
Review Comment:
Suggestion: use `apache-druid-<version>` or `apche-druid-$DRUID_VERSION`. The double brackets are a bit non-standard in this context, though they are used in Go's templating system.
##########
docs/tutorials/index.md:
##########
@@ -97,16 +98,19 @@ $ ./bin/start-druid
[Tue Nov 29 16:31:06 2022] Running command[middleManager]: bin/run-druid middleManager /apache-druid-{{DRUIDVERSION}}/conf/druid/single-server/quickstart '-Xms64m -Xmx64m' '-Ddruid.worker.capacity=2 -Ddruid.indexer.runner.javaOptsArray=["-server","-Duser.timezone=UTC","-Dfile.encoding=UTF-8","-XX:+ExitOnOutOfMemoryError","-Djava.util.logging.manager=org.apache.logging.log4j.jul.LogManager","-Xms256m","-Xmx256m","-XX:MaxDirectMemorySize=256m"]'
```
-All persistent state, such as the cluster metadata store and segments for the services, are kept in the `var` directory under
-the Druid root directory, apache-druid-{{DRUIDVERSION}}. Each service writes to a log file under `var/sv`.
+It may use up to 80% of the total available system memory.
+To explicitly set the total memory available to Druid, pass a value for the memory parameter. For example, `./bin/start-druid -m 16g`.
+
+Druid stores all persistent state data, such as the cluster metadata store and data segments, in `apache-druid-{{DRUIDVERSION}}/var`.
+Each service writes to a log file under `var/sv`.
Review Comment:
Did we change that again? In my latest build, logs go to `$DRUID_HOME/log`.
(See how smooth it is to use $DRUID_HOME instead of `apache-druid-{{DRUIDVERSION}}`?
Also, note that here we are prefixing `var` with `apache-druid-{{DRUIDVERSION}}`, where as above we just referenced `bin` without a prefix.
##########
docs/tutorials/index.md:
##########
@@ -71,17 +70,19 @@ The distribution directory contains `LICENSE` and `NOTICE` files and subdirector
## Start up Druid services
Start up Druid services using the `auto` single-machine configuration.
-This configuration includes default settings that are appropriate for this tutorial, such as loading the `druid-multi-stage-query` extension by default so that you can use the MSQ task engine.
+This configuration includes default settings that are appropriate for this tutorial.
+For example, it loads `druid-multi-stage-query` extension so that you can use the MSQ task engine to ingest data using SQL.
-You can view that setting and others in the configuration files in the `conf/druid/auto`.
+You can view the default settings in the configuration files located in `conf/druid/auto`.
From the apache-druid-{{DRUIDVERSION}} package root, run the following command:
```bash
./bin/start-druid
```
-This brings up instances of ZooKeeper and the Druid services and may use up to 80% of the total available system memory. To explicitly set the total memory available to Druid, pass a value for the memory parameter, e.g. `./bin/start-druid -m 16g` or `./bin/start-druid --memory 16g`.
+This launches instances of ZooKeeper and the Druid services.
Review Comment:
Suggestion: `start-druid` launches ZooKeeper and the various Druid services.
Does this cluster use the embedded Derby DB? If so, we might want to say that and note that a production system would use MySQL or Postgres instead.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org