Uploaded image for project: 'Zeppelin'
  1. Zeppelin
  2. ZEPPELIN-5112

upgrade-note.sh throws exception while upgrading notes on hdfs storage

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 0.9.0
    • 0.9.0
    • None
    • None

    Description

      With zeppelin version 0.9.0-preview2, I'm able to read, write and execute new notebooks. But while trying to upgrade existing notes from version 0.8.1 to version 0.9.0-preview2, I get this exception when I run bin/upgrade-note.sh:

      Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/hadoop/security/UserGroupInformation
      	at org.apache.zeppelin.notebook.FileSystemStorage.<clinit>(FileSystemStorage.java:43)
      	at org.apache.zeppelin.notebook.repo.FileSystemNotebookRepo.init(FileSystemNotebookRepo.java:49)
      	at org.apache.zeppelin.notebook.repo.NotebookRepoSync.init(NotebookRepoSync.java:84)
      	at org.apache.zeppelin.notebook.repo.NotebookRepoSync.<init>(NotebookRepoSync.java:64)
      	at org.apache.zeppelin.notebook.repo.UpgradeNoteFileTool.main(UpgradeNoteFileTool.java:41)
      Caused by: java.lang.ClassNotFoundException: org.apache.hadoop.security.UserGroupInformation
      	at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
      	at java.lang.ClassLoader.loadClass(ClassLoader.java:419)
      	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:352)
      	at java.lang.ClassLoader.loadClass(ClassLoader.java:352)
      	... 5 more
      

       I'm storing notebooks on hdfs and my zeppelin-env.sh has the required env variable:

      #!/bin/bash
      export USE_HADOOP=true
      

      Attachments

        Activity

          People

            zjffdu Jeff Zhang
            anchal.agarwal Anchal Agarwal
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 40m
                40m