title: ParseException about EOF in Hive
body: <p>I can execute the SQL in the shell:</p>
  
  <pre><code>LOAD DATA LOCAL INPATH '/tmp/sql.txt' INTO TABLE files;
  </code></pre>
  
  <p>Here's the content in the sql.txt:</p>
  
  <pre><code>4e6c924a-1fa2-4326-86eb-975d1007f0a6 FileScoreConverterTest.java /home/xiehaozhe/Development/Kloud-Document-Analyzer/kda/src/test/java/com/kda/filescore/type/FileScoreConverterTest.java
  ab6ee610-c980-4ff7-b472-8546766e0f89 FileWordCountConverterTest.java /home/xiehaozhe/Development/Kloud-Document-Analyzer/kda/src/test/java/com/kda/filescore/type/FileWordCountConverterTest.java
  </code></pre>
  
  <p>The struct of the table(named <em>files</em>) is</p>
  
  <pre><code>guid STRING
  filename STRING
  filepath STRING
  </code></pre>
  
  <p>If I execute the sql in Java, I got an exception:</p>
  
  <pre><code>Exception in thread "main" java.sql.SQLException: Query returned non-zero code: 40000, cause: FAILED: ParseException line 1:54 mismatched input ';' expecting EOF near 'files'
  </code></pre>
  
  <p>Here's the code:</p>
  
  <pre><code>Class.forName("org.apache.hadoop.hive.jdbc.HiveDriver");
  String sql = "LOAD DATA LOCAL INPATH '" + sqlFilePath + "' INTO TABLE files;";
  Connection connection = DriverManager.getConnection(databaseAddress, databaseUsername, databasePassword);
  Statement statement = connection.createStatement();
  statement.executeQuery(sql);
  </code></pre>
  
  <p>What should I do?</p>