### Motivation Currently for all Java functions(and by extension all sources/sinks) the file from bookkeeper is downloaded and stored as a jar. This means that the logic of figuring out whether a java function is nar or plain jar cannot be based on the extension of the file. This pr tries to first interpret the file as nar and if that fails interprets it as jar.
### Modifications Describe the modifications you've done. ### Result After your change, what will change. [ Full content available at: https://github.com/apache/incubator-pulsar/pull/2502 ] This message was relayed via gitbox.apache.org for [email protected]
