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

Exception on building livy client

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Not A Bug
    • Affects Version/s: 0.3
    • Fix Version/s: None
    • Component/s: Core
    • Labels:
      None
    • Environment:
      Mac

      Description

      While creating a LivyClient (not on main thread of program) the following code throws exception:
      {{ try

      { LivyClient client = new LivyClientBuilder() .setURI(new URI("http://127.0.0.1:8998")) .build(); }

      catch (IOException e)

      { // TODO Auto-generated catch block e.printStackTrace(); } catch (URISyntaxException e) { // TODO Auto-generated catch block e.printStackTrace(); }

      }}
      Here is the exception that I get:
      {{java.lang.RuntimeException: java.lang.RuntimeException: com.cloudera.livy.shaded.jackson.databind.exc.UnrecognizedPropertyException: Unrecognized field "appId" (class com.cloudera.livy.client.common.HttpMessages$SessionInfo), not marked as ignorable (6 known properties: "state", "owner", "kind", "log", "proxyUser", "id"]) at [Source: com.cloudera.livy.shaded.apache.http.client.entity.LazyDecompressingInputStream@237e9dc; line: 1, column: 21] (through reference chain: com.cloudera.livy.client.common.SessionInfo["appId"]) at com.cloudera.livy.client.http.HttpClient.propagate(HttpClient.java:185) at com.cloudera.livy.client.http.HttpClient.<init>(HttpClient.java:85) at com.cloudera.livy.client.http.HttpClientFactory.createClient(HttpClientFactory.java:38) at com.cloudera.livy.LivyClientBuilder.build(LivyClientBuilder.java:124) at
      }}

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              namitkabra Namit Kabra
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: