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

Improve error message while loading UDFs with a missing jar

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

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

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            bharathv Bharath Vissapragada
            bharathv Bharath Vissapragada
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment