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 2022/03/16 00:49:21 UTC

[GitHub] [pulsar] aoy0208 opened a new issue #14698: [Python-Pulsar]Cannot use pulsar function with a python file

aoy0208 opened a new issue #14698:
URL: https://github.com/apache/pulsar/issues/14698


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


-- 
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: commits-unsubscribe@pulsar.apache.org

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



[GitHub] [pulsar] tuteng commented on issue #14698: [Python-Pulsar]Cannot use pulsar function with a python file

Posted by GitBox <gi...@apache.org>.
tuteng commented on issue #14698:
URL: https://github.com/apache/pulsar/issues/14698#issuecomment-1068657168


   https://github.com/tuteng/python-function Maybe this example is helpful @aoy0208 


-- 
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: commits-unsubscribe@pulsar.apache.org

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



[GitHub] [pulsar] aoy0208 commented on issue #14698: [Python-Pulsar]Cannot use pulsar function with a python file

Posted by GitBox <gi...@apache.org>.
aoy0208 commented on issue #14698:
URL: https://github.com/apache/pulsar/issues/14698#issuecomment-1068856819


   > https://github.com/tuteng/python-function Maybe this example is helpful @aoy0208
   
   @tuteng Can I only upload only one .py file to run pulsar function? and does the example 'ExclamatonFunction' in Pulsar Github works ?
   I just upload the .py file only and use CLi like below:
   ./bin/pulsar-admin functions localrun \
   --classname ExclamationFunction \
   --py /pulsar/ExclamationFunction.py \
   --inputs input \
   --output output \
   --tenant public \
   --namespace default --name PythonFuncName
   
   Could you plz tell whats wrong with that ?


-- 
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: commits-unsubscribe@pulsar.apache.org

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