GitHub user ChinmaySKulkarni opened a pull request: https://github.com/apache/phoenix/pull/292
PHOENIX-4231: Support restriction of remote UDF load sources - Added feature to be able to add jars from an HDFS URI. - Restrict loading of jars to be only from the hbase.dynamic.jars.dir directory. Testing done: - Tested that the user is able to add jars from an HDFS URI reachable on the network as well as local filesystem. - Tested that the user is unable to create a function where the jar is loaded from any directory apart from hbase.dynamic.jars.dir. - Tested that HDFS URIs without scheme and authority work. You can merge this pull request into a Git repository by running: $ git pull https://github.com/ChinmaySKulkarni/phoenix PHOENIX-4231 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/phoenix/pull/292.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #292 ---- commit 9351e1b4d4a5741bbf063f0d6cd31f14cfa1e6b6 Author: Chinmay Kulkarni <chinmayskulkarni@...> Date: 2018-02-02T20:16:47Z PHOENIX-4231: Support restriction of remote UDF load sources - Added feature to be able to add jars from an HDFS URI. - Restrict loading of jars to be only from the hbase.dynamic.jars.dir directory. Testing done: - Tested that the user is able to add jars from an HDFS URI reachable on the network as well as local filesystem. - Tested that the user is unable to create a function where the jar is loaded from any directory apart from hbase.dynamic.jars.dir. - Tested that HDFS URIs without scheme and authority work. ---- ---