From user-return-208-archive-asf-public=cust-asf.ponee.io@livy.incubator.apache.org Tue Jan 30 00:37:46 2018 Return-Path: X-Original-To: archive-asf-public@eu.ponee.io Delivered-To: archive-asf-public@eu.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by mx-eu-01.ponee.io (Postfix) with ESMTP id 054D1180654 for ; Tue, 30 Jan 2018 00:37:46 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id E9380160C3F; Mon, 29 Jan 2018 23:37:45 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 3CE98160C31 for ; Tue, 30 Jan 2018 00:37:45 +0100 (CET) Received: (qmail 49875 invoked by uid 500); 29 Jan 2018 23:37:44 -0000 Mailing-List: contact user-help@livy.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@livy.incubator.apache.org Delivered-To: mailing list user@livy.incubator.apache.org Received: (qmail 49865 invoked by uid 99); 29 Jan 2018 23:37:44 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 29 Jan 2018 23:37:44 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 007CD1A344C for ; Mon, 29 Jan 2018 23:37:44 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.121 X-Spam-Level: X-Spam-Status: No, score=-0.121 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=cloudera.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id DLSrn9MGHiWe for ; Mon, 29 Jan 2018 23:37:43 +0000 (UTC) Received: from mail-vk0-f50.google.com (mail-vk0-f50.google.com [209.85.213.50]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id B52FB5F3A1 for ; Mon, 29 Jan 2018 23:37:42 +0000 (UTC) Received: by mail-vk0-f50.google.com with SMTP id n132so5656323vke.2 for ; Mon, 29 Jan 2018 15:37:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cloudera.com; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=ULZduL7qpUgD/DdWp8JKLAY5ky8KBE4kZtGIdRtO0Q8=; b=d756cEuMj0NN36FhCgUVdJcPNHYQIf/chFZNxCFzpI0jnj0l9yyUVMnXkRgudnUBqT LzyxUQkpQcrMRKb37py6qGPB91ik/Gl4hw5mc3NAUTRMdjP0y2EyAMlng6Zyp3ilZkRG 7hnLZILQlaaQCLBYu5Esx3B4PmDnbZqt0Xu6Ek7jm4nCVwkKfa4MoCfIgcYY6OJihh7o iyZECWhNsWat38pJeX684Q4sqRB7be+zADrDgJSeL9liDBrhxW11vzdjxXdcUo9l/sMO oUoC3japTjZRowr/CwiztUJi17j8mK+3CDdIb+8xcPwJrug6XlnB7XpCQLB/GaPXabIx 68KQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=ULZduL7qpUgD/DdWp8JKLAY5ky8KBE4kZtGIdRtO0Q8=; b=B/uX/W37AidV2UBFrgoDSt1iCk+oXOny90D50/3tuZq9yiW07ekqLQWU1cabl+3rwU GH+T/x3RBFUj3XRzCl6MXTvMvwrvvtD7vQ/DGJXJ+XTQOHPUEa33x3jwiTw5n9rXLvnC JkH5vTpuloLySMN9nYdAXjg53ImhdWdt7D/aVmq4ckDgsd8xB0qrQNg9NaRxSFZ7Nj7r 8aT9JeuRh05iYvPE1vqSlVf2Q9ThGpKIQpWBZpWVtpvqIZ8E3/puu/TbHY2mI3Uf7RRC D+bgQ3XncpKxNJx0ETSig3E2nPpaoajUEEb2B0cyJ5FsaMAKEwiTIIvyYKsehMHuLH4C QSQQ== X-Gm-Message-State: AKwxytf4ke0HFfv4AC9XEb6Bm827wttxuqxNoPrubC1W7uttEDKGFQaw LaTeAPxlyZ+5TMotXhiiTNPZibk0+jt7GWsb0mObOnHAbj4= X-Google-Smtp-Source: AH8x22770YKCYzRQL4P6Y0TTPl84JJylJeAPJClwtVDCeEzNKKe0y4Dipxc8eGBV6rheyVb/THR9r8yVcEtDUqqLmJU= X-Received: by 10.31.193.14 with SMTP id r14mr19247046vkf.143.1517269062128; Mon, 29 Jan 2018 15:37:42 -0800 (PST) MIME-Version: 1.0 Received: by 10.176.97.132 with HTTP; Mon, 29 Jan 2018 15:37:41 -0800 (PST) In-Reply-To: References: From: Marcelo Vanzin Date: Mon, 29 Jan 2018 15:37:41 -0800 Message-ID: Subject: Re: Can not deserialize instance of scala.collection.immutable.List out of VALUE_STRING (through reference chain: org.apache.livy.server.interactive.CreateInteractiveRequest) To: user@livy.incubator.apache.org Content-Type: text/plain; charset="UTF-8" "jars" is a list so you should probably try: "jars": [ "hdfs://myserver:8020/user/root/1x/my-lib-SNAPSHOT.jar" ] On Mon, Jan 29, 2018 at 3:35 PM, Kyunam Kim wrote: > I get the following when I try "jars" in POST /sessions. > > I tried: > - "jars": "hdfs://myserver:8020/user/root/1x/my-lib-SNAPSHOT.jar" > - "jars": "/user/root/1x/my-lib-SNAPSHOT.jar" > > livy.spark.deploy-mode = cluster (client is also tried) > > Basically, I just want to load my custom library into LIVY. > > By the way, even if this works, do I need to let Spark know about my custom > library by using "conf: > {"spark.jars":"hdfs://myserver:8020/user/root/1x/my-lib-SNAPSHOT.jar"}" ?? > > > curl -k -v -H 'Content-Type: application/json' -X POST -d > '{"kind":"spark","driverMemory":"1000M","executorCores":2,"jars": > "hdfs://myserver:8020/user/root/1x/my-lib-SNAPSHOT.jar"}' > "http://myserver:8998/sessions" > Note: Unnecessary use of -X or --request, POST is already inferred. > * Trying 10.49.51.117... > * TCP_NODELAY set > * Connected to ... port 8998 (#0) >> POST /sessions HTTP/1.1 >> Host: ...:8998 >> User-Agent: curl/7.55.1 >> Accept: */* >> Content-Type: application/json >> Content-Length: 139 >> > * upload completely sent off: 139 out of 139 bytes > < HTTP/1.1 400 Bad Request > < Date: Mon, 29 Jan 2018 23:21:04 GMT > < Content-Type: application/json; charset=UTF-8 > < Content-Length: 251 > < Server: Jetty(9.2.16.v20160414) > < > * Connection #0 to host myserver left intact > "Can not deserialize instance of scala.collection.immutable.List out of > VALUE_STRING token\n at [Source: HttpInputOverHTTP@1f8a778f; line: 1, > column: 57] (through reference chain: > org.apache.livy.server.interactive.CreateInteractiveRequest[\"jars\"])" > > Thanks, > Q -- Marcelo