This server is in the failed servers list

to create new topics or reply. | New User Registration

This topic contains 0 replies, has 1 voice, and was last updated by  Margus Roo 1 year, 3 months ago.

  • Creator
  • #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”, “”);
    conf.set(“”, “2181”);
    conf.set(“hbase.rootdir”, “hdfs://”);
    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, sessionTimeout=90000 watcher=hconnection-0xa069435,, baseZNode=/hbase-unsecure
    14/04/05 10:56:55 INFO zookeeper.RecoverableZooKeeper: Process identifier=hconnection-0xa069435 connecting to ZooKeeper
    14/04/05 10:56:55 INFO zookeeper.ClientCnxn: Opening socket connection to server Will not attempt to authenticate using SASL (unknown error)
    14/04/05 10:56:55 INFO zookeeper.ClientCnxn: Socket connection established to, initiating session
    14/04/05 10:56:55 INFO zookeeper.ClientCnxn: Session establishment complete on server, 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, org.apache.hadoop.hbase.DoNotRetryIOException: java.lang.NoSuchMethodError:;)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, org.apache.hadoop.hbase.ipc.RpcClient$FailedServerException: This server is in the failed servers list:

    [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

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

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.