apache / apache/pulsar

[Python-Pulsar]Cannot use pulsar function with a python file

Open
#14,698 4 comments 0 reactions 0 assignees View on GitHub
help wanted lifecycle/stale Stale type/bug
Dominant language
Java
Stars
15.3k
Forks
3.8k
Avg merge
1d 14h
Merged PRs (30d)
160

Description

**Describe the bug**
The pulsar function doesn't work with python file (localrun), I totally follow the steps on official website. The function can be created but not work.

**To Reproduce**
Steps to reproduce the behavior:
1. Just download the ExclamationFunction.py
2. Upload to pulsar server
3. Use the cmd to localrun the funtion " ./pulsar-admin functions localrun \
--classname ExclamationFunction \
--py /pulsar/ExclamationFunction.py \
--inputs input \
--output output \
--tenant public \
--namespace default --name PythonFuncName"
5. See error

**Screenshots**
![1d4633c4bcea8f1abbd21775a78045c](https://user-images.githubusercontent.com/99303423/158495022-065cba8f-ab01-401d-9dc3-6929d59f0375.jpg)

**Desktop (please complete the following information):**
- OS: Windows
-
**Additional context**
Add any other context about the problem here.

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the failure with ExclamationFunction.py and the provided pulsar-admin functions localrun command on Windows. Read the resulting error and trace the Python function local-run path; done means the documented command runs the function successfully with the input and output topics.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
distributed-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.