hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From stack <st...@duboce.net>
Subject Re: starting thrift generates TTransportException
Date Sat, 26 Dec 2009 17:33:46 GMT
Its not because of ipv6.  Here is on another machine:

[stack@X.X-12 trunk]$ ./bin/hbase thrift start
Turning off use of shared archive because of choice of garbage collector or
large pages
09/12/26 17:28:25 [main] INFO ThriftServer: starting HBase Thrift server on
port 9090
09/12/26 17:28:25 [main] INFO zookeeper.ZooKeeper: Client
environment:zookeeper.version=3.2.2-888565, built on 12/08/2009 21:51 GMT
09/12/26 17:28:25 [main] INFO zookeeper.ZooKeeper: Client environment:
host.name=X.X-12.u.powerset.com
09/12/26 17:28:25 [main] INFO zookeeper.ZooKeeper: Client
environment:java.version=1.7.0-ea
09/12/26 17:28:25 [main] INFO zookeeper.ZooKeeper: Client
environment:java.vendor=Sun Microsystems Inc.
09/12/26 17:28:25 [main] INFO zookeeper.ZooKeeper: Client
environment:java.home=/home/stack/bin/jdk1.7.0/jre
09/12/26 17:28:25 [main] INFO zookeeper.ZooKeeper: Client
environment:java.class.path=/home/stack/trunk/bin/../conf:/home/stack/bin/jdk/lib/tools.jar:/home/stack/trunk/bin/../build/classes:/home/stack/trunk/bin/../build/test:/home/stack/trunk/bin/../build:/home/stack/trunk/bin/../lib/avro-1.2.0.jar:/home/stack/trunk/bin/../lib/commons-cli-2.0-SNAPSHOT.jar:/home/stack/trunk/bin/../lib/commons-el-from-jetty-5.1.4.jar:/home/stack/trunk/bin/../lib/commons-httpclient-3.0.1.jar:/home/stack/trunk/bin/../lib/commons-logging-1.0.4.jar:/home/stack/trunk/bin/../lib/commons-logging-api-1.0.4.jar:/home/stack/trunk/bin/../lib/commons-math-1.1.jar:/home/stack/trunk/bin/../lib/hadoop-core-0.21.0-SNAPSHOT-r832250.jar:/home/stack/trunk/bin/../lib/hadoop-core-test-0.21.0-SNAPSHOT-r832250.jar:/home/stack/trunk/bin/../lib/hadoop-hdfs-0.21.0-dev-r836012.jar:/home/stack/trunk/bin/../lib/hadoop-hdfs-test-0.21.0-dev-r836012.jar:/home/stack/trunk/bin/../lib/hadoop-mapred-0.21.0-dev-r833993.jar:/home/stack/trunk/bin/../lib/hadoop-mapred-test-0.21.0-dev-r833993.jar:/home/stack/trunk/bin/../lib/jasper-compiler-5.5.12.jar:/home/stack/trunk/bin/../lib/jasper-runtime-5.5.12.jar:/home/stack/trunk/bin/../lib/jetty-6.1.14.jar:/home/stack/trunk/bin/../lib/jetty-util-6.1.14.jar:/home/stack/trunk/bin/../lib/jruby-complete-1.3.1.jar:/home/stack/trunk/bin/../lib/json.jar:/home/stack/trunk/bin/../lib/junit-4.7.jar:/home/stack/trunk/bin/../lib/libthrift-r771587.jar:/home/stack/trunk/bin/../lib/log4j-1.2.15.jar:/home/stack/trunk/bin/../lib/lucene-core-2.2.0.jar:/home/stack/trunk/bin/../lib/servlet-api-2.5-6.1.14.jar:/home/stack/trunk/bin/../lib/zookeeper-3.2.2.jar:/home/stack/trunk/bin/../lib/jsp-2.1/jsp-2.1.jar:/home/stack/trunk/bin/../lib/jsp-2.1/jsp-api-2.1.jar
09/12/26 17:28:25 [main] INFO zookeeper.ZooKeeper: Client
environment:java.library.path=/home/stack/bin/jdk1.7.0/jre/lib/amd64/server:/home/stack/bin/jdk1.7.0/jre/lib/amd64:/home/stack/bin/jdk1.7.0/jre/../lib/amd64:/p/lib:/usr/local/lib:/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib
09/12/26 17:28:25 [main] INFO zookeeper.ZooKeeper: Client
environment:java.io.tmpdir=/tmp
09/12/26 17:28:25 [main] INFO zookeeper.ZooKeeper: Client
environment:java.compiler=<NA>
09/12/26 17:28:25 [main] INFO zookeeper.ZooKeeper: Client environment:
os.name=Linux
09/12/26 17:28:25 [main] INFO zookeeper.ZooKeeper: Client
environment:os.arch=amd64
09/12/26 17:28:25 [main] INFO zookeeper.ZooKeeper: Client
environment:os.version=2.6.25.10
09/12/26 17:28:25 [main] INFO zookeeper.ZooKeeper: Client environment:
user.name=stack
09/12/26 17:28:25 [main] INFO zookeeper.ZooKeeper: Client
environment:user.home=/home/stack
09/12/26 17:28:25 [main] INFO zookeeper.ZooKeeper: Client
environment:user.dir=/home/stack/trunk
09/12/26 17:28:25 [main] INFO zookeeper.ZooKeeper: Initiating client
connection, connectString=X.X-14.u.powerset.com:2181,
X.X-13.u.powerset.com:2181,X.X-12.u.powerset.com:2181 sessionTimeout=60000
watcher=org.apache.hadoop.hbase.client.HConnectionManager$ClientZKWatcher@69945ce
09/12/26 17:28:25 [main] INFO zookeeper.ClientCnxn:
zookeeper.disableAutoWatchReset is false
09/12/26 17:28:25 [main-SendThread] INFO zookeeper.ClientCnxn: Attempting
connection to server X.X-14.u.powerset.com/XX.XX.XX.141:2181
09/12/26 17:28:26 [main-SendThread] INFO zookeeper.ClientCnxn: Priming
connection to java.nio.channels.SocketChannel[connected
local=/XX.XX.XX.139:34178 remote=X.X-14.u.powerset.com/XX.XX.XX.141:2181]
09/12/26 17:28:26 [main-SendThread] INFO zookeeper.ClientCnxn: Server
connection successful
09/12/26 17:28:26 [main-SendThread] DEBUG zookeeper.ClientCnxn: Reading
reply sessionid:0x225809ff69d00e3, packet:: clientPath:null serverPath:null
finished:false header:: -8,101  replyHeader:: -8,64424510819,0  request::
0,v{},v{},v{}  response:: null
09/12/26 17:28:26 [main-SendThread] DEBUG zookeeper.ClientCnxn: Reading
reply sessionid:0x225809ff69d00e3, packet:: clientPath:null serverPath:null
finished:false header:: 1,4  replyHeader:: 1,64424510819,0  request::
'/hbase/master,F  response::
#3230382e37362e34342e3133393a3630303031,s{64424509461,64424509461,1260583446086,1260583446086,0,0,0,10555998724685825,19,0,64424509461}
09/12/26 17:28:26 [main] DEBUG zookeeper.ZooKeeperWrapper: Read ZNode
/hbase/master got XX.XX.XX.139:60001
09/12/26 17:28:46 [main-SendThread] DEBUG zookeeper.ClientCnxn: Got ping
response for sessionid:0x225809ff69d00e3 after 0ms
09/12/26 17:29:06 [main-SendThread] DEBUG zookeeper.ClientCnxn: Got ping
response for sessionid:0x225809ff69d00e3 after 0ms

