[jira] [Commented] (KYLIN-2439) add table use rest api
[ https://issues.apache.org/jira/browse/KYLIN-2439?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15859098#comment-15859098 ] Billy Liu commented on KYLIN-2439: -- The addStreamingSrc API is no longer available. For creating streaming source, please checkout POST to /streaming/ > 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)
[jira] [Commented] (KYLIN-2439) add table use rest api
[ https://issues.apache.org/jira/browse/KYLIN-2439?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15859171#comment-15859171 ] xufan commented on KYLIN-2439: -- 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)
[jira] [Commented] (KYLIN-2439) add table use rest api
[ https://issues.apache.org/jira/browse/KYLIN-2439?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15859226#comment-15859226 ] Billy Liu commented on KYLIN-2439: -- http://kylin.apache.org/docs16/howto/howto_use_restapi.html#load-hive-tables > 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)
[jira] [Commented] (KYLIN-2439) add table use rest api
[ https://issues.apache.org/jira/browse/KYLIN-2439?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15859232#comment-15859232 ] xufan commented on KYLIN-2439: -- thanks, i know this api,but it can not fit for me. my hive tables use cvs SERDE, all the columns type is string, so i redefine the column type in kylin before, i upload all resource use ResourceTool and rebuild|query use rest api the problem is that using upload need hbase env, now my program maybe run only in java env but the project is created dynamicly, so is there any way to load all resouce using rest api? > 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)
[jira] [Commented] (KYLIN-2439) add table use rest api
[ https://issues.apache.org/jira/browse/KYLIN-2439?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15859245#comment-15859245 ] Billy Liu commented on KYLIN-2439: -- The better is to define new Hive view with right column type, and reload into Kylin. > 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)
[jira] [Commented] (KYLIN-2439) add table use rest api
[ https://issues.apache.org/jira/browse/KYLIN-2439?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15859340#comment-15859340 ] Billy Liu commented on KYLIN-2439: -- Could you identify the code line number?Any patch is welcomed. > 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)
[jira] [Commented] (KYLIN-2439) add table use rest api
[ https://issues.apache.org/jira/browse/KYLIN-2439?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15859346#comment-15859346 ] xufan commented on KYLIN-2439: -- line 112 in org/apache/kylin/rest/controller/StreamingController.java cubeMgmtService.syncTableToProject(new String[]{tableDesc.getName()}, project); > 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)
[jira] [Commented] (KYLIN-2439) add table use rest api
[ https://issues.apache.org/jira/browse/KYLIN-2439?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15859425#comment-15859425 ] Billy Liu commented on KYLIN-2439: -- The issue has been fixed at https://issues.apache.org/jira/browse/KYLIN-1660 by commit: https://github.com/apache/kylin/commit/3542dd29147ed20a409c84212235dc6c3c5f0ad9 > 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)