Uploaded image for project: 'Ranger'
  1. Ranger
  2. RANGER-296

Plugin installation fails with NoClassDefFoundError: org/apache/commons/io/Charsets

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.5.0
    • Fix Version/s: 0.5.0
    • Component/s: None
    • Labels:
      None

      Description

      With recent Hadoop libraries, Ranger plugin installation fails with the following error:

      ******
      Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/io/Charsets
      at org.apache.hadoop.security.alias.JavaKeyStoreProvider.bytesToChars(JavaKeyStoreProvider.java:169)
      at org.apache.hadoop.security.alias.JavaKeyStoreProvider.getCredentialEntry(JavaKeyStoreProvider.java:161)
      at org.apache.ranger.credentialapi.CredentialReader.getDecryptedString(CredentialReader.java:66)
      at org.apache.ranger.credentialapi.buildks.createCredential(buildks.java:85)
      at org.apache.ranger.credentialapi.buildks.main(buildks.java:38)
      Caused by: java.lang.ClassNotFoundException: org.apache.commons.io.Charsets
      at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
      at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
      at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
      ... 5 more]
      Exiting plugin installation
      ******

      The fix is to include commons-io library in plugin installer.

        Attachments

          Activity

            People

            • Assignee:
              madhan.neethiraj Madhan Neethiraj
              Reporter:
              madhan.neethiraj Madhan Neethiraj
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: