Hortonworks Sandbox Forum

This server is in the failed servers list

  • #51411
    Margus Roo

    I have java code:
    import org.apache.hadoop.conf.Configuration;
    import org.apache.hadoop.hbase.HBaseConfiguration;
    import org.apache.hadoop.hbase.HColumnDescriptor;
    import org.apache.hadoop.hbase.HTableDescriptor;
    import org.apache.hadoop.hbase.client.HBaseAdmin;
    import org.apache.hadoop.hbase.util.Bytes;
    public class Hbase_connect {
    public static void main(String[] args) throws Exception {
    Configuration conf = HBaseConfiguration.create();
    conf.set(“hbase.zookeeper.quorum”, “sandbox.hortonworks.com”);
    conf.set(“hbase.zookeeper.property.clientPort”, “2181”);
    conf.set(“hbase.rootdir”, “hdfs://sandbox.hortonworks.com:8020/apps/hbase/data”);
    conf.set(“zookeeper.znode.parent”, “/hbase-unsecure”);
    HBaseAdmin admin = new HBaseAdmin(conf);
    HTableDescriptor[] tabdesc = admin.listTables();
    for(int i=0; i<tabdesc.length; i++) {
    System.out.println(“Table = ” + new String(tabdesc [i].getName()));

    [hbase@sandbox hbase_connect]$ java -cp ./:./libs/*:./libs/hbase-0.96.2-hadoop2/lib/* Hbase_connect gives me:

    14/04/05 10:56:55 INFO zookeeper.ZooKeeper: Initiating client connection, connectString=sandbox.hortonworks.com:2181 sessionTimeout=90000 watcher=hconnection-0xa069435, quorum=sandbox.hortonworks.com:2181, baseZNode=/hbase-unsecure
    14/04/05 10:56:55 INFO zookeeper.RecoverableZooKeeper: Process identifier=hconnection-0xa069435 connecting to ZooKeeper ensemble=sandbox.hortonworks.com:2181
    14/04/05 10:56:55 INFO zookeeper.ClientCnxn: Opening socket connection to server sandbox.hortonworks.com/ Will not attempt to authenticate using SASL (unknown error)
    14/04/05 10:56:55 INFO zookeeper.ClientCnxn: Socket connection established to sandbox.hortonworks.com/, initiating session
    14/04/05 10:56:55 INFO zookeeper.ClientCnxn: Session establishment complete on server sandbox.hortonworks.com/, sessionid = 0x1453145e9500055, negotiated timeout = 40000
    14/04/05 10:56:56 INFO client.HConnectionManager$HConnectionImplementation: getMaster attempt 1 of 35 failed; retrying after sleep of 100, exception=com.google.protobuf.ServiceException: org.apache.hadoop.hbase.DoNotRetryIOException: java.lang.NoSuchMethodError: org.apache.hadoop.net.NetUtils.getInputStream(Ljava/net/Socket;)Lorg/apache/hadoop/net/SocketInputWrapper;
    14/04/05 10:56:56 INFO client.HConnectionManager$HConnectionImplementation: getMaster attempt 2 of 35 failed; retrying after sleep of 200, exception=com.google.protobuf.ServiceException: org.apache.hadoop.hbase.ipc.RpcClient$FailedServerException: This server is in the failed servers list: sandbox.hortonworks.com/

    [hbase@sandbox hbase_connect]$ jps
    4355 HMaster
    5335 Jps
    4711 HRegionServer
    4715 ThriftServer
    4717 RESTServer

    tcp 0 0* LISTEN
    tcp 0 0* LISTEN 4355/java

    [root@sandbox ~]# cat /etc/hosts

to create new topics or reply. | New User Registration

You must be to reply to this topic. | Create Account

Support from the Experts

A HDP Support Subscription connects you experts with deep experience running Apache Hadoop in production, at-scale on the most demanding workloads.

Enterprise Support »

Become HDP Certified

Real world training designed by the core architects of Hadoop. Scenario-based training courses are available in-classroom or online from anywhere in the world

Training »

Hortonworks Data Platform
The Hortonworks Data Platform is a 100% open source distribution of Apache Hadoop that is truly enterprise grade having been built, tested and hardened with enterprise rigor.
Get started with Sandbox
Hortonworks Sandbox is a self-contained virtual machine with Apache Hadoop pre-configured alongside a set of hands-on, step-by-step Hadoop tutorials.
Modern Data Architecture
Tackle the challenges of big data. Hadoop integrates with existing EDW, RDBMS and MPP systems to deliver lower cost, higher capacity infrastructure.