the class loader in pulsar function recognizes jar file as an nar file?
See original GitHub issueDescribe the bug I met an exception when I run a pulsar function, it seems that the class loader in pulsar recognizes it as a nar file, but I don’t use any nar.
To Reproduce Steps to reproduce the behavior:
-
run a pulsar function ./pulsar-admin functions localrun
–jar /path/to/xxx.jar
–tenant xxxtenant --namespace xxxnamespace
–classname com.xx.functions.xxxxtransformer.XxxxTransfer2xxx
–inputs persistent://xxxtenant/xxxnamespace/xxxtopic1,persistent://xxxtenant/xxxnamespace/xxxtopic2
–output persistent://xxxtenant/xxxnamespace/xxxtopic-target
–logTopic persistent://xxxtenant/xxxnamespace/xxx-topic-logs
–name xxx-transformer I get the error. -
when I delete a dependency about a module which includes a dependency
<dependency> <groupId>com.facebook.presto</groupId> <groupId>io.prestosql</groupId> <artifactId>presto-jdbc</artifactId> <version>${presto-jdbc.version}</version> </dependency>
it works
Expected behavior don’t show the issue.
Screenshots
Desktop (please complete the following information):
- OS: macOS Big Sur, pulsar 2.7.0
Additional context @david-streamlio : There appears to be an issue with your NAR file. Specifically with the pulsar-common jar file. Perhaps you can try changing the scope of that dependency to provided and retry? follow david’s advice, remove denpendency , it works, but I consider that maybe the class loader recognizes wrongly the presto as a nar file?
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (5 by maintainers)
Top GitHub Comments
yea, I am in a rush this week, let me write another demo to show you in next days. @lhotari
Closed as stale. Please create a new issue if it’s still relevant to the maintained versions.