title: Unknown host exception when using spring data hadoop to connect to Cloudera QuickStart VM Hbase
body: <p>I use <a href="http://www.cloudera.com/content/cloudera/en/downloads/quickstart_vms/cdh-5-3-x.html" rel="nofollow">QuickStart VMs for CDH 5.3.x</a></p>
  
  <p>I try to implement this <a href="https://github.com/spring-projects/spring-hadoop-samples/tree/master/hbase" rel="nofollow">spring hadoop sample for hbase</a> </p>
  
  <p>The sample from the host computer will connect to Hbase in the VM to create table, add data, read data. </p>
  
  <p>In my pom i use</p>
  
  <pre><code>&lt;properties&gt;
      &lt;project.build.sourceEncoding&gt;UTF-8&lt;/project.build.sourceEncoding&gt;
      &lt;spring.version&gt;4.0.5.RELEASE&lt;/spring.version&gt;
      &lt;spring.hadoop.version&gt;2.1.2.RELEASE-cdh5&lt;/spring.hadoop.version&gt;
      &lt;hadoop.version&gt;2.5.0-cdh5.3.0&lt;/hadoop.version&gt;
      &lt;hbase.version&gt;0.98.6-cdh5.3.0&lt;/hbase.version&gt;
  &lt;/properties&gt;
  </code></pre>
  
  <p>My hbase.propertise file:</p>
  
  <pre><code>hbase.zk.host=172.30.119.25
  hbase.zk.port=2181
  </code></pre>
  
  <p>My application-context.xml:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;beans xmlns="http://www.springframework.org/schema/beans"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xmlns:context="http://www.springframework.org/schema/context"
         xmlns:hdp="http://www.springframework.org/schema/hadoop"
         xmlns:p="http://www.springframework.org/schema/p"
         xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd http://www.springframework.org/schema/hadoop http://www.springframework.org/schema/hadoop/spring-hadoop.xsd"&gt;
  
         &lt;context:property-placeholder location="hbase.properties"/&gt;
  
         &lt;context:component-scan base-package="org.springframework.samples.hadoop.hbase"/&gt;
  
         &lt;hdp:configuration id="hadoopConfiguration"&gt;
                fs.defaultFS=hdfs://172.30.119.25:8020
         &lt;/hdp:configuration&gt;
  
         &lt;hdp:hbase-configuration id="hbaseConfiguration" configuration-ref="hadoopConfiguration" zk-quorum="${hbase.zk.host}" zk-port="${hbase.zk.port}"/&gt;
  
         &lt;bean id="hbaseTemplate" class="org.springframework.data.hadoop.hbase.HbaseTemplate"&gt;
                &lt;property name="configuration" ref="hbaseConfiguration"/&gt;
         &lt;/bean&gt;
  &lt;/beans&gt;
  </code></pre>
  
  <p>When run the sample i got this exception:</p>
  
  <pre><code>Exception in thread "main" org.apache.hadoop.hbase.client.RetriesExhaustedException: Failed after attempts=35, exceptions:
  Wed Jul 15 16:01:24 ICT 2015, org.apache.hadoop.hbase.client.RpcRetryingCaller@35988e16, java.net.UnknownHostException: unknown host: quickstart.cloudera
  </code></pre>
  
  <p>May someone help me solve this exception ?</p>