There is no config. yet to designate address for thrift to bind too (To be
fixed as per Lars).

Ping if fine but can you telnet to the port that thrift is purportedly
listening on?

St.Ack

2009/12/25 Krzysztof Sopyła <ksirg@wp.pl>

> > Can you do something about your host finding 127.0.0.1 as its address in
> the
> > below.  My guess is this is the issue.
>
> I can ping any address of these
>
> Localhost,
> 127.0.0.1
> 192.168.228.128 - eth0
>
> I saw that yours thrift start  use IPv6 addressing, maybe that’s the
> reason?
>
> Is there any property in hbase-site.xml which I can use to sets concrete
> address of thrift server?
>
> -----Original Message-----
> From: saint.ack@gmail.com [mailto:saint.ack@gmail.com] On Behalf Of stack
> Sent: Tuesday, December 22, 2009 11:10 PM
> To: hbase-user@hadoop.apache.org
> Subject: Re: starting thrift generates TTransportException
>
> Here's a successful thrift server start:
>
> ...
> 09/12/22 14:04:32 INFO zookeeper.ZooKeeper: Initiating client connection,
> connectString=localhost:2181 sessionTimeout=60000
>
> watcher=org.apache.hadoop.hbase.client.HConnectionManager$ClientZKWatcher@a39ab89
> 09/12/22 14:04:32 INFO zookeeper.ClientCnxn:
> zookeeper.disableAutoWatchReset
> is false
> 09/12/22 14:04:32 INFO zookeeper.ClientCnxn: Attempting connection to
> server
> localhost/fe80:0:0:0:0:0:0:1%1:2181
> 09/12/22 14:04:32 INFO zookeeper.ClientCnxn: Priming connection to
> java.nio.channels.SocketChannel[connected local=/fe80:0:0:0:0:0:0:1%1:62590
> remote=localhost/fe80:0:0:0:0:0:0:1%1:2181]
> 09/12/22 14:04:32 INFO zookeeper.ClientCnxn: Server connection successful
> 09/12/22 14:04:32 DEBUG client.HConnectionManager$ClientZKWatcher: Got
> ZooKeeper event, state: SyncConnected, type: None, path: null
> 09/12/22 14:04:32 DEBUG zookeeper.ZooKeeperWrapper: Read ZNode
> /hbase/master
> got 192.168.0.102:60000
>
> Can you do something about your host finding 127.0.0.1 as its address in
> the
> below.  My guess is this is the issue.
>
> St.Ack
>
>
>
> 2009/12/21 Krzysztof Sopyła <ksirg@wp.pl>
>
> > Hi,
> > I've just started with Hbase (0.20.2), I install it on cloudera image
> > according to
> >
> http://www.larsgeorge.com/2009/11/hbase-on-cloudera-training-virtual.html,
> hbase installed correctly I made tables and put some rows
> > when I try start thrift using
> > "[hbase-root]/bin/hbase thrift start"
> >
> >
> > It throws exception:
> > Exception in thread "main"
> org.apache.thrift.transport.TTransportException:
> > Could not create ServerSocket on address 0.0.0.0/0.0.0.0:9090.
> >
> > All text threw to console:
> >
> > 09/12/21 12:02:42 INFO ThriftServer: starting HBase Thrift server on port
> > 9090
> > 09/12/21 12:02:43 INFO zookeeper.ZooKeeper: Client
> > environment:zookeeper.version=3.2.1-808558, built on 08/27/2009 18:48 GMT
> > 09/12/21 12:02:43 INFO zookeeper.ZooKeeper: Client environment:host.name
> > =localhost
> > 09/12/21 12:02:43 INFO zookeeper.ZooKeeper: Client
> > environment:java.version=1.6.0_10
> > 09/12/21 12:02:43 INFO zookeeper.ZooKeeper: Client
> > environment:java.vendor=Sun Microsystems Inc.
> > 09/12/21 12:02:43 INFO zookeeper.ZooKeeper: Client
> > environment:java.home=/usr/lib/jvm/java-6-sun-1.6.0.10/jre
> > 09/12/21 12:02:43 INFO zookeeper.ZooKeeper: Client
> >
> environment:java.class.path=/home/hadoop/hbase/build/bin/../conf:/usr/lib/jvm/java-6-sun/lib/tools.jar:/home/hadoop/hbase/build/bin/..:/home/hadoop/hbase/build/bin/../hbase-0.20.2.jar:/home/hadoop/hbase/build/bin/../lib/AgileJSON-2009-03-30.jar:/home/hadoop/hbase/build/bin/../lib/asm-3.1.jar:/home/hadoop/hbase/build/bin/../lib/commons-cli-2.0-SNAPSHOT.jar:/home/hadoop/hbase/build/bin/../lib/commons-codec-1.3.jar:/home/hadoop/hbase/build/bin/../lib/commons-el-from-jetty-5.1.4.jar:/home/hadoop/hbase/build/bin/../lib/commons-httpclient-3.0.1.jar:/home/hadoop/hbase/build/bin/../lib/commons-logging-1.0.4.jar:/home/hadoop/hbase/build/bin/../lib/commons-logging-api-1.0.4.jar:/home/hadoop/hbase/build/bin/../lib/commons-math-1.1.jar:/home/hadoop/hbase/build/bin/../lib/hadoop-0.20.1-hdfs127-core.jar:/home/hadoop/hbase/build/bin/../lib/hadoop-0.20.1-test.jar:/home/hadoop/hbase/build/bin/../lib/hbase-0.20.2-stargate.jar:/home/hadoop/hbase/build/bin/../lib/jackson-asl-0.9.4.jar:/home/hadoop/hbase/build/bin/../lib/jasper-compiler-5.5.12.jar:/home/hadoop/hbase/build/bin/../lib/jasper-runtime-5.5.12.jar:/home/hadoop/hbase/build/bin/../lib/jaxb-impl-2.1.10.jar:/home/hadoop/hbase/build/bin/../lib/jersey-core-1.1.0-ea.jar:/home/hadoop/hbase/build/bin/../lib/jersey-json-1.1.0-ea.jar:/home/hadoop/hbase/build/bin/../lib/jersey-server-1.1.0-ea.jar:/home/hadoop/hbase/build/bin/../lib/jetty-6.1.14.jar:/home/hadoop/hbase/build/bin/../lib/jetty-util-6.1.14.jar:/home/hadoop/hbase/build/bin/../lib/jruby-complete-1.2.0.jar:/home/hadoop/hbase/build/bin/../lib/json.jar:/home/hadoop/hbase/build/bin/../lib/jsr311-api-1.1.jar:/home/hadoop/hbase/build/bin/../lib/junit-3.8.1.jar:/home/hadoop/hbase/build/bin/../lib/libthrift-r771587.jar:/home/hadoop/hbase/build/bin/../lib/log4j-1.2.15.jar:/home/hadoop/hbase/build/bin/../lib/lucene-core-2.2.0.jar:/home/hadoop/hbase/build/bin/../lib/persistence-api-1.0.jar:/home/hadoop/hbase/build/bin/../lib/protobuf-java-2.1.0.jar:/home/hadoop/hbase/build/bin/../lib/servlet-api-2.5-6.1.14.jar:/home/hadoop/hbase/build/bin/../lib/xmlenc-0.52.jar:/home/hadoop/hbase/build/bin/../lib/zookeeper-3.2.1.jar:/home/hadoop/hbase/build/bin/../lib/jsp-2.1/jsp-2.1.jar:/home/hadoop/hbase/build/bin/../lib/jsp-2.1/jsp-api-2.1.jar
> > 09/12/21 12:02:43 INFO zookeeper.ZooKeeper: Client
> >
> environment:java.library.path=/home/hadoop/hbase/build/bin/../lib/native/Linux-i386-32
> > 09/12/21 12:02:43 INFO zookeeper.ZooKeeper: Client
> > environment:java.io.tmpdir=/tmp
> > 09/12/21 12:02:43 INFO zookeeper.ZooKeeper: Client
> > environment:java.compiler=<NA>
> > 09/12/21 12:02:43 INFO zookeeper.ZooKeeper: Client environment:os.name
> > =Linux
> > 09/12/21 12:02:43 INFO zookeeper.ZooKeeper: Client
> environment:os.arch=i386
> > 09/12/21 12:02:43 INFO zookeeper.ZooKeeper: Client
> > environment:os.version=2.6.27-11-server
> > 09/12/21 12:02:43 INFO zookeeper.ZooKeeper: Client environment:user.name
> > =hadoop
> > 09/12/21 12:02:43 INFO zookeeper.ZooKeeper: Client
> > environment:user.home=/home/hadoop
> > 09/12/21 12:02:43 INFO zookeeper.ZooKeeper: Client
> > environment:user.dir=/home/hadoop/hbase/build/bin
> > 09/12/21 12:02:43 INFO zookeeper.ZooKeeper: Initiating client connection,
> > connectString=localhost:2181 sessionTimeout=60000
> >
> watcher=org.apache.hadoop.hbase.client.HConnectionManager$ClientZKWatcher@d6a05e
> > 09/12/21 12:02:43 INFO zookeeper.ClientCnxn:
> > zookeeper.disableAutoWatchReset is false
> > 09/12/21 12:02:43 INFO zookeeper.ClientCnxn: Attempting connection to
> > server localhost/127.0.0.1:2181
> > 09/12/21 12:02:43 INFO zookeeper.ClientCnxn: Priming connection to
> > java.nio.channels.SocketChannel[connected local=/127.0.0.1:42072
> remote=localhost/
> > 127.0.0.1:2181]
> > 09/12/21 12:02:43 INFO zookeeper.ClientCnxn: Server connection successful
> > Exception in thread "main"
> org.apache.thrift.transport.TTransportException:
> > Could not create ServerSocket on address 0.0.0.0/0.0.0.0:9090.
> >        at
> > org.apache.thrift.transport.TServerSocket.<init>(TServerSocket.java:98)
> >        at
> > org.apache.thrift.transport.TServerSocket.<init>(TServerSocket.java:79)
> >        at
> > org.apache.thrift.transport.TServerSocket.<init>(TServerSocket.java:72)
> >        at
> > org.apache.hadoop.hbase.thrift.ThriftServer.doMain(ThriftServer.java:756)
> >        at
> > org.apache.hadoop.hbase.thrift.ThriftServer.main(ThriftServer.java:768)
> >
> >
> >
> >
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message