Uploaded image for project: 'Livy'
  1. Livy
  2. LIVY-608

When Spark table contains date column Livy will throw NoClassDefFoundError

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Not A Bug
    • Affects Version/s: 0.6.0
    • Fix Version/s: None
    • Component/s: REPL
    • Labels:
      None

      Description

      My Spark table creation statement is as follows

      create table test(
       id bigint,
       times date
      );
      

      when we use livy to select data from test, there will throw java.lang.NoClassDefFoundError:

      curl -H "Content-Type:application/json" -X POST -d '{"code":"select * from test", "kind":"sql"}' 127.0.0.1:8998/sessions/1/statements
      {"id":1,"code":"select * from test","state":"waiting","output":null,"progress":0.0}
      
      
      curl 127.0.0.1:8998/sessions/1/statements/1
      {"id":1,"code":"select * from test","state":"available","output":{"status":"error","execution_count":1,"ename":"Internal Error: java.lang.NoClassDefFoundError","evalue":"org/apache/livy/shaded/json4s/scalap/scalasig/SymbolInfoSymbol","traceback":[]},"progress":1.0}
      

      because livy repl model need json4s_scalap library, but we did not provide.

       

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              397090770 wyp
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: