The Hortonworks Community Connection is now live. A completely rebuilt Q&A forum, Knowledge Base, Code Hub and more, backed by the experts in the industry.

You will be redirected here in 10 seconds. If your are not redirected, click here to visit the new site.

The legacy Hortonworks Forum is now closed. You can view a read-only version of the former site by clicking here. The site will be taken offline on January 31,2016

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”, “”);
    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

The forum ‘Hortonworks Sandbox’ is closed to new topics and replies.

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.