I'm learning spark I'd like to use an avro data file as avro is external to spark. I've downloaded the jar. But my problem is how to copy it into that specific place 'jars dir' into my container?
I've read relative post here but I do not understand.
I've see also this command below from spark main website but I think I need the jar file copied before running it.
./bin/spark-shell --packages org.apache.spark:spark-avro_2.XX:X.X.X ...
What I tried is
docker cp /Users/username/Downloads/spark-avro_2.11-2.4.5.jar docker-spark_master_1:/jars
but it's not working. thanks in advance
nb: I'm running spark 2.4 container with worker and master.
jarsdirectory is under/usr/spark-2.4.1. Your destination for cp should bedocker-spark_master_1:/usr/spark-2.4.1/jars/. Still, the command you tried should have created a file calledjarsunder/. That did not happen? - franklinsijodocker-spark_master_1is the name of the container. The syntax iscontainer_name:destination- franklinsijo