Hi Benjamin,

While looking at your log, it says " java.lang.IllegalStateException:
tableName is not specified " you might be missing some information in your
mapping files.
Would you like to share them with us so we can help you out?


Renato M.


2013/8/25 Sznajder ForMailingList <[email protected]>

> Hi,
>
> I tried the following :
>
> My aim was to run the LogManager class (I copied gora-tutorial)   in my
> own project.
> In addition, I want to run it when Gora is defined on HBASE.
>
> For this purpose, I copied the LogManager class to my project. I added the
> different jars to the classpath and in addition, I added at first line in
> the classpath a conf/ directory containing two files:
> - gora.properties
> - gora-hbase.mapping.xml
> (I attach the two files here)
>
> However, when running the program, I get the following error:
>
> Thank you for your help!
>
> Benjamin
>
>
>
> 13/08/25 17:44:00 INFO zookeeper.ZooKeeper: Initiating client connection,
> connectString=localhost:2181 sessionTimeout=180000 watcher=hconnection
> 13/08/25 17:44:00 INFO zookeeper.ClientCnxn: Opening socket connection to
> server localhost/127.0.0.1:2181
> 13/08/25 17:44:00 INFO zookeeper.ClientCnxn: Socket connection established
> to localhost/127.0.0.1:2181, initiating session
> 13/08/25 17:44:00 INFO zookeeper.ClientCnxn: Session establishment
> complete on server localhost/127.0.0.1:2181, sessionid =
> 0x1407cacf0da001b, negotiated timeout = 40000
> Exception in thread "main" java.lang.RuntimeException:
> org.apache.gora.util.GoraException: java.lang.RuntimeException:
> java.lang.IllegalStateException: tableName is not specified
>     at com.ibm.hrl.gora.logmanager.LogManager.<init>(LogManager.java:68)
>     at com.ibm.hrl.gora.logmanager.LogManager.main(LogManager.java:245)
> Caused by: org.apache.gora.util.GoraException: java.lang.RuntimeException:
> java.lang.IllegalStateException: tableName is not specified
>     at
> org.apache.gora.store.DataStoreFactory.createDataStore(DataStoreFactory.java:167)
>     at
> org.apache.gora.store.DataStoreFactory.getDataStore(DataStoreFactory.java:278)
>     at com.ibm.hrl.gora.logmanager.LogManager.init(LogManager.java:77)
>     at com.ibm.hrl.gora.logmanager.LogManager.<init>(LogManager.java:66)
>     ... 1 more
> Caused by: java.lang.RuntimeException: java.lang.IllegalStateException:
> tableName is not specified
>     at
> org.apache.gora.hbase.store.HBaseStore.initialize(HBaseStore.java:127)
>     at
> org.apache.gora.store.DataStoreFactory.initializeDataStore(DataStoreFactory.java:102)
>     at
> org.apache.gora.store.DataStoreFactory.createDataStore(DataStoreFactory.java:161)
>     ... 4 more
> Caused by: java.lang.IllegalStateException: tableName is not specified
>     at
> org.apache.gora.hbase.store.HBaseMapping$HBaseMappingBuilder.build(HBaseMapping.java:166)
>     at
> org.apache.gora.hbase.store.HBaseStore.readMapping(HBaseStore.java:665)
>     at
> org.apache.gora.hbase.store.HBaseStore.initialize(HBaseStore.java:110)
>     ... 6 more
>
>

Reply via email to