title: Spark 2.1 on MAPR 5.0
body: <p>I am running Spark 2.1 on Mapr 5.0 </p>
  
  <p>I am getting following exception while launching  Spark on local mode</p>
  
  <p>My spark-default (Important configuration)</p>
  
  <pre><code>spark.sql.hive.metastore.version 0.13.1
  spark.sql.hive.metastore.jars 
                            /opt/mapr/lib/maprfs-5.0.0-mapr.jar:
                            /opt/mapr/hadoop/hadoop-0.20.2/conf:
                            /opt/mapr/hadoop/hadoop-0.20.2/lib/protobuf-java-2.5.0.jar:
  
                            /opt/hadoopgpl/lib/hadoop-lzo.jar:
                            /opt/mapr/hadoop/hadoop-2.7.0/share/hadoop/mapreduce/hadoop-mapreduce-client-core-2.7.0-mapr-1506.jar:
                            /opt/mapr/hadoop/hadoop-0.20.2/lib/commons-logging-1.1.1.jar:
                            /opt/mapr/hadoop/hadoop-0.20.2/lib/hadoop-auth-2.7.0-mapr-1506.jar:
                            /opt/mapr/lib/libprotodefs-5.0.0-mapr.jar:
                            /opt/mapr/lib/baseutils-5.0.0-mapr.jar:
                            /opt/mapr/hadoop/hadoop-0.20.2/lib/guava-13.0.1.jar:
                            /opt/mapr/hadoop/hadoop-0.20.2/lib/hadoop-common-2.7.0-mapr-1506.jar:
                            /opt/mapr/hadoop/hadoop-0.20.2/lib/commons-configuration-1.6.jar
  
  spark.sql.hive.metastore.sharedPrefixes com.mysql.jdbc,org.postgresql,com.microsoft.sqlserver,oracle.jdbc,com.mapr.fs.shim.LibraryLoader,com.mapr.security.JNISecurity,com.mapr.fs.jni,com.mapr.fs.shim
  
  
  java.lang.LinkageError: loader (instance of  org/apache/spark/sql/hive/client/IsolatedClientLoader$$anon$1): attempted  duplicate class definition for name: "com/mapr/fs/jni/MapRConstants"
  at java.lang.ClassLoader.defineClass1(Native Method)
  at java.lang.ClassLoader.defineClass(ClassLoader.java:763)
  ... 104 more
  java.lang.IllegalArgumentException: Error while instantiating   
  'org.apache.spark.sql.hive.HiveSessionState':
  </code></pre>
  
  <p>Please help me on that     </p>