[
https://issues.apache.org/jira/browse/KYLIN-2439?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15859171#comment-15859171
]
xufan edited comment on KYLIN-2439 at 2/9/17 10:33 AM:
-------------------------------------------------------
i don't care streaming resource,i only want to adding table by rest api,is
there any api for this!
by the way, /streaming api exists same error, calling syncTableToProject should
use table's identity but used talbes's name
was (Author: mu.xufan):
i don't care streaming resource,i only want to adding table by rest api,is
there any api for this!
> add table use rest api
> ----------------------
>
> Key: KYLIN-2439
> URL: https://issues.apache.org/jira/browse/KYLIN-2439
> Project: Kylin
> Issue Type: Bug
> Components: REST Service
> Affects Versions: v1.5.1
> Reporter: xufan
> Assignee: Zhong,Jason
> Fix For: v1.5.1
>
>
> when i add table use rest api /tables/addStreamingSrc, an exception found in
> server:
> java.lang.IllegalStateException: Cannot find table 'null' in metadata manager
> at
> org.apache.kylin.metadata.project.ProjectManager.addTableDescToProject(ProjectManager.java:284)
> at
> org.apache.kylin.rest.service.CubeService.syncTableToProject(CubeService.java:580)
> i think this code in TableController::addStreamingTable maybe wrong
> cubeMgmtService.syncTableToProject(new String[]{desc.getName()}, project);
> it should be :
> cubeMgmtService.syncTableToProject(new String[]{desc.getIdentity()},
> project);
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)