Uploaded image for project: 'IMPALA'
  1. IMPALA
  2. IMPALA-4099

Improve error message while loading UDFs with a missing jar

    Details

      Description

      Right now, loading a UDF with a missing jar will give the following exception.

      E0829 15:04:21.130985 19471 CatalogServiceCatalog.java:508] Skipping function load: rank_2 
      Java exception follows: 
      java.lang.IndexOutOfBoundsException: Index: 0, Size: 0 
      at java.util.ArrayList.rangeCheck(ArrayList.java:635) 
      at java.util.ArrayList.get(ArrayList.java:411) 
      at com.cloudera.impala.catalog.CatalogServiceCatalog.extractFunctions(CatalogServiceCatalog.java:402) 
      at com.cloudera.impala.catalog.CatalogServiceCatalog.loadJavaFunctions(CatalogServiceCatalog.java:503) 
      at com.cloudera.impala.catalog.CatalogServiceCatalog.reset(CatalogServiceCatalog.java:559) 
      at com.cloudera.impala.service.JniCatalog.<init>(JniCatalog.java:97)
      

      We can include a check for this and have a meaningful error message to improve supportability.

        Attachments

          Activity

            People

            • Assignee:
              bharathv bharath v
              Reporter:
              bharathv bharath v
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: