title: How to persist zipkin data in ES 5.0?
body: <p><strong>TL;DR:</strong>
  I want to persist data in ElasticSearch, how i can do this?</p>
  
  <p>I have zipkin and Kafka and ElasticSearch. Kafka as transport for traces. When i send trace to Kafka, i got it in zipkin UI, it is persistent in memory. I want to persist all traces in ES 5.0 for some time and when zipkin starts or when i search traces i want to search in ES or load trace from ES at start time of zipkin.</p>
  
  <p>I start zipkin like this integrated with Kafka:</p>
  
  <pre><code>KAFKA_ZOOKEEPER=kafka1:2181,kafka2:2181 KAFKA_GROUP_ID=zipkin  java -jar /opt/zipkin/bin/zipkin.jar --logging.level.zipkin=DEBUG
  </code></pre>
  
  <p>Here is <a href="https://github.com/openzipkin/zipkin/tree/master/zipkin-storage/elasticsearch-http" rel="nofollow noreferrer">description of zipkin-storage/elasticsearch-http</a>:</p>
  
  <p>This is output:</p>
  
  <pre><code>STORAGE_TYPE=elasticsearch ES_HOSTS=es5_1:9200 java -jar /opt/zipkin/bin/zipkin-dependencies.jar
  17/04/13 17:16:25 INFO ElasticsearchDependenciesJob: Processing spans from zipkin-2017-04-13/span
  17/04/13 17:16:25 WARN NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
  17/04/13 17:16:28 INFO ElasticsearchDependenciesJob: Saving dependency links to zipkin-2017-04-13/dependencylink
  17/04/13 17:16:28 INFO ElasticsearchDependenciesJob: Done
  </code></pre>
  
  <p>But in ES in index zipkin there are no data.</p>