You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@arrow.apache.org by ho...@apache.org on 2022/02/22 02:26:35 UTC
[arrow-datafusion] branch master updated: Add doc for building `datafusion-cli` when connect the ballista (#1866)
This is an automated email from the ASF dual-hosted git repository.
houqp pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/arrow-datafusion.git
The following commit(s) were added to refs/heads/master by this push:
new 4fcaa25 Add doc for building `datafusion-cli` when connect the ballista (#1866)
4fcaa25 is described below
commit 4fcaa256c3ea9649f10260554105e4e3e1e24b27
Author: Kun Liu <li...@apache.org>
AuthorDate: Tue Feb 22 10:26:27 2022 +0800
Add doc for building `datafusion-cli` when connect the ballista (#1866)
---
datafusion-cli/README.md | 13 ++++++++++++-
docs/source/user-guide/cli.md | 16 ++++++++++++++++
2 files changed, 28 insertions(+), 1 deletion(-)
diff --git a/datafusion-cli/README.md b/datafusion-cli/README.md
index 6a4707e..f8624bb 100644
--- a/datafusion-cli/README.md
+++ b/datafusion-cli/README.md
@@ -66,9 +66,20 @@ DataFusion CLI v4.0.0-SNAPSHOT
```
## Ballista
+If you want to execute the SQL in ballista by `datafusion-cli`, you must build/compile the `datafusion-cli` with features of "ballista" first.
+
+```bash
+cargo build --features ballista
+```
+
+or
+
+```bash
+cargo build -p datafusion-cli --features ballista
+```
The DataFusion CLI can connect to a Ballista scheduler for query execution.
-```bash,ignore
+```bash
datafusion-cli --host localhost --port 50050
```
\ No newline at end of file
diff --git a/docs/source/user-guide/cli.md b/docs/source/user-guide/cli.md
index 1d2d6b7..7c6486e 100644
--- a/docs/source/user-guide/cli.md
+++ b/docs/source/user-guide/cli.md
@@ -69,6 +69,22 @@ DataFusion CLI v5.1.0-SNAPSHOT
The DataFusion CLI can also connect to a Ballista scheduler for query execution.
+Before you use the `datafusion-cli` to connect the Ballista scheduler, you should build/compile
+the `datafusion-cli` with feature of "ballista" first.
+
+```bash
+cargo build --features ballista
+```
+
+or
+
+```bash
+cargo build -p datafusion-cli --features ballista
+
+```
+
+Then, you can connect the Ballista by below command.
+
```bash
datafusion-cli --host localhost --port 50050
```