streamnative / function-mesh

The serverless framework purpose-built for event streaming applications.
https://functionmesh.io/
Apache License 2.0
211 stars 28 forks source link

python runner which use pulsar-client==3.2.0 cannot work with auth enabled pulsar cluster #660

Closed jiangpengcheng closed 1 year ago

jiangpengcheng commented 1 year ago

error logs look like:

Error: l last): [2023-06-30 08:05:05 +0000] [ERROR] log.py: File "/pulsar/instances/python-instance/python_instance_main.py", line 239, in <module> [2023-06-30 08:05:05 +0000] [ERROR] log.py: main() [2023-06-30 08:05:05 +0000] [ERROR] log.py: File "/pulsar/instances/python-instance/python_instance_main.py", line 176, in main [2023-06-30 08:05:05 +0000] [ERROR] log.py: authentication = pulsar.Authentication(args.client_auth_plugin, args.client_auth_params) [2023-06-30 08:05:05 +0000] [ERROR] log.py: File "/pulsar/instances/python-instance/pulsar/__init__.py", line 278, in __init__ [2023-06-30 08:05:05 +0000] [ERROR] log.py: self.auth = _pulsar.Authentication(dynamicLibPath, authParamsString) [2023-06-30 08:05:05 +0000] [ERROR] log.py: TypeError [2023-06-30 08:05:05 +0000] [ERROR] log.py: : [2023-06-30 08:05:05 +0000] [ERROR] log.py: _pulsar.Authentication: No constructor defined!
Error: 6-30 08:05:05 +0000] [ERROR] log.py:   File "/pulsar/instances/python-instance/python_instance_main.py", line 239, in <module>
Error: 6-30 08:05:05 +0000] [ERROR] log.py: main()
Error: 6-30 08:05:05 +0000] [ERROR] log.py:   File "/pulsar/instances/python-instance/python_instance_main.py", line 176, in main
Error: 6-30 08:05:05 +0000] [ERROR] log.py: authentication = pulsar.Authentication(args.client_auth_plugin, args.client_auth_params)
Error: 6-30 08:05:05 +0000] [ERROR] log.py:   File "/pulsar/instances/python-instance/pulsar/__init__.py", line 278, in __init__
Error: 6-30 08:05:05 +0000] [ERROR] log.py: self.auth = _pulsar.Authentication(dynamicLibPath, authParamsString)
Error: 6-30 08:05:05 +0000] [ERROR] log.py: TypeError
Error: 6-30 08:05:05 +0000] [ERROR] log.py: :
Error: 6-30 08:05:05 +0000] [ERROR] log.py: _pulsar.Authentication: No constructor defined!'
Error: 023-06-30 08:05:05 +0000] [ERROR] log.py: Traceback (most recent call last):
Error: 6-30 08:05:05 +0000] [ERROR] log.py:   File "/pulsar/instances/python-instance/python_instance_main.py", line 239, in <module>
Error: 6-30 08:05:05 +0000] [ERROR] log.py: main()
Error: 6-30 08:05:05 +0000] [ERROR] log.py:   File "/pulsar/instances/python-instance/python_instance_main.py", line 176, in main
Error: 6-30 08:05:05 +0000] [ERROR] log.py: authentication = pulsar.Authentication(args.client_auth_plugin, args.client_auth_params)
Error: 6-30 08:05:05 +0000] [ERROR] log.py:   File "/pulsar/instances/python-instance/pulsar/__init__.py", line 278, in __init__
Error: 6-30 08:05:05 +0000] [ERROR] log.py: self.auth = _pulsar.Authentication(dynamicLibPath, authParamsString)
Error: 6-30 08:05:05 +0000] [ERROR] log.py: TypeError
Error: 6-30 08:05:05 +0000] [ERROR] log.py: :