Just to confirm, you have to do sample-metastore before and populate-metastore after.
Given that, server logs would be more helpful for debugging. Just posting a quick reply before I try to reproduce the issue. On Tue, Apr 28, 2015 at 11:57 PM Yash Sharma <[email protected]> wrote: > Hi All, > I am stumbling upon this error while trying out the examples on Lens. I > might be missing out something trivial - Hope if I can get any tips here. > > Env Details: > (Ubuntu 14.04.2 LTS, Apache Maven 3.2.5, Java version: 1.7.0_75) > > Thanks > > Adding the error messages and Logs below: > > -------------------------------------------------------------- > yash@yash client $./bin/run-examples.sh populate-metastore > Adding partition from:dim1-local-part.xml failed > Adding partition from:dim2-local-part.xml failed > Adding partition from:dim4-local-part.xml failed > Created DB storages for dim_table3 and dim_table4 > Exception in thread "main" javax.ws.rs.NotFoundException: HTTP 404 Not > Found > at > > org.glassfish.jersey.client.JerseyInvocation.convertToException(JerseyInvocation.java:913) > at > > org.glassfish.jersey.client.JerseyInvocation.translate(JerseyInvocation.java:770) > at > > org.glassfish.jersey.client.JerseyInvocation.access$500(JerseyInvocation.java:90) > at > > org.glassfish.jersey.client.JerseyInvocation$2.call(JerseyInvocation.java:671) > at org.glassfish.jersey.internal.Errors.process(Errors.java:315) > at org.glassfish.jersey.internal.Errors.process(Errors.java:297) > at org.glassfish.jersey.internal.Errors.process(Errors.java:228) > at > > org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:422) > at > > org.glassfish.jersey.client.JerseyInvocation.invoke(JerseyInvocation.java:667) > at > > org.glassfish.jersey.client.JerseyInvocation$Builder.method(JerseyInvocation.java:423) > at > > org.glassfish.jersey.client.JerseyInvocation$Builder.post(JerseyInvocation.java:326) > at > > org.apache.lens.client.LensMetadataClient.addPartitionToFactTable(LensMetadataClient.java:842) > at > > org.apache.lens.examples.PopulateSampleMetastore.createFactPartition(PopulateSampleMetastore.java:123) > at > > org.apache.lens.examples.PopulateSampleMetastore.populateFactTables(PopulateSampleMetastore.java:133) > at > > org.apache.lens.examples.PopulateSampleMetastore.populateAll(PopulateSampleMetastore.java:66) > at > > org.apache.lens.examples.PopulateSampleMetastore.main(PopulateSampleMetastore.java:55) > > > ------------------------------------------------------------------------------------ > yash@yash client $./bin/run-examples.sh sample-metastore > Creating storage from:local-storage.xml failed, > reason:org.apache.hadoop.hive.ql.metadata.HiveException: Exception creating > table > Creating storage from:local-cluster-storage.xml failed, > reason:org.apache.hadoop.hive.ql.metadata.HiveException: Exception creating > table > Creating storage from:db-storage.xml failed, > reason:org.apache.hadoop.hive.ql.metadata.HiveException: Exception creating > table > Creating cube from:sample-cube.xml failed, > reason:org.apache.hadoop.hive.ql.metadata.HiveException: Exception creating > table > Creating dimension from:sample-dimension.xml failed, > reason:org.apache.hadoop.hive.ql.metadata.HiveException: Exception creating > table > Creating dimension from:sample-dimension2.xml failed, > reason:org.apache.hadoop.hive.ql.metadata.HiveException: Exception creating > table > Creating dimension from:sample-db-only-dimension.xml failed, > reason:org.apache.hadoop.hive.ql.metadata.HiveException: Exception creating > table > Creating fact table from: fact1.xml failed, > reason:org.apache.hadoop.hive.ql.metadata.HiveException: Exception creating > table > Creating fact table from: fact2.xml failed, > reason:org.apache.hadoop.hive.ql.metadata.HiveException: Exception creating > table > Creating fact table from: rawfact.xml failed, > reason:org.apache.hadoop.hive.ql.metadata.HiveException: Exception creating > table > Creating dim table from: dim_table.xml failed, > reason:org.apache.hadoop.hive.ql.metadata.HiveException: Exception creating > table > Creating dim table from: dim_table2.xml failed, > reason:org.apache.hadoop.hive.ql.metadata.HiveException: Exception creating > table > Creating dim table from: dim_table3.xmlfailed, > reason:org.apache.hadoop.hive.ql.metadata.HiveException: Exception creating > table > Creating dim table from: dim_table4.xml failed, > reason:org.apache.hadoop.hive.ql.metadata.HiveException: Exception creating > table > Created sample metastore! > Database:default > Storages:null > Cubes:null > Dimensions:null > Fact tables:null > Dimension tables:null > > --------------------------------------------- > LOGS: logs/lensclient.log > --------------------------------------------- > 28 Apr 2015 23:17:00,853 [main] INFO hsqldb.db.HSQLDB4D01239D53.ENGINE - > Checkpoint start > 28 Apr 2015 23:17:00,854 [main] INFO hsqldb.db.HSQLDB4D01239D53.ENGINE - > checkpointClose start > 28 Apr 2015 23:17:00,874 [main] INFO hsqldb.db.HSQLDB4D01239D53.ENGINE - > checkpointClose end > 28 Apr 2015 23:17:00,879 [main] INFO hsqldb.db.HSQLDB4D01239D53.ENGINE - > Checkpoint end > 28 Apr 2015 23:17:00,913 [main] INFO hsqldb.db.HSQLDB4D01239D53.ENGINE - > Database closed > 28 Apr 2015 23:17:34,125 [main] INFO hsqldb.db.HSQLDB4D01239D53.ENGINE - > Database closed >
