Home Forums Hortonworks Sandbox This server is in the failed servers list

This topic contains 0 replies, has 1 voice, and was last updated by  Margus Roo 6 months, 2 weeks ago.

  • Creator
    Topic
  • #51411

    Margus Roo
    Participant

    Hi
    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/10.0.2.15:2181. 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/10.0.2.15:2181, initiating session
    14/04/05 10:56:55 INFO zookeeper.ClientCnxn: Session establishment complete on server sandbox.hortonworks.com/10.0.2.15:2181, 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/10.0.2.15:60000

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

    tcp 0 0 0.0.0.0:2181 0.0.0.0:* LISTEN
    tcp 0 0 10.0.2.15:60000 0.0.0.0:* LISTEN 4355/java

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

You must be logged in to reply to this topic.