Hello Amir Akhmedov,

Thanks for reporting. Seems we should fix default setup not use
/user/hive/warehouse as the warehouse directory. Can you try setting
warehouse directory to some thing that you have access to?

You can add the following property in lens-site.xml to set warehouse
directory and try.

  <property>

    <name>hive.metastore.warehouse.dir</name>

    <value>/tmp/hive/warehouse</value>

  </property>

Thanks

Amareshwari

On Thu, Apr 2, 2015 at 12:27 AM, Amir Akhmedov <[email protected]>
wrote:

> Hi all,
>
> I'm trying to play with Lens and as the first step decided to run
> examples. I started Lens server and it started, heartbeat also looks good.
> But when I run following command
>
> bin/run-examples.sh sample-metastore --conf conf
>
> it fails with error:
>
> Creating storage from:local-storage.xml failed,
> reason:org.apache.hadoop.hive.ql.metadata.HiveException: Exception creating
> table
>
> In lensserver.log I see the next exception:
>
> 01 Apr 2015 22:36:28,373 [Grizzly-worker(2)] ERROR
> org.apache.hadoop.hive.metastore.RetryingHMSHandler  -
> MetaException(message:file:/user/hive/warehouse/local is not a directory or
> unable to create one)
>     at
> org.apache.hadoop.hive.metastore.HiveMetaStore$HMSHandler.create_table_core(HiveMetaStore.java:1240)
>     at
> org.apache.hadoop.hive.metastore.HiveMetaStore$HMSHandler.create_table_with_environment_context(HiveMetaStore.java:1295)
>     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>     at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>     at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>     at java.lang.reflect.Method.invoke(Method.java:606)
>     at
> org.apache.hadoop.hive.metastore.RetryingHMSHandler.invoke(RetryingHMSHandler.java:105)
>     at
> com.sun.proxy.$Proxy12.create_table_with_environment_context(Unknown Source)
>     at
> org.apache.hadoop.hive.metastore.HiveMetaStoreClient.createTable(HiveMetaStoreClient.java:558)
>     at
> org.apache.hadoop.hive.metastore.HiveMetaStoreClient.createTable(HiveMetaStoreClient.java:547)
>     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>     at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>     at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>     at java.lang.reflect.Method.invoke(Method.java:606)
>     at
> org.apache.hadoop.hive.metastore.RetryingMetaStoreClient.invoke(RetryingMetaStoreClient.java:89)
>     at com.sun.proxy.$Proxy13.createTable(Unknown Source)
>     at org.apache.hadoop.hive.ql.metadata.Hive.createTable(Hive.java:613)
>     at org.apache.hadoop.hive.ql.metadata.Hive.createTable(Hive.java:576)
>     at
> org.apache.lens.cube.metadata.CubeMetastoreClient.createCubeHiveTable(CubeMetastoreClient.java:400)
>     at
> org.apache.lens.cube.metadata.CubeMetastoreClient.createStorage(CubeMetastoreClient.java:410)
>     at
> org.apache.lens.server.metastore.CubeMetastoreServiceImpl.createStorage(CubeMetastoreServiceImpl.java:948)
>     at
> org.apache.lens.server.metastore.MetastoreResource.createNewStorage(MetastoreResource.java:456)
>     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>     at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>     at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>     at java.lang.reflect.Method.invoke(Method.java:606)
>     at
> org.glassfish.jersey.server.model.internal.ResourceMethodInvocationHandlerFactory$1.invoke(ResourceMethodInvocationHandlerFactory.java:81)
>     at
> org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher$1.run(AbstractJavaResourceMethodDispatcher.java:151)
>     at
> org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.invoke(AbstractJavaResourceMethodDispatcher.java:171)
>     at
> org.glassfish.jersey.server.model.internal.JavaResourceMethodDispatcherProvider$TypeOutInvoker.doDispatch(JavaResourceMethodDispatcherProvider.java:195)
>     at
> org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.dispatch(AbstractJavaResourceMethodDispatcher.java:104)
>     at
> org.glassfish.jersey.server.model.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:353)
>     at
> org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:343)
>     at
> org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:102)
>     at
> org.glassfish.jersey.server.ServerRuntime$1.run(ServerRuntime.java:255)
>     at org.glassfish.jersey.internal.Errors$1.call(Errors.java:271)
>     at org.glassfish.jersey.internal.Errors$1.call(Errors.java:267)
>     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:267)
>     at
> org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:318)
>     at
> org.glassfish.jersey.server.ServerRuntime.process(ServerRuntime.java:235)
>     at
> org.glassfish.jersey.server.ApplicationHandler.handle(ApplicationHandler.java:983)
>     at
> org.glassfish.jersey.grizzly2.httpserver.GrizzlyHttpContainer.service(GrizzlyHttpContainer.java:330)
>     at
> org.glassfish.grizzly.http.server.HttpHandler$1.run(HttpHandler.java:212)
>     at
> org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:565)
>     at
> org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:545)
>     at java.lang.Thread.run(Thread.java:745)
>
> Any ideas what is going wrong? Any help is appreciated.
>
> --
> Sincerely Yours Amir Akhmedov
>

Reply via email to