If it is not picking it up from command line, you could try adding that
entry inside conf/spark-defaults.conf file and then try submitting the job.
(Of course, you might want to restart the cluster)

Isn't auto.offset.reset="largest" a kafka conf? You might want to set it
inside the kafka conf. (KafkaParams while creating the stream)

​​
The *--conf *parameter in spark-submit is an Arbitrary *Spark configuration
property* in key=value format. For values that contain spaces wrap
“key=value” in quotes (as shown).

Thanks
Best Regards

On Fri, Nov 21, 2014 at 9:28 PM, YaoPau <[email protected]> wrote:

> I'm trying to configure my Spark Streaming + Kafka job so it always pulls
> real-time data.  I think setting auto.offset.reset="largest" will do it,
> but
> when I try to set that configuration at runtime I get an error:
>
> *spark-submit --class com.autotrader.scalaspark.sbStreaming --master
> yarn-client --driver-memory 10g --executor-memory 10g --conf
> auto.offset.reset="largest"
> sbStreaming-0.0.1-SNAPSHOT-jar-with-dependencies.jar
>
> Error: Unrecognized option '--conf'.*
>
> How can I configure my job to pull the latest data?
>
>
>
>
> --
> View this message in context:
> http://apache-spark-user-list.1001560.n3.nabble.com/Error-Unrecognized-option-conf-trying-to-set-auto-offset-reset-tp19489.html
> Sent from the Apache Spark User List mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>

Reply via email to