<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Livy Post Batch with named arguments in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Livy-Post-Batch-with-named-arguments/m-p/179199#M141445</link>
    <description>&lt;P&gt;I'm trying to submit a batch job using Livy REST API, my application takes two named arguments but I can't find a way to submit those. I tried this:&lt;/P&gt;
&lt;PRE&gt;curl -X POST -H "Content-Type: application/json" --data '{"className": "com.geoint.spark.utils.filter.FilterAndClean","executorMemory":"4g","numExecutors":3,"executorCores":5,"driverMemory":"2g", "args":["--input /plablo/muestra_variables.csv", "--output /plablo/salida_parquet"],"file": "/user/jars/Geoint-Spark-Utils-assembly-0.1.jar"}' localhost:8999/batches&lt;/PRE&gt;
&lt;P&gt;but I'm getting an error (in Spark history server):&lt;/P&gt;
&lt;PRE&gt;[scallop] Error: Unknown option 'input /plablo/muestra_variables.csv'&lt;/PRE&gt;
&lt;P&gt;So it seams the hyphens are getting lost somewhere.&lt;/P&gt;
&lt;P&gt;Is it possible to use named arguments? or should I use only positional arguments?&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Fri, 01 Nov 2019 12:45:22 GMT</pubDate>
    <dc:creator>pablo_lopez</dc:creator>
    <dc:date>2019-11-01T12:45:22Z</dc:date>
  </channel>
</rss>

