You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@asterixdb.apache.org by Calvin Dani <ca...@gmail.com> on 2025/08/01 20:55:37 UTC
Python UDF Documentation
Hi,
I wanted to share a few notes and corrections I encountered while setting
up Python UDFs, which may be helpful for others exploring the same.
1. cc.conf Configuration:
Docs = """
Then, in your cc.conf, in the [cc] section, add the correct credential.file
path
"""
to be changed to
"""
Then, in your cc.conf, in the [nc] section, add the correct credential.file
path
"""
In my case since i used 1 NC , i put absolute path to the credential file
as relative path for some reason didnt work for both sample cluster script
and ansible.
2. UDF Deployment Endpoint:
Docs = """
curl -v -u admin:admin -X POST -F 'data=@./lib.pyz' -F 'type=python'
localhost:19002/admin/udf/udfs/pyli
"""
to be changed to
"""
curl -v -u admin:admin -X POST -F 'data=@./lib.pyz' -F 'type=python'
localhost:19004/admin/udf/udfs/pyli
"""
3. Build Configuration:
The project has to be compiled with -Dpython.path in mvn clean package
command.
4. Deployment Note:
Also the UDF has to be deployed from the same machine as asterix is
deployed.
Thanks again to Ian for helping identify and resolve these issues.
Regards
Calvin Dani