Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Not a host:port pair: PBUF aster2?

Not a host:port pair: PBUF aster2?

New Contributor

HBase error :
=============
Not a host:port pair: PBUF  aster2?)

"java.lang.IllegalArgumentException: Not a host:port pair: PBUF"
We are getting this exception, if we try to connect HBase from java.

We have used proper jars to execute the below code from eclipse as well as in server(console) which is there in the server.

snippet:
========
Configuration conf = HBaseConfiguration.create();
conf.set("hbase.zookeeper.quorum", "100.206.206.78");
conf.set("hbase.zookeeper.property.clientPort", "2181");

hBaseAdmin = new HBaseAdmin(conf);
String tableName="test";
if(hBaseAdmin.tableExists(tableName)) {
System.out.println("table exists!");
} else {
System.out.println("table doesn't exists!");
}

pom file:
========
<repositories>
<repository>
<id>cloudera</id>
<url>https://repository.cloudera.com/artifactory/cloudera-repos/</url>
</repository>
<repository>
<id>spring-milestones</id>
<url>http://repo.springsource.org/libs-milestone/</url>
</repository>
</repositories>
<dependencies>
<dependency>
<groupId>org.apache.hadoop</groupId>
<artifactId>hadoop-client</artifactId>
<version>2.3.0-cdh5.0.3</version>
</dependency>
<dependency>
<groupId>org.apache.hbase</groupId>
<artifactId>hbase</artifactId>
<version>0.94.2-cdh4.2.1</version>
</dependency>
<dependency>
<groupId>org.apache.hbase</groupId>
<artifactId>hbase-client</artifactId>
<version>0.96.1.1-cdh5.0.3</version>
</dependency>
<dependency>
<groupId>org.apache.zookeeper</groupId>
<artifactId>zookeeper</artifactId>
<version>3.4.5-cdh5.0.3</version>
</dependency>
</dependencies>

1 REPLY 1

Re: Not a host:port pair: PBUF aster2?

New Contributor

CDH Version: cdh5.0.3