<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: hbase java Exception in thread &amp;quot;main&amp;quot; java.lang.IllegalArgumentException: Not a host:p in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/hbase-java-Exception-in-thread-quot-main-quot-java-lang/m-p/41865#M31396</link>
    <description>You are using a very old hbase library version jar in your code/build.&lt;BR /&gt;Please use the same version as the cluster, and I'd also recommend using&lt;BR /&gt;maven to fetch those dependencies.&lt;BR /&gt;</description>
    <pubDate>Fri, 10 Jun 2016 07:00:22 GMT</pubDate>
    <dc:creator>Harsh J</dc:creator>
    <dc:date>2016-06-10T07:00:22Z</dc:date>
    <item>
      <title>hbase java Exception in thread "main" java.lang.IllegalArgumentException: Not a host:port pair: PBUF</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/hbase-java-Exception-in-thread-quot-main-quot-java-lang/m-p/41863#M31395</link>
      <description>&lt;P&gt;Hi...&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;while trying to execute the execute the below java code , I was getting the error (mentioned below)&lt;BR /&gt;Can anyone help me to resolve the issue..&lt;BR /&gt;thanks in advance&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;import java.io.IOException;&lt;/P&gt;&lt;P&gt;import org.apache.hadoop.hbase.HBaseConfiguration;&lt;BR /&gt;import org.apache.hadoop.hbase.HColumnDescriptor;&lt;BR /&gt;import org.apache.hadoop.hbase.HTableDescriptor;&lt;BR /&gt;import org.apache.hadoop.hbase.client.HBaseAdmin;&lt;BR /&gt;import org.apache.hadoop.conf.Configuration;&lt;/P&gt;&lt;P&gt;public class CreateTable {&lt;BR /&gt;&lt;BR /&gt;public static void main(String[] args) throws IOException {&lt;/P&gt;&lt;P&gt;// Instantiating configuration class&lt;BR /&gt;Configuration con = HBaseConfiguration.create();&lt;/P&gt;&lt;P&gt;// Instantiating HbaseAdmin class&lt;BR /&gt;HBaseAdmin admin = new HBaseAdmin(con);&lt;/P&gt;&lt;P&gt;// Instantiating table descriptor class&lt;BR /&gt;HTableDescriptor tableDescriptor = new HTableDescriptor("emp");&lt;/P&gt;&lt;P&gt;// Adding column families to table descriptor&lt;BR /&gt;tableDescriptor.addFamily(new HColumnDescriptor("personal"));&lt;BR /&gt;tableDescriptor.addFamily(new HColumnDescriptor("professional"));&lt;/P&gt;&lt;P&gt;// Execute the table through admin&lt;BR /&gt;admin.createTable(tableDescriptor);&lt;BR /&gt;System.out.println(" Table created ");&lt;BR /&gt;}&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;error:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;16/06/09 21:03:44 INFO zookeeper.ZooKeeper: Initiating client connection, connectString=localhost:2181 sessionTimeout=180000 watcher=hconnection&lt;BR /&gt;16/06/09 21:03:44 INFO zookeeper.ClientCnxn: Opening socket connection to server localhost/127.0.0.1:2181&lt;BR /&gt;16/06/09 21:03:44 INFO zookeeper.RecoverableZooKeeper: The identifier of this process is 16738@quickstart.cloudera&lt;BR /&gt;16/06/09 21:03:44 INFO zookeeper.ClientCnxn: Socket connection established to localhost/127.0.0.1:2181, initiating session&lt;BR /&gt;16/06/09 21:03:44 INFO zookeeper.ClientCnxn: Session establishment complete on server localhost/127.0.0.1:2181, sessionid = 0x15530ed899d002f, negotiated timeout = 40000&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Exception in thread "main" java.lang.IllegalArgumentException: Not a host:port pair: PBUF&lt;BR /&gt;&lt;BR /&gt;&amp;#19;quickstart.cloudera&amp;#16;��&amp;#3;&amp;#24;�ȴ��*&amp;#16;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 10:24:24 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/hbase-java-Exception-in-thread-quot-main-quot-java-lang/m-p/41863#M31395</guid>
      <dc:creator>techno</dc:creator>
      <dc:date>2022-09-16T10:24:24Z</dc:date>
    </item>
    <item>
      <title>Re: hbase java Exception in thread "main" java.lang.IllegalArgumentException: Not a host:p</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/hbase-java-Exception-in-thread-quot-main-quot-java-lang/m-p/41865#M31396</link>
      <description>You are using a very old hbase library version jar in your code/build.&lt;BR /&gt;Please use the same version as the cluster, and I'd also recommend using&lt;BR /&gt;maven to fetch those dependencies.&lt;BR /&gt;</description>
      <pubDate>Fri, 10 Jun 2016 07:00:22 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/hbase-java-Exception-in-thread-quot-main-quot-java-lang/m-p/41865#M31396</guid>
      <dc:creator>Harsh J</dc:creator>
      <dc:date>2016-06-10T07:00:22Z</dc:date>
    </item>
  </channel>
</rss>

