title: Default serializer for kafka 0.8.2.0
body: <p>I am setting up Kafka producer using their new KafkaProducer API and getting following error</p>
  
  <pre><code>Exception in thread "main" org.apache.kafka.common.config.ConfigException: Missing required configuration "key.serializer" which has no default value.
  at org.apache.kafka.common.config.ConfigDef.parse(ConfigDef.java:124)
  at org.apache.kafka.common.config.AbstractConfig.&lt;init&gt;(AbstractConfig.java:48)
  at org.apache.kafka.clients.producer.ProducerConfig.&lt;init&gt;(ProducerConfig.java:235)
  at org.apache.kafka.clients.producer.KafkaProducer.&lt;init&gt;(KafkaProducer.java:129)
  at com.kafka.producer.App.KafkaProducer(App.java:43)
  at com.kafka.producer.App.main(App.java:33)
  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  at java.lang.reflect.Method.invoke(Method.java:483)
  at com.intellij.rt.execution.application.AppMain.main(AppMain.java:134)
  </code></pre>
  
  <p>There seems to be no default serializer and the documentation at <a href="http://kafka.apache.org/documentation.html#newproducerconfigs" rel="noreferrer">http://kafka.apache.org/documentation.html#newproducerconfigs</a> and I do not see possible values.</p>
  
  <p>This question is for Kafka 0.8.2.0 version</p>