title: WSO2 BAM Documentation
body: <p>I am trying to set up WSO2 BAM and API Manager integration by following the documentation at <a href="https://docs.wso2.org/display/AM160/Publishing+API+Runtime+Statistics" rel="nofollow">Publishing API Runtime Statistics</a>.</p>
  
  <p>There is a line in the documentation to drop Hive table</p>
  
  <blockquote>
    <p>add the following line at the beginning of the Hive script and rerun.
    drop table ;</p>
  </blockquote>
  
  <p>It is not clear where to add this line and what exact table to drop. Can someone provide more information on this one?</p>
  
  <p>BAM is throwing following exception and I am assuming it is related to above changes required</p>
  
  <pre><code>FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask
  [2014-04-09 09:08:00,122] ERROR {org.apache.hadoop.hive.ql.Driver} -  FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTa
  sk
  [2014-04-09 09:08:00,123] ERROR {org.wso2.carbon.analytics.hive.impl.HiveExecutorServiceImpl} -  Error while executing Hive script.
  Query returned non-zero code: 9, cause: FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask
  </code></pre>