Home | About | Sematext search-lucene.com search-hadoop.com
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB
 Search Hadoop and all its subprojects:

Switch to Threaded View
HBase >> mail # user >> hbase 0.96 stop master receive ERROR ipc.RPC: RPC.stopProxy called on non proxy.


Copy link to this message
-
RE: hbase 0.96 stop master receive ERROR ipc.RPC: RPC.stopProxy called on non proxy.
I looked into the source code of org/apache/hadoop/hbase/fs/HFileSystem.java
and whenever I execute hbase-daemon.sh stop master (or regionserver), the method.getName() is "close",
but the org/apache/hadoop/hdfs/protocol/ClientProtocol.java do not have method named "close",
thus it result in error "object is not an instance of declaring class"

Could someone that familiar with hbase-0.96.0 hadoop2 can tell me if this problem need to be fixed? And how to fix it?

  private static ClientProtocol createReorderingProxy(final ClientProtocol cp, final ReorderBlocks lrb, final Configuration conf) {
    return (ClientProtocol) Proxy.newProxyInstance
        (cp.getClass().getClassLoader(),
            new Class[]{ClientProtocol.class, Closeable.class},
            new InvocationHandler() {
              public Object invoke(Object proxy, Method method,
                                   Object[] args) throws Throwable {
                try {
                  // method.invoke will failed if method.getName().equals("close")
                  // because ClientProtocol do not have method "close"
                  Object res = method.invoke(cp, args);
                  if (res != null && args != null && args.length == 3
                      && "getBlockLocations".equals(method.getName())
                      && res instanceof LocatedBlocks
                      && args[0] instanceof String
                      && args[0] != null) {
                    lrb.reorderBlocks(conf, (LocatedBlocks) res, (String) args[0]);
                  }
                  return res;
                } catch  (InvocationTargetException ite) {
                  // We will have this for all the exception, checked on not, sent
                  //  by any layer, including the functional exception
                  Throwable cause = ite.getCause();
                  if (cause == null){
                    throw new RuntimeException(
                      "Proxy invocation failed and getCause is null", ite);
                  }
                  if (cause instanceof UndeclaredThrowableException) {
                    Throwable causeCause = cause.getCause();
                    if (causeCause == null) {
                      throw new RuntimeException("UndeclaredThrowableException had null cause!");
                    }
                    cause = cause.getCause();
                  }
                  throw cause;
                }
              }
            });
  }

-----Original Message-----
From: MA11 YTHung1
Sent: Thursday, November 21, 2013 9:57 AM
To: [EMAIL PROTECTED]
Subject: RE: hbase 0.96 stop master receive ERROR ipc.RPC: RPC.stopProxy called on non proxy.

Additional information:

I replace all files with prefix hadoop in hbase-0.96.0-hadoop2/lib with hadoop-2.2.0 libraries.

the ls -l of hbase-0.96.0-hadoop2/lib as below:

-rw-r--r-- 1 hadoop users    62983 Sep 17 16:13 activation-1.1.jar
-rw-r--r-- 1 hadoop users     4467 Sep 17 23:29 aopalliance-1.0.jar
-rw-r--r-- 1 hadoop users    43033 Sep 17 16:13 asm-3.1.jar
-rw-r--r-- 1 hadoop users   263268 Sep 17 16:27 avro-1.5.3.jar
-rw-r--r-- 1 hadoop users   188671 Sep 17 16:12 commons-beanutils-1.7.0.jar
-rw-r--r-- 1 hadoop users   206035 Sep 17 16:13 commons-beanutils-core-1.8.0.jar
-rw-r--r-- 1 hadoop users    41123 Sep 17 16:12 commons-cli-1.2.jar
-rw-r--r-- 1 hadoop users   259600 Sep 17 16:13 commons-codec-1.7.jar
-rw-r--r-- 1 hadoop users   575389 Sep 17 16:12 commons-collections-3.2.1.jar
-rw-r--r-- 1 hadoop users   238681 Sep 17 16:27 commons-compress-1.4.jar
-rw-r--r-- 1 hadoop users   298829 Sep 17 16:13 commons-configuration-1.6.jar
-rw-r--r-- 1 hadoop users    24239 Sep 17 23:28 commons-daemon-1.0.13.jar
-rw-r--r-- 1 hadoop users   143602 Sep 17 16:12 commons-digester-1.8.jar
-rw-r--r-- 1 hadoop users   112341 Sep 17 16:13 commons-el-1.0.jar
-rw-r--r-- 1 hadoop users   305001 Sep 17 16:12 commons-httpclient-3.1.jar
-rw-r--r-- 1 hadoop users   185140 Sep 17 16:13 commons-io-2.4.jar
-rw-r--r-- 1 hadoop users   284220 Sep 17 16:12 commons-lang-2.6.jar
-rw-r--r-- 1 hadoop users    60686 Sep 17 16:12 commons-logging-1.1.1.jar
-rw-r--r-- 1 hadoop users   988514 Sep 17 16:13 commons-math-2.2.jar
-rw-r--r-- 1 hadoop users   273370 Sep 17 16:27 commons-net-3.1.jar
-rw-r--r-- 1 hadoop users  3566844 Sep 17 16:15 core-3.1.1.jar
-rw-r--r-- 1 hadoop users    15322 Sep 17 16:12 findbugs-annotations-1.3.9-1.jar
-rw-r--r-- 1 hadoop users    21817 Sep 17 23:29 gmbal-api-only-3.0.0-b023.jar
-rw-r--r-- 1 hadoop users   684337 Sep 17 23:29 grizzly-framework-2.1.1.jar
-rw-r--r-- 1 hadoop users   210846 Sep 17 23:29 grizzly-framework-2.1.1-tests.jar
-rw-r--r-- 1 hadoop users   248346 Sep 17 23:29 grizzly-http-2.1.1.jar
-rw-r--r-- 1 hadoop users   193583 Sep 17 23:29 grizzly-http-server-2.1.1.jar
-rw-r--r-- 1 hadoop users   336878 Sep 17 23:29 grizzly-http-servlet-2.1.1.jar
-rw-r--r-- 1 hadoop users     8072 Sep 17 23:29 grizzly-rcm-2.1.1.jar
-rw-r--r-- 1 hadoop users  1795932 Sep 17 16:13 guava-12.0.1.jar
-rw-r--r-- 1 hadoop users   710492 Sep 17 23:29 guice-3.0.jar
-rw-r--r-- 1 hadoop users    65012 Sep 17 23:29 guice-servlet-3.0.jar
-rw-r--r-- 1 hadoop users    16778 Nov 20 17:39 hadoop-annotations-2.2.0.jar
-rw-r--r-- 1 hadoop users    49750 Nov 20 17:40 hadoop-auth-2.2.0.jar
-rw-r--r-- 1 hadoop users     2576 Oct 12 06:20 hadoop-client-2.1.0-beta.jar
-rw-r--r-- 1 hadoop users  2735584 Nov 20 17:50 hadoop-common-2.2.0.jar
-rw-r--r-- 1 hadoop users  5242252 Nov 21 08:48 hadoop-hdfs-2.2.0.jar
-rw-r--r-- 1 hadoop users  1988460 Nov 21 08:48 hadoop-hdfs-2.2.0-tests.jar
-rw-r--r-- 1 hadoop users   482042 Nov 21 08:49 hadoop-mapreduce-client-app-2.2.0.jar
-rw-r--r-- 1 hadoop users   656365 Nov 21 08:49 hadoop-mapreduce-client-common-2.2.0.jar
-rw-r--r-- 1 hadoop users  1455001 Nov 21 08:50 hadoop-mapreduce-client-core-2.2.0.jar
-rw-r--r-- 1 hadoop users    35216 Nov 21 08:50 hadoop-mapreduce-client-jobclient-2.2.0.jar
-rw-r--r-- 1 hadoop users  1434852 Nov 21 08:50 hado
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB