|
This post was updated on .
CONTENTS DELETED
The author has deleted this message.
|
|
What happens if you put up a shell on your hbase instance and do the
same thing? Does it succeed? St.Ack On Sun, Nov 25, 2012 at 11:45 PM, shyam kumar <[hidden email]> wrote: > HI > > I am unable to create a Table in hbase dynamically > am using the following code > > if (!TABLE_EXISTS) { > try{ > *admin.createTable(htable);* > }catch(Exception e){ > e.printStackTrace(); > } > TABLE_EXISTS = true; > } > > But the process is not terminating and the table is not created in the > hbase. > No exception is thrown. but the process is not terminating. > > > > > -- > View this message in context: http://apache-hbase.679495.n3.nabble.com/Unable-to-Create-Table-in-Hbase-tp4034375.html > Sent from the HBase User mailing list archive at Nabble.com. |
|
Check out your logs too...
On Mon, Nov 26, 2012 at 11:01 PM, Stack <[hidden email]> wrote: > What happens if you put up a shell on your hbase instance and do the > same thing? Does it succeed? > St.Ack > > On Sun, Nov 25, 2012 at 11:45 PM, shyam kumar <[hidden email]> > wrote: > > HI > > > > I am unable to create a Table in hbase dynamically > > am using the following code > > > > if (!TABLE_EXISTS) { > > try{ > > *admin.createTable(htable);* > > }catch(Exception e){ > > e.printStackTrace(); > > } > > TABLE_EXISTS = true; > > } > > > > But the process is not terminating and the table is not created in the > > hbase. > > No exception is thrown. but the process is not terminating. > > > > > > > > > > -- > > View this message in context: > http://apache-hbase.679495.n3.nabble.com/Unable-to-Create-Table-in-Hbase-tp4034375.html > > Sent from the HBase User mailing list archive at Nabble.com. > |
|
In reply to this post by stack-3
Hi Shyam,
Are you sure your table is created? If you do a "list" on the shell, you can see it? Can you see it on the html gui? JM 2012/11/27, shyam kumar <[hidden email]>: > There is no exception or warnings in the log and the console prints the > following > > 12/11/27 11:03:42 INFO zookeeper.ZooKeeper: Client > environment:zookeeper.version=3.4.3-1240972, built on 02/06/2012 10:48 GMT > 12/11/27 11:03:42 INFO zookeeper.ZooKeeper: Client > environment:host.name=localhost > 12/11/27 11:03:42 INFO zookeeper.ZooKeeper: Client > environment:java.version=1.7.0_09 > 12/11/27 11:03:42 INFO zookeeper.ZooKeeper: Client > environment:java.vendor=Oracle Corporation > 12/11/27 11:03:42 INFO zookeeper.ZooKeeper: Client > environment:java.home=/home/shyam/jdk1.7.0_09/jre > 12/11/27 11:03:42 INFO zookeeper.ZooKeeper: Client > environment:java.class.path=lib/setooz-ir-core.jar:lib/guava-12.0.jar:lib/carrot2-core-3.7.0-SNAPSHOT.jar:lib/commons-codec-1.4.jar:lib/commons-configuration-1.7.jar:lib/hadoop-core-1.0.2.jar:lib/tika-app-1.0.jar:lib/httpclient-4.0.3.jar:lib/ezmorph.jar:lib/geoip.jar:lib/xercesImpl.jar:lib/attributes-binder-1.0.1.jar:lib/jackson-core-asl-1.7.4.jar:lib/veooz-analysis.jar:lib/log4j-1.2.17.jar:lib/maxent-3.0.0.jar:lib/liblinear-1.7.jar:lib/semantifire-1.0.jar:lib/ritaWN.jar:lib/slf4j-log4j12-1.6.1.jar:lib/commons-logging-1.1.1.jar:lib/slf4j-api-1.6.1.jar:lib/bzip2.jar:lib/langdetect.jar:lib/mahout-math-0.6.jar:lib/zookeeper-3.4.3.jar:lib/commons-lang-2.5.jar:lib/wikixmlj-r43.jar:lib/commons-collections-3.1.jar:lib/hppc-0.4.1.jar:lib/mahout-collections-1.0.jar:lib/jackson-mapper-asl-1.7.4.jar:lib/supportWN.jar:lib/simple-xml-2.6.4.jar:lib/commons-beanutils-1.7.jar:lib/opennlp-tools-1.5.0.jar:lib/setooz-core-3.5-SNAPSHOT.jar:lib/json-lib-2.4-jdk15.jar:lib/gson-2.2.2.jar:lib/jsoup-1.6.0.jar:lib/jsonic-1.2.4.jar:lib/lucene-analyzers-3.6.0.jar:lib/hbase-0.92.1.jar:lib/xml-apis.jar:conf/:dist/Veooz-Core.jar:. > 12/11/27 11:03:42 INFO zookeeper.ZooKeeper: Client > environment:java.library.path=/usr/java/packages/lib/i386:/lib:/usr/lib > 12/11/27 11:03:42 INFO zookeeper.ZooKeeper: Client > environment:java.io.tmpdir=/tmp > 12/11/27 11:03:42 INFO zookeeper.ZooKeeper: Client > environment:java.compiler=<NA> > 12/11/27 11:03:42 INFO zookeeper.ZooKeeper: Client > environment:os.name=Linux > 12/11/27 11:03:42 INFO zookeeper.ZooKeeper: Client environment:os.arch=i386 > 12/11/27 11:03:42 INFO zookeeper.ZooKeeper: Client > environment:os.version=3.2.0-33-generic-pae > 12/11/27 11:03:42 INFO zookeeper.ZooKeeper: Client > environment:user.name=shyam > 12/11/27 11:03:42 INFO zookeeper.ZooKeeper: Client > environment:user.home=/home/shyam > 12/11/27 11:03:42 INFO zookeeper.ZooKeeper: Client > environment:user.dir=/home/shyam/workspace/Veooz/Veooz-Core > 12/11/27 11:03:42 INFO zookeeper.ZooKeeper: Initiating client connection, > connectString=localhost:2181 sessionTimeout=180000 watcher=hconnection > 12/11/27 11:03:42 INFO zookeeper.ClientCnxn: Opening socket connection to > server /127.0.0.1:2181 > 12/11/27 11:03:42 INFO client.ZooKeeperSaslClient: Client will not > SASL-authenticate because the default JAAS configuration section 'Client' > could not be found. If you are not using SASL, you may ignore this. On the > other hand, if you expected SASL to work, please fix your JAAS > configuration. > 12/11/27 11:03:42 INFO zookeeper.RecoverableZooKeeper: The identifier of > this process is 6296@setu-M68MT-S2 > 12/11/27 11:03:42 INFO zookeeper.ClientCnxn: Socket connection established > to localhost/127.0.0.1:2181, initiating session > 12/11/27 11:03:42 INFO zookeeper.ClientCnxn: Session establishment complete > on server localhost/127.0.0.1:2181, sessionid = 0x13b405aac590004, > negotiated timeout = 40000 > 12/11/27 11:03:42 INFO zookeeper.ZooKeeper: Initiating client connection, > connectString=localhost:2181 sessionTimeout=180000 > watcher=catalogtracker-on-org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation@16f77b6 > 12/11/27 11:03:42 INFO zookeeper.ClientCnxn: Opening socket connection to > server /127.0.0.1:2181 > 12/11/27 11:03:42 INFO client.ZooKeeperSaslClient: Client will not > SASL-authenticate because the default JAAS configuration section 'Client' > could not be found. If you are not using SASL, you may ignore this. On the > other hand, if you expected SASL to work, please fix your JAAS > configuration. > 12/11/27 11:03:42 INFO zookeeper.ClientCnxn: Socket connection established > to localhost/127.0.0.1:2181, initiating session > 12/11/27 11:03:42 INFO zookeeper.RecoverableZooKeeper: The identifier of > this process is 6296@setu-M68MT-S2 > 12/11/27 11:03:42 INFO zookeeper.ClientCnxn: Session establishment complete > on server localhost/127.0.0.1:2181, sessionid = 0x13b405aac590005, > negotiated timeout = 40000 > 12/11/27 11:03:42 INFO zookeeper.ClientCnxn: EventThread shut down > 12/11/27 11:03:42 INFO zookeeper.ZooKeeper: Session: 0x13b405aac590005 > closed > Creating HBase Table: Posts > > > > and finally the process is not terminating ... it is staying at this line > only after one hour the process is endeded with the following error > > ERROR: org.apache.hadoop.hbase.client.NoServerForRegionException: No server > address listed in .META. for region > Posts,,1353990723936.b182a37f65e326c9b8cb1e33c2d53365. > > thank you > > Shyam kumar > > > > -- > View this message in context: > http://apache-hbase.679495.n3.nabble.com/Unable-to-Create-Table-in-Hbase-tp4034375p4034433.html > Sent from the HBase User mailing list archive at Nabble.com. > |
|
This post was updated on .
CONTENTS DELETED
The author has deleted this message.
|
|
Can you paste the master logs and RS logs.. am sure that there should have
been some errors in them.. That is why it is not able to locate the META Regards Ram On Tue, Nov 27, 2012 at 7:51 PM, shyam kumar <[hidden email]>wrote: > HI, > > Ya am able to see the table and table description in hbase shell > (list 'table_name' and describe 'table_name') > > but am unable to perform scan 'table_name' as i told earlier > > > > -- > View this message in context: > http://apache-hbase.679495.n3.nabble.com/Unable-to-Create-Table-in-Hbase-tp4034375p4034443.html > Sent from the HBase User mailing list archive at Nabble.com. > |
| Powered by Nabble | Edit this page |
