Slackbot
12/08/2023, 6:41 PMDavid K
12/08/2023, 6:46 PMpy instead of jar for Python functions to specify the artifact name. The Pulsar function framework uses that field to decide which runtime environment is needed to run the function. jar = java, py = pythonOneeb
12/08/2023, 7:12 PMOneeb
12/08/2023, 7:14 PMpulsar-admin CLIOneeb
12/10/2023, 7:21 AMMing
12/10/2023, 10:28 PM# File path
file_path = "/Users/mingluo/function.jar"
# Make the request
response = requests.post(
url,
headers=headers,
files={'data': open(file_path, 'rb')},
data={'functionConfig': json.dumps(function_config)}
)Oneeb
12/11/2023, 3:30 AMjar field in the functionConfig?Oneeb
12/11/2023, 1:45 PM/tmp folder of the broker, before I run the create post request?Silvia Santillan Nava
12/11/2023, 1:47 PMMing
12/11/2023, 3:14 PMdata part. There is a built-in function which you don’t need upload a function. I am not sure if you refer to the built-in function.
sorry, this is from a curl working example I have that I convert to Python. It looks like the same path may need to provide twice. can you try?Oneeb
12/12/2023, 1:22 PMFunction package is not providedMing
12/12/2023, 1:35 PMOneeb
12/12/2023, 1:37 PMMing
12/12/2023, 1:38 PMOneeb
12/12/2023, 1:38 PMDavid K
12/14/2023, 9:30 PMOneeb
03/13/2024, 11:01 AMgeneric-stream-function. I am unclear on how to use this without having to upload the function. Having to upload the function would defeat the purpose.
Can you share the structure of the REST call for this or guide me to the documentation covering this?