you can try by providing jars with argument as below
./spark-shell --jars pathOfjarsWithCommaSeprated
Or you can add following configuration in you spark-defaults.conf but remember to remove template from end of spark-defaults
spark.driver.extraClassPath pathOfJarsWithCommaSeprated