tbar4 commented on code in PR #1100:
URL: 
https://github.com/apache/datafusion-ballista/pull/1100#discussion_r1845821674


##########
docs/source/user-guide/python.md:
##########
@@ -28,9 +28,25 @@ popular file formats files, run it in a distributed 
environment, and obtain the
 
 The following code demonstrates how to create a Ballista context and connect 
to a scheduler.
 
+If you are running a standalone cluster (runs locally), all you need to do is 
call the stand alone cluster method `standalone()` or your BallistaContext. If 
you are running a cluster in remote mode, you need to provide the URL 
`Ballista.remote("http://my-remote-ip:50050";)`.
+
 ```text
->>> import ballista
->>> ctx = ballista.BallistaContext("localhost", 50050)
+>>> from ballista import Ballista, BallistaBuilder
+>>> # for a standalone instance
+>>> # Ballista will initiate with an empty config
+>>> # set config variables with `set()`
+>>> ballista = BallistaBuilder()\
+>>>    .set("ballista.job.name", "example ballista")\
+>>>    .set("ballista.shuffle.partitions", "16")\
+>>>    .set("ballista.executor.cpus", "4")\
+>>>    .build()
+>>> 
+>>> # Show the Ballista Config
+>>> print(ballista.show_config())

Review Comment:
   removed show_config



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to