Skip to content

Commit

Permalink
op-guide: add accessing Spark with Python or R
Browse files Browse the repository at this point in the history
  • Loading branch information
lilin90 committed Jul 19, 2018
1 parent ccbdba0 commit c3e5ef9
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions op-guide/docker-compose.md
Original file line number Diff line number Diff line change
Expand Up @@ -164,4 +164,13 @@ scala> spark.sql("select count(*) from lineitem").show
+--------+
```
You can also access Spark with Python or R using the following commands:
```
docker-compose exec tispark-master /opt/spark/bin/pyspark
docker-compose exec tispark-master /opt/spark/bin/sparkR
```
For more details about TiSpark, see [here](../tispark/tispark-quick-start-guide.md).
Here is [a 5-minute tutorial](https://www.pingcap.com/blog/how_to_spin_up_an_htap_database_in_5_minutes_with_tidb_tispark/) for macOS users that shows how to spin up a standard TiDB cluster using Docker Compose on your local computer.

0 comments on commit c3e5ef9

Please sign in to comment.