Hi, In your mapping file you have correctly defined one table as such <table name="Pageview"> <!-- optional descriptors for tables --> <family name="common"/> <!-- This can also have params like compression, bloom filters --> <family name="http"/> <family name="misc"/> </table>
However this maps to none of your field declarations. <class name="org.apache.gora.tutorial.log.generated.Pageview" keyClass="java.lang.Long" table="AccessLog"> <class name="com.ibm.hrl.gora.urlDb.generated.CrawlUrl" keyClass="java.lang.String" table="CrawlDB"> <class name="org.apache.gora.tutorial.log.generated.MetricDatum" keyClass="java.lang.String" table="Metrics"> The table="$value" attribute needs to match a table element defined above. Does this make sense? Thanks Lewis On Sun, Aug 25, 2013 at 8:09 AM, Sznajder ForMailingList < [email protected]> wrote: > Sure! > > Thanks a lot! > > The mapping file is attached here > > > > > On Sun, Aug 25, 2013 at 5:57 PM, Renato Marroquín Mogrovejo < > [email protected]> wrote: > >> 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 >>> >>> >> > -- *Lewis*

