title: Apache Flink error java.lang.ClassNotFoundException: org.apache.flink.table.sources.TableSource?
body: <p>I am writing a streaming service in Apache Flink. I am basically picking data from a CSV file by using org.apache.flink.table.sources.CsvTableSource. 
  Below is the code for same: </p>
  
  <pre><code> StreamTableEnvironment streamTableEnvironment = TableEnvironment
                  .getTableEnvironment(streamExecutionEnvironment);
  
      CsvTableSource csvTableSource = CsvTableSource.builder().path(pathToCsvFile)
              .field("XXX0", Types.SQL_TIMESTAMP).field("XXX1", Types.INT)
              .field("XXX2", Types.DECIMAL).field("XXX3", Types.INT).field("XXX4", Types.INT)
              .field("XXX9", Types.DECIMAL).field("XXX5", Types.STRING)
              .field("XXX6", Types.STRING).field("XXX7", Types.STRING).fieldDelimiter(",").lineDelimiter("\n")
              .ignoreFirstLine().ignoreParseErrors().build();
  
      streamTableEnvironment.registerTableSource("metrics_table", csvTableSource);
  
      Table selectedMetricTable = streamTableEnvironment.sqlQuery(getSQLQuery(metricsType, metricsGroupingLevel));
  
      DataStream&lt;Tuple2&lt;Boolean, MetricsTimeSeriesData&gt;&gt; metricStream = streamTableEnvironment
              .toRetractStream(selectedMetricTable, MetricsTimeSeriesData.class);
  </code></pre>
  
  <p>But its giving following error : </p>
  
  <pre><code>Caused by: java.lang.ClassNotFoundException: org.apache.flink.table.sources.TableSource
  </code></pre>
  
  <p>Here are the maven dependencies: </p>
  
  <pre><code>        &lt;dependency&gt;
              &lt;groupId&gt;org.apache.flink&lt;/groupId&gt;
              &lt;artifactId&gt;flink-java&lt;/artifactId&gt;
              &lt;version&gt;1.4.0&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.apache.flink&lt;/groupId&gt;
              &lt;artifactId&gt;flink-streaming-java_2.11&lt;/artifactId&gt;
              &lt;version&gt;1.4.0&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.apache.flink&lt;/groupId&gt;
              &lt;artifactId&gt;flink-clients_2.11&lt;/artifactId&gt;
              &lt;version&gt;1.4.0&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.apache.flink&lt;/groupId&gt;
              &lt;artifactId&gt;flink-table_2.11&lt;/artifactId&gt;
              &lt;version&gt;1.4.0&lt;/version&gt;
              &lt;scope&gt;provided&lt;/scope&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.apache.flink&lt;/groupId&gt;
              &lt;artifactId&gt;flink-scala_2.11&lt;/artifactId&gt;
              &lt;version&gt;1.4.0&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.apache.flink&lt;/groupId&gt;
              &lt;artifactId&gt;flink-streaming-scala_2.11&lt;/artifactId&gt;
              &lt;version&gt;1.4.0&lt;/version&gt;
          &lt;/dependency&gt;
  </code></pre>
  
  <p>I can see the source defination of the above class, still I am getting this error. Please Help?</p>