title: Can not connect to hbase via phoenix
body: <p>I am trying to connect <a href="/questions/tagged/hbase" class="post-tag" title="show questions tagged &#39;hbase&#39;" rel="tag">hbase</a> via <a href="/questions/tagged/phoenix" class="post-tag" title="show questions tagged &#39;phoenix&#39;" rel="tag">phoenix</a>:
  First, I added <code>phoenix-2.jar</code> to hbase lib directory.
  Then restart region server and then create a project in netbeans and add the <code>phoenic-2-client.jar</code> to classpath of the project.
  Then added below lines into <code>hbase.site.xml</code> for hbase and phoenix.
  </p>
  
  <pre><code>    &lt;property&gt;
  &lt;name&gt;hbase.master&lt;/name&gt;
  &lt;value&gt;23.201.00.100:60000&lt;/value&gt;
  &lt;description&gt;The host and port the HBase master runs at. 
  &lt;/description&gt;
  &lt;/property&gt;
  &lt;property&gt;
    &lt;name&gt;hbase.zookeeper.property.clientPort&lt;/name&gt;
    &lt;value&gt;2222&lt;/value&gt;
    &lt;description&gt;Property from ZooKeeper's config zoo.cfg.
    The port at which the clients will connect.
    &lt;/description&gt;
  &lt;/property&gt;
  &lt;property&gt;
    &lt;name&gt;hbase.zookeeper.quorum&lt;/name&gt;
           &lt;value&gt;rs1.example.com,rs2.example.com,rs3.example.com,rs4.example.com,rs5.example.com&lt;/value&gt;
    &lt;description&gt;Comma separated list of servers in the ZooKeeper Quorum.
    For example, "host1.mydomain.com,host2.mydomain.com,host3.mydomain.com".
    By default this is set to localhost for local and pseudo-distributed modes
    of operation. For a fully-distributed setup, this should be set to a full
    list of ZooKeeper quorum servers. If HBASE_MANAGES_ZK is set in hbase-env.sh
    this is the list of servers which we will start/stop ZooKeeper on.
    &lt;/description&gt;
  &lt;/property&gt;
  &lt;property&gt;
    &lt;name&gt;hbase.zookeeper.property.dataDir&lt;/name&gt;
    &lt;value&gt;/usr/local/zookeeper&lt;/value&gt;
    &lt;description&gt;Property from ZooKeeper's config zoo.cfg.
    The directory where the snapshot is stored.
    &lt;/description&gt;
  &lt;/property&gt;
  </code></pre>
  
  <p>My hbase is pseodo distribiuted mode.Finally, I wrote the following code in netbeans to connect to hbase:</p>
  
  <pre><code> Connection conn;
      Properties prop = new Properties();
        try{
          Class.forName("com.salesforce.phoenix.jdbc.PhoenixDriver");
          conn =  DriverManager.getConnection("jdbc:phoenix:rs1.example.com,rs2.example.com,rs3.example.com,rs4.example.com,rs5.example.com:2222:hdfs://localhost:8020/hbase");
          System.out.println(conn);
  </code></pre>
  
  <p>but shows this error:</p>
  
  <pre><code>    java.sql.SQLException: ERROR 102 (08001): Malformed connection url. jdbc:phoenix:rs1.example.com,rs2.example.com,rs3.example.com,rs4.example.com,rs5.example.com:2222:hdfs://localhost:8020/hbase
      at com.salesforce.phoenix.exception.SQLExceptionInfo.buildException(SQLExceptionInfo.java:146)
      at com.salesforce.phoenix.jdbc.PhoenixEmbeddedDriver$ConnectionInfo.create(PhoenixEmbeddedDriver.java:206)
      at com.salesforce.phoenix.jdbc.PhoenixDriver.getConnectionQueryServices(PhoenixDriver.java:78)
      at  com.salesforce.phoenix.jdbc.PhoenixEmbeddedDriver.connect(PhoenixEmbeddedDriver.java:115)
      at java.sql.DriverManager.getConnection(DriverManager.java:571)
      at java.sql.DriverManager.getConnection(DriverManager.java:233)
      at hbase.phoenix.HbasePhoenix.main(HbasePhoenix.java:30)
  BUILD SUCCESSFUL (total time: 2 seconds)
  </code></pre>
  
  <p>Please guide me..</p>