You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2020/09/09 10:56:48 UTC

[GitHub] [pulsar] Jennifer88huang commented on a change in pull request #8005: [docs] Update Functions package content

Jennifer88huang commented on a change in pull request #8005:
URL: https://github.com/apache/pulsar/pull/8005#discussion_r485521466



##########
File path: site2/docs/functions-package.md
##########
@@ -4,58 +4,24 @@ title: Package Pulsar Functions
 sidebar_label: "How-to: Package"
 ---
 
-This section provides step-by-step instructions to package Pulsar functions in Java, Python, and Go. 
+You can package Pulsar functions in Java, Python, and Go. Packaging a window function in Java is the same as [packaging a function in Java](#java).
 
-> **Tip**
->
-> - Packaging a window function in Java is the same as [packaging a function in Java](#java) as below. 
->
-> - Currently, the window function is not available in Python and Go.
+> **Note**    
+> Currently, window function is not available in Python and Go.
 
 ## Prerequisite
 
-Before running a Pulsar function, you need to start Pulsar.
-
-### Run a standalone Pulsar in Docker
-
-This example uses Docker to run a standalone Pulsar.
-
-```bash
-docker run -it \
-    -p 6650:6650 \
-    -p 8080:8080 \
-    -v $PWD/data:/pulsar/data \
-    apachepulsar/pulsar:latest \
-    bin/pulsar standalone
-```
-
-> **Tip**
->
-> - `$PWD/data` is the local directory. `-v` maps the `/pulsar/data` directory in the Docker image to the local `$PWD/data` directory.
->
-> - To check whether the image starts, use the command `docker ps`.
-
-### Run Pulsar cluster in k8s
-
-For details about how to deploy a Pulsar cluster in the k8s environment, For details, see [here](helm-overview.md).
+Before running a Pulsar function, you need to start Pulsar. You can [run a standalone Pulsar in Docker](getting-started-docker.md), or [run Pulsar cluster in Kubernetes](getting-started-helm.md).
 
+To check whether the Docker image starts, you can use the `docker ps` command.
 
 ## Java 
 
-This example demonstrates how to package a function in Java.
-
-> **Note**
->
-> This example assumes that you have [run a standalone Pulsar in Docker](#run-a-standalone-pulsar-in-docker) successfully.
-
+To package a function in Java, complete the following steps.
 
-1. Create a new maven project with a pom file.
+1. Create a new maven project with a pom file. In the following code sample, `mainClass` is your package name.

Review comment:
       @wolfstudy please confirm, thank you.




----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org