redhat-gpe / rhte2018_operational_intelligence

1 stars 2 forks source link

Mod 3 Lab: Unable to Load the thirdparty jar files #26

Closed Pkrish15 closed 5 years ago

Pkrish15 commented 5 years ago

Even after pointing the thirdParty Jar files in this zeppelin-pod /opt/zeppelin/notebook/thirdpartyjars/, Zeppelin Notebook unable to fetch the locate the Jar files.

Pkrish15 commented 5 years ago

Before starting the Import statements, Have to create a Mapr Repository and load the configuration using the below command. Then only, we are communicating the zeppelin pod to point to the location where it picks the thirdparty jar files. Add these below lines in the Zeppelin Notebook %spark.dep z.addRepo("mapr-releases").url("http://repository.mapr.com/maven/") z.load("org.apache.spark:spark-streaming-kafka-0-9_2.11:2.1.0-mapr-1703") z.load("/opt/zeppelin/notebook/thirdpartyjars/spark-streaming-kafka-0-9_2.11-2.1.0-mapr-1703.jar") z.load("/opt/zeppelin/notebook/thirdpartyjars/spark-streaming-kafka-0-10_2.11-2.0.2.jar") z.load("/opt/zeppelin/notebook/thirdpartyjars/kafka-clients-2.0.0.jar") z.load("/opt/zeppelin/notebook/thirdpartyjars/spark-streaming-kafka-producer_2.11-2.0.1-mapr-1703.jar")