title: Hive: Kryo Exception
body: <p>I'm executing one of my HQL query which has few joins, union and insert overwrite operation, which is working fine if I run it just once.<br>
  If I execute the same job second time, I'm facing this issue.
  Can someone help me to identify in which scenario we get this exception? </p>
  
  <pre><code>Error: java.lang.RuntimeException: org.apache.hive.com.esotericsoftware.kryo.KryoException: Encountered unregistered class ID: 107
  Serialization trace:
  rowSchema (org.apache.hadoop.hive.ql.exec.MapJoinOperator)
  parentOperators (org.apache.hadoop.hive.ql.exec.SelectOperator)
  parentOperators (org.apache.hadoop.hive.ql.exec.MapJoinOperator)
  parentOperators (org.apache.hadoop.hive.ql.exec.FilterOperator)
  parentOperators (org.apache.hadoop.hive.ql.exec.SelectOperator)
  parentOperators (org.apache.hadoop.hive.ql.exec.UnionOperator)
  childOperators (org.apache.hadoop.hive.ql.exec.TableScanOperator)
  aliasToWork (org.apache.hadoop.hive.ql.plan.MapWork)
      at org.apache.hadoop.hive.ql.exec.Utilities.getBaseWork(Utilities.java:364)
      at org.apache.hadoop.hive.ql.exec.Utilities.getMapWork(Utilities.java:275)
      at org.apache.hadoop.hive.ql.io.HiveInputFormat.init(HiveInputFormat.java:254)
      at org.apache.hadoop.hive.ql.io.HiveInputFormat.pushProjectionsAndFilters(HiveInputFormat.java:440)
      at org.apache.hadoop.hive.ql.io.HiveInputFormat.pushProjectionsAndFilters(HiveInputFormat.java:433)
      at org.apache.hadoop.hive.ql.io.CombineHiveInputFormat.getRecordReader(CombineHiveInputFormat.java:587)
      at org.apache.hadoop.mapred.MapTask$TrackedRecordReader.&lt;init&gt;(MapTask.java:169)
      at org.apache.hadoop.mapred.MapTask.runOldMapper(MapTask.java:429)
      at org.apache.hadoop.mapred.MapTask.run(MapTask.java:343)
      at org.apache.hadoop.mapred.YarnChild$2.run(YarnChild.java:168)
      at java.security.AccessController.doPrivileged(Native Method)
      at javax.security.auth.Subject.doAs(Subject.java:415)
      at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1614)
      at org.apache.hadoop.mapred.YarnChild.main(YarnChild.java:163)
  Caused by: org.apache.hive.com.esotericsoftware.kryo.KryoException: Encountered unregistered class ID: 107
  Serialization trace:
  rowSchema (org.apache.hadoop.hive.ql.exec.MapJoinOperator)
  parentOperators (org.apache.hadoop.hive.ql.exec.SelectOperator)
  parentOperators (org.apache.hadoop.hive.ql.exec.MapJoinOperator)
  parentOperators (org.apache.hadoop.hive.ql.exec.FilterOperator)
  parentOperators (org.apache.hadoop.hive.ql.exec.SelectOperator)
  parentOperators (org.apache.hadoop.hive.ql.exec.UnionOperator)
  childOperators (org.apache.hadoop.hive.ql.exec.TableScanOperator)
  aliasToWork (org.apache.hadoop.hive.ql.plan.MapWork)
  </code></pre>