title: Unable to write data in table by Apache Iceberg using Spark
body: <p>I am new to Apache Iceberg. I want to perform read and write operation using Apache Iceberg. I am using Spark 3.0.0.</p>
  <p>code:</p>
  <pre><code>    System.setProperty(&quot;hadoop.home.dir&quot;,&quot;C:\\hadoop&quot; )
      val conf = new SparkConf()
      conf.set(&quot;spark.sql.extensions&quot;,&quot;org.apache.iceberg.spark.extensions.IcebergSparkSessionExtensions&quot;)
      conf.set(&quot;spark.sql.catalog.spark_catalog&quot;,&quot;org.apache.iceberg.spark.SparkSessionCatalog&quot;)
      conf.set(&quot;spark.sql.catalog.spark_catalog.type&quot;,&quot;hive&quot;)
      conf.set(&quot;spark.sql.catalog.local&quot;,&quot;org.apache.iceberg.spark.SparkCatalog&quot;)
      conf.set(&quot;spark.sql.catalog.local.type&quot;,&quot;hadoop&quot;)
      conf.set(&quot;spark.sql.catalog.local.warehouse&quot;,&quot;warehouse&quot;)
  
      val spark = SparkSession.builder().master(&quot;local&quot;).config(conf).getOrCreate()
      
      spark.sql(&quot;CREATE TABLE local.db.table (id bigint, data string) USING iceberg&quot;)
      spark.sql(&quot;INSERT INTO local.db.table VALUES (1, 'a'), (2, 'b'), (3, 'c')&quot;)
  </code></pre>
  <p>Dependency List:</p>
  <pre><code>    compile group: 'org.scala-lang', name: 'scala-library', version: '2.12.0'
  
      compile group: 'org.apache.spark', name: 'spark-core_2.12', version: '3.0.0'
      compile group: 'org.apache.spark', name: 'spark-sql_2.12', version: '3.0.0'
  
      compile group: 'org.apache.iceberg', name: 'iceberg-spark', version: '0.11.1'
      compile group: 'org.apache.iceberg', name: 'iceberg-spark3-runtime', version: '0.11.1'
  
      compile group:  'org.apache.hive', name: 'hive-metastore', version: '2.0.1'
  </code></pre>
  <p>Exception Message :</p>
  <pre><code>java.lang.ClassCastException: org.apache.iceberg.shaded.org.apache.parquet.schema.MessageType cannot be cast to org.apache.parquet.schema.MessageType
      at org.apache.iceberg.parquet.ParquetWriter.&lt;init&gt;(ParquetWriter.java:96)
      at org.apache.iceberg.parquet.Parquet$WriteBuilder.build(Parquet.java:250)
      at org.apache.iceberg.spark.source.SparkAppenderFactory.newAppender(SparkAppenderFactory.java:110)
  </code></pre>
  <p>Should i need any other dependency to enable MessageType cast.</p>