title: How to configure Hadoop (and HBase) dependencies within Visual Studio Code on Linux?
body: <p>I have Hadoop 2.9.0 and HBase installed and configured on a Linux Mint. I can browse to Hadoop dashboard and cluster and the service is running - no issues.</p>
  
  <p>Trying to compile some basic Java tutorial with Visual Studio Code to check if a table exists in HBase:</p>
  
  <pre><code>Boolean outcome = false;
  Configuration config = HBaseConfiguration.create();
  HBaseAdmin hbAdmin = new HBaseAdmin(config);
  outcome = hbAdmin.tableExists("tableName");
  </code></pre>
  
  <p>and I'm getting HBaseConfiguration "cannot be resolved". Note that Java and Java Extensions are installed and configured correctly for Visual Studio Code. I used Maven to generate the project - a simple quick-start Java project (which compiles successfully without the Hadoop bit).</p>
  
  <p>I know the issue is around dependencies (I have seen posts about issues like this for Eclipse) but I could not figure out how to resolve it. I tired to add the dependencies manually to pom.xml with no luck.If you can please help with simple clear steps on how to resolve the dependencies that will be great.</p>
  
  <p>Note I got Hadoop installed on "[Home]/hadoop-2.9.0" (so all the jars required are within that path in the relevant subfolders). Thank you in advance.</p>
  
  <p>Here is the POM:</p>
  
  <pre><code>&lt;project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"&gt;
  &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
  
  &lt;groupId&gt;MyAppGroup&lt;/groupId&gt;
  &lt;artifactId&gt;MyApp&lt;/artifactId&gt;
  &lt;version&gt;1.0&lt;/version&gt;
  &lt;packaging&gt;jar&lt;/packaging&gt;
  
  &lt;name&gt;MyApp&lt;/name&gt;
  &lt;url&gt;http://maven.apache.org&lt;/url&gt;
  
  &lt;properties&gt;
    &lt;project.build.sourceEncoding&gt;UTF-8&lt;/project.build.sourceEncoding&gt;
  &lt;/properties&gt;
  
  &lt;dependencies&gt;
    &lt;dependency&gt;
      &lt;groupId&gt;junit&lt;/groupId&gt;
      &lt;artifactId&gt;junit&lt;/artifactId&gt;
      &lt;version&gt;3.8.1&lt;/version&gt;
      &lt;scope&gt;test&lt;/scope&gt;
    &lt;/dependency&gt;
  &lt;/dependencies&gt;
  &lt;/project&gt;
  </code></pre>