Here is my full error log 10/12/23 15:34:44 INFO zookeeper.ZooKeeperWrapper: Reconnecting to zookeeper 10/12/23 15:34:44 INFO zookeeper.ZooKeeper: Client environment:zookeeper.version=3.2.2-888565, built on 12/08/2009 21:51 GMT 10/12/23 15:34:44 INFO zookeeper.ZooKeeper: Client environment:host.name =my-laptop 10/12/23 15:34:44 INFO zookeeper.ZooKeeper: Client environment:java.version=1.6.0_18 10/12/23 15:34:44 INFO zookeeper.ZooKeeper: Client environment:java.vendor=Sun Microsystems Inc. 10/12/23 15:34:44 INFO zookeeper.ZooKeeper: Client environment:java.home=/usr/lib/jvm/java-6-openjdk/jre 10/12/23 15:34:44 INFO zookeeper.ZooKeeper: Client environment:java.library.path=/usr/lib/jvm/java-6-openjdk/jre/lib/i386/server:/usr/lib/jvm/java-6-openjdk/jre/lib/i386:/usr/lib/jvm/java-6-openjdk/jre/../lib/i386:/usr/lib/jvm/java-6-openjdk/jre/lib/i386/client:/usr/lib/jvm/java-6-openjdk/jre/lib/i386:/usr/lib/xulrunner-addons:/usr/lib/xulrunner-addons:/usr/lib/xulrunner-addons:/usr/java/packages/lib/i386:/usr/lib/jni:/lib:/usr/lib 10/12/23 15:34:44 INFO zookeeper.ZooKeeper: Client environment:java.io.tmpdir=/tmp 10/12/23 15:34:44 INFO zookeeper.ZooKeeper: Client environment:java.compiler=<NA> 10/12/23 15:34:44 INFO zookeeper.ZooKeeper: Client environment:os.name=Linux 10/12/23 15:34:44 INFO zookeeper.ZooKeeper: Client environment:os.arch=i386 10/12/23 15:34:44 INFO zookeeper.ZooKeeper: Client environment:os.version=2.6.32-24-generic 10/12/23 15:34:44 INFO zookeeper.ZooKeeper: Client environment:user.name =root 10/12/23 15:34:44 INFO zookeeper.ZooKeeper: Client environment:user.home=/root 10/12/23 15:34:44 INFO zookeeper.ZooKeeper: Client environment:user.dir=/code/svn_java/Code50/Primess/System 10/12/23 15:34:44 INFO zookeeper.ZooKeeper: Initiating client connection, connectString=10.30.12.182:2181 sessionTimeout=60000 watcher=org.apache.hadoop.hbase.zookeeper.zookeeperwrap...@105b99f 10/12/23 15:34:44 INFO zookeeper.ClientCnxn: zookeeper.disableAutoWatchReset is false 10/12/23 15:34:44 INFO zookeeper.ClientCnxn: Attempting connection to server /10.30.12.182:2181 10/12/23 15:34:44 INFO zookeeper.ClientCnxn: Priming connection to java.nio.channels.SocketChannel[connected local=/10.199.25.23:48281 remote=/ 10.30.12.182:2181] 10/12/23 15:34:44 INFO zookeeper.ClientCnxn: Server connection successful 10/12/23 15:34:45 INFO ipc.HbaseRPC: Server at /127.0.0.1:15587 could not be reached after 1 tries, giving up. 10/12/23 15:34:46 INFO ipc.HbaseRPC: Server at /127.0.0.1:15587 could not be reached after 1 tries, giving up. 10/12/23 15:34:47 INFO ipc.HbaseRPC: Server at /127.0.0.1:15587 could not be reached after 1 tries, giving up. 10/12/23 15:34:48 INFO ipc.HbaseRPC: Server at /127.0.0.1:15587 could not be reached after 1 tries, giving up. 10/12/23 15:34:50 INFO ipc.HbaseRPC: Server at /127.0.0.1:15587 could not be reached after 1 tries, giving up. 10/12/23 15:34:52 INFO ipc.HbaseRPC: Server at /127.0.0.1:15587 could not be reached after 1 tries, giving up. 10/12/23 15:34:56 INFO ipc.HbaseRPC: Server at /127.0.0.1:15587 could not be reached after 1 tries, giving up. 10/12/23 15:35:00 INFO ipc.HbaseRPC: Server at /127.0.0.1:15587 could not be reached after 1 tries, giving up. 10/12/23 15:35:08 INFO ipc.HbaseRPC: Server at /127.0.0.1:15587 could not be reached after 1 tries, giving up.
On Thu, Dec 23, 2010 at 3:24 PM, King JKing <[email protected]> wrote: > No. When I add your code to hbase-site.xml and restart HBase Server. When I > run HBase Client, client hang up. > > Here is some information on HBase server > > [r...@me-182 conf]# netstat -an|grep 60000 > tcp 0 0 ::ffff:127.0.0.1:60000 > :::* LISTEN > tcp 0 0 ::ffff:127.0.0.1:18965 ::ffff:127.0.0.1:60000 > ESTABLISHED > tcp 0 0 ::ffff:127.0.0.1:60000 ::ffff:127.0.0.1:18965 > ESTABLISHED > > > > On Thu, Dec 23, 2010 at 3:17 PM, Andrey Stepachev <[email protected]>wrote: > >> Are the error lines the same as above? Can you post error here? >> >> 10/12/23 14:26:06 INFO ipc.HbaseRPC: Server at /127.0.0.1:45369 could not >> be >> >> 2010/12/23 King JKing <[email protected]> >> >> > I had already config this parameter. But still error >> > >> > On Thu, Dec 23, 2010 at 2:48 PM, Andrey Stepachev <[email protected]> >> > wrote: >> > >> > > Looks like in zookeeper stored wrong region server address. Try to >> > specify >> > > real address in hbase config >> > > (hbase-site.xml in conf dir of hbase installation). >> > > >> > > something like this. >> > > >> > > <property> >> > > <name>hbase.zookeeper.quorum</name> >> > > <value>you_host_or_ip</value> >> > > <description>Comma separated list of servers in the ZooKeeper >> Quorum. >> > > </description> >> > > </property> >> > > >> > > >> > > 2010/12/23 King JKing <[email protected]> >> > > >> > > > HBase and client are on the different machine >> > > > >> > > > On Thu, Dec 23, 2010 at 2:32 PM, Andrey Stepachev <[email protected] >> > >> > > > wrote: >> > > > >> > > > > Are HBase and client on the same machine? >> > > > > >> > > > > 2010/12/23 King JKing <[email protected]> >> > > > > >> > > > > > But still error... >> > > > > > 10/12/23 14:26:06 INFO ipc.HbaseRPC: Server at /127.0.0.1:45369 >> > could >> > > > > not >> > > > > > be >> > > > > > reached after 1 tries, giving up. >> > > > > > 10/12/23 14:26:07 INFO ipc.HbaseRPC: Server at /127.0.0.1:45369 >> > could >> > > > > not >> > > > > > be >> > > > > > reached after 1 tries, giving up. >> > > > > > >> > > > > > >> > > > > > >> > > > > > On Thu, Dec 23, 2010 at 2:18 PM, Andrey Stepachev < >> > [email protected]> >> > > > > > wrote: >> > > > > > >> > > > > > > place hbase-site.xml with two parameters in you classpath. >> > > > > > > >> > > > > > > hbase.zookeeper.quorum=your host >> > > > > > > hbase.zookeeper.property.clientPort=2181 (this parameter is >> > > optional) >> > > > > > > >> > > > > > > another way, create Configuration and set this parameters >> from >> > any >> > > > > > sources >> > > > > > > you like >> > > > > > > (i use for example jndi in some of my apps). >> > > > > > > >> > > > > > > c = HBaseConfiguration.create(); >> > > > > > > c.set(propname, propvalue); >> > > > > > > >> > > > > > > >> > > > > > > >> > > > > > > 2010/12/23 King JKing <[email protected]> >> > > > > > > >> > > > > > > > Dear all, >> > > > > > > > >> > > > > > > > I set up my HBase server in standalone mode. >> > > > > > > > >> > > > > > > > Can HBase Client (from another machine) connect to this >> HBase >> > > > server? >> > > > > > > > How can I do that? >> > > > > > > > >> > > > > > > > A lot of people have the same question. But I did not find >> > > correct >> > > > > > > answer. >> > > > > > > > >> > > > > > > > Thank a lot for support. >> > > > > > > > >> > > > > > > >> > > > > > >> > > > > >> > > > >> > > >> > >> > >
