Skip to content

Apache DataFusion SQL Query Engine

Add doc for building `datafusion-cli` when connect the ballista (#1866)

Kun Liu4fcaa256c3ea
diff --git a/datafusion-cli/README.md b/datafusion-cli/README.md
index 6a4707e2a1..f8624bbdaf 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 1d2d6b79d4..7c6486e701 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
```