title: Flink history server not showing running applications
body: <p>I am trying to configure flink history server. I have followed the flink document <a href="https://ci.apache.org/projects/flink/flink-docs-release-1.3/monitoring/historyserver.html" rel="nofollow noreferrer" title="here">here</a>. I am able to bring up the history server but could only see the completed jobs, not the running jobs. Am I missing something or is it just the completed jobs are displayed in the history server. Kindly help.</p>
  
  <p><strong>Jobs currently in cluster :</strong> </p>
  
  <p>localhost:8081/joboverview</p>
  
  <pre><code>{
      "running": [
          {
              "jid": "e4e6edb76b887054d7aca460b7136937",
              "name": "Filter",
              "state": "RUNNING",
              "start-time": 1505971363801,
              "end-time": -1,
              "duration": 11588615,
              "last-modification": 1505971363832,
              "tasks": {
                  "total": 1,
                  "pending": 0,
                  "running": 1,
                  "finished": 0,
                  "canceling": 0,
                  "canceled": 0,
                  "failed": 0
              }
          }
      ],
      "finished": [
          {
              "jid": "ec16f4cf01192268150c750966cefd0d",
              "name": "Flink Java Job at Thu Sep 21 10:52:09 IST 2017",
              "state": "FINISHED",
              "start-time": 1505971329989,
              "end-time": 1505971330746,
              "duration": 757,
              "last-modification": 1505971330746,
              "tasks": {
                  "total": 3,
                  "pending": 0,
                  "running": 0,
                  "finished": 3,
                  "canceling": 0,
                  "canceled": 0,
                  "failed": 0
              }
          }
      ]
  }
  </code></pre>
  
  <p><strong>Jobs available in History Server</strong></p>
  
  <p>localhost:8082/joboverview</p>
  
  <pre><code>{
      "running": [],
      "finished": [
          {
              "jid": "ec16f4cf01192268150c750966cefd0d",
              "name": "Flink Java Job at Thu Sep 21 10:52:09 IST 2017",
              "state": "FINISHED",
              "start-time": 1505971329989,
              "end-time": 1505971330746,
              "duration": 757,
              "last-modification": 1505971330746,
              "tasks": {
                  "total": 3,
                  "pending": 0,
                  "running": 0,
                  "finished": 3,
                  "canceling": 0,
                  "canceled": 0,
                  "failed": 0
              }
          }
      ]
  }
  </code></pre>
  
  <p><strong>Flink History server config :</strong> </p>
  
  <pre><code>#==============================================================================
  # HistoryServer
  #==============================================================================
  
  # The HistoryServer is started and stopped via bin/historyserver.sh (start|stop)
  
  # Directory to upload completed jobs to. Add this directory to the list of
  # monitored directories of the HistoryServer as well (see below).
  jobmanager.archive.fs.dir: hdfs://&lt;hdfs&gt;:8020/sax/flink/jobmanager
  
  # The address under which the web-based HistoryServer listens.
  historyserver.web.address: localhost
  
  # The port under which the web-based HistoryServer listens.
  historyserver.web.port: 8082
  
  # Comma separated list of directories to monitor for completed jobs.
  historyserver.archive.fs.dir: hdfs://&lt;hdfs&gt;:8020/sax/flink/jobmanager
  
  # Interval in milliseconds for refreshing the monitored directories.
  historyserver.archive.fs.refresh-interval: 10000
  </code></pre>