Uploaded image for project: 'Phoenix'
  1. Phoenix
  2. PHOENIX-4675

Trailing slash on DYNAMIC_JARS_DIR_KEY configuration is important

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.14.0, 5.0.0
    • Labels:
      None

      Description

      Testing out PHOENIX-4231 gave me an error as such:

      Caused by: java.lang.SecurityException: Loading jars from hdfs://mycluster/tmp/JavaJars/UDF_artifact-1.0-SNAPSHOT.jar is not allowed. The only location that is allowed is hdfs://mycluster/tmp/JavaJars/

      Given this error message, it seems like my custom UDF was incorrectly denied loading. However, I believe the actual (string-based) comparison was done on hdfs://mycluster/tmp/JavaJars/ and hdfs://mycluster/tmp/JavaJars.

        Attachments

        1. PHOENIX-4675.001.patch
          10 kB
          Josh Elser

          Issue Links

            Activity

              People

              • Assignee:
                elserj Josh Elser
                Reporter:
                elserj Josh Elser
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: