I guess the hive-site.xml file wasn't on Kylin's classpath, so it failed to
connect with the right hive metadata. You can copy hive-site.xml to
$KYLIN_HOME/conf folder, restart the server and then try again;

在 2016年12月23日 下午4:32,35925138 <[email protected]>写道:

> 有什么解决问题的思路吗?
>
>
>
>
>
> ------------------ 原始邮件 ------------------
> 发件人: "Li Yang";<[email protected]>;
> 发送时间: 2016年12月22日(星期四) 晚上9:25
> 收件人: "dev"<[email protected]>;
>
> 主题: Re: can not get hive table
>
>
>
> 这是环境问题,外人只能靠猜的。我猜可能多套hive配置在环境里搞混了。
>
> 2016-12-22 10:58 GMT+08:00 35925138 <[email protected]>:
>
> > 这个和是不是default数据库还有关系吗?
> >
> >
> >
> >
> > ------------------ 原始邮件 ------------------
> > 发件人: "35925138";<[email protected]>;
> > 发送时间: 2016年12月22日(星期四) 上午10:33
> > 收件人: "dev"<[email protected]>;
> >
> > 主题: 回复: can not get hive table
> >
> >
> >
> > 是的,在default数据库
> >
> >
> >
> >
> >
> > ------------------ 原始邮件 ------------------
> > 发件人: "Cheng Wang";<[email protected]>;
> > 发送时间: 2016年12月22日(星期四) 上午10:22
> > 收件人: "[email protected]"<[email protected]>;
> >
> > 主题: Re: can not get hive table
> >
> >
> >
> > 在hive客户端看一下表是不是在default数据库,还是其他数据库。
> >
> > On 12/22/16, 10:04 AM, "35925138" <[email protected]> wrote:
> >
> > 我用hive客户端可以看到main_stu_action表,数据也都正常,使用hcatalog,客户端运行命令也能够查找到这个表,
> > 可在kylin中要添加表的时候,就是失败,查看日志,报如下错误,请帮忙看看,我是哪里错误了。
> >
> >
> > Caused by: NoSuchObjectException(message:default.main_stu_action table
> > not found)
> >         at org.apache.hadoop.hive.metastore.HiveMetaStore$
> > HMSHandler.get_table_core(HiveMetaStore.java:1808)
> >         at org.apache.hadoop.hive.metastore.HiveMetaStore$
> > HMSHandler.get_table(HiveMetaStore.java:1778)
> >         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> >         at sun.reflect.NativeMethodAccessorImpl.invoke(
> > NativeMethodAccessorImpl.java:62)
> >         at sun.reflect.DelegatingMethodAccessorImpl.invoke(
> > DelegatingMethodAccessorImpl.java:43)
> >         at java.lang.reflect.Method.invoke(Method.java:498)
> >         at org.apache.hadoop.hive.metastore.RetryingHMSHandler.
> > invoke(RetryingHMSHandler.java:107)
> >         at com.sun.proxy.$Proxy48.get_table(Unknown Source)
> >         at org.apache.hadoop.hive.metastore.HiveMetaStoreClient.
> > getTable(HiveMetaStoreClient.java:1208)
> >         at org.apache.kylin.source.hive.CLIHiveClient.getHiveTableMeta(
> > CLIHiveClient.java:79)
> >         at org.apache.kylin.source.hive.HiveSourceTableLoader.
> > extractHiveTables(HiveSourceTableLoader.java:93)
> >
>



-- 
Best regards,

Shaofeng Shi 史少锋

Reply via email to