RE: Cube creation failed.
Hi Puneet, I can even see the exception after enabling the debug mode. Thanks for ur help. Caused by: org.xml.sax.SAXParseException: cvc-complex-type.2.4.a: Invalid content was found starting with element 'dim_attributes'. One of '{"uri:lens:cube:0.1":properties, "uri:lens:cube:0.1":measures}' is expected. Regards Pawan Malwal From: Puneet Gupta [mailto:puneet.gu...@inmobi.com] Sent: 19 September 2016 16:42 To: user@lens.apache.org Cc: Sharanabasappa G Keriwaddi Subject: Re: Cube creation failed. Hi Pawan Looks like the error is on client side . Lens client is not able to parse the XML file ( the line before looks redundant ) You can enable logs on lens-cli by just typing "debug" on the shell to get more details of client side errors. Also you can refer to "lens-api/src/main/resources/cube-0.1.xsd" for schema definition. Regards, Puneet Gupta On Sat, Sep 17, 2016 at 5:58 PM, Pawan Malwal mailto:pawan.mal...@huawei.com>> wrote: Hi Lens Developers, I am trying to create a cube through Lens CLI. For some reason it is failing and I do not see any log message logged in the lensserver.log. Any clue what could be the reason and where can I get the logs for the same.? Do we have any document or link on creating cubes. I see some examples but I am finding it difficult to create it. I see there are many things we can have in a cube xml file but not sure if there are some mandatory tags or something? lens-shell>! grep -A http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="uri:lens:cube:0.1 cube-0.1.xsd "> lens-shell>create cube examples/resources/telecom/cdr-cube.xml failed Regards Pawan Malwal _ The information contained in this communication is intended solely for the use of the individual or entity to whom it is addressed and others authorized to receive it. It may contain confidential or legally privileged information. If you are not the intended recipient you are hereby notified that any disclosure, copying, distribution or taking any action in reliance on the contents of this information is strictly prohibited and may be unlawful. If you have received this communication in error, please notify us immediately by responding to this email and then delete it from your system. The firm is neither liable for the proper and complete transmission of the information contained in this communication nor for any delay in its receipt.
RE: Cube creation failed.
Hi Puneet, Yes tag was redundant but the actual problem was missing tag. I got the cube created after adding measure tag. It is the mandatory tag for creating cube I guess. And if this is the case, I was wondering if we can have a check on such mandatory tags while reading tags from xml file for creating cube or other lens entities else it would teadious for a newbie to figure out such dependencies. lens-shell>! grep -A http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="uri:lens:cube:0.1 cube-0.1.xsd "> lens-shell>create cube examples/resources/telecom/temp.xml failed -- Added tag. lens-shell>! grep -A http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="uri:lens:cube:0.1 cube-0.1.xsd "> lens-shell>create cube examples/resources/telecom/temp.xml succeeded Thanks Pawan Malwal From: Puneet Gupta [mailto:puneet.gu...@inmobi.com] Sent: 19 September 2016 16:42 To: user@lens.apache.org Cc: Sharanabasappa G Keriwaddi Subject: Re: Cube creation failed. Hi Pawan Looks like the error is on client side . Lens client is not able to parse the XML file ( the line before looks redundant ) You can enable logs on lens-cli by just typing "debug" on the shell to get more details of client side errors. Also you can refer to "lens-api/src/main/resources/cube-0.1.xsd" for schema definition. Regards, Puneet Gupta On Sat, Sep 17, 2016 at 5:58 PM, Pawan Malwal mailto:pawan.mal...@huawei.com>> wrote: Hi Lens Developers, I am trying to create a cube through Lens CLI. For some reason it is failing and I do not see any log message logged in the lensserver.log. Any clue what could be the reason and where can I get the logs for the same.? Do we have any document or link on creating cubes. I see some examples but I am finding it difficult to create it. I see there are many things we can have in a cube xml file but not sure if there are some mandatory tags or something? lens-shell>! grep -A http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="uri:lens:cube:0.1 cube-0.1.xsd "> lens-shell>create cube examples/resources/telecom/cdr-cube.xml failed Regards Pawan Malwal _ The information contained in this communication is intended solely for the use of the individual or entity to whom it is addressed and others authorized to receive it. It may contain confidential or legally privileged information. If you are not the intended recipient you are hereby notified that any disclosure, copying, distribution or taking any action in reliance on the contents of this information is strictly prohibited and may be unlawful. If you have received this communication in error, please notify us immediately by responding to this email and then delete it from your system. The firm is neither liable for the proper and complete transmission of the information contained in this communication nor for any delay in its receipt.
Re: Cube creation failed.
Hi Pawan Looks like the error is on client side . Lens client is not able to parse the XML file ( the line before looks redundant ) You can enable logs on lens-cli by just typing "debug" on the shell to get more details of client side errors. Also you can refer to "lens-api/src/main/resources/cube-0.1.xsd" for schema definition. Regards, Puneet Gupta On Sat, Sep 17, 2016 at 5:58 PM, Pawan Malwal wrote: > Hi Lens Developers, > > > > I am trying to create a cube through Lens CLI. For some reason it is > failing and I do not see any log message logged in the lensserver.log. Any > clue what could be the reason and where can I get the logs for the same.? > > > > Do we have any document or link on creating cubes. I see some examples but > I am finding it difficult to create it. I see there are many things we can > have in a cube xml file but not sure if there are some mandatory tags or > something? > > > > lens-shell>! grep -A > command is:grep -A > http://www.w3.org/2001/XMLSchema-instance"; > > xsi:schemaLocation="uri:lens:cube:0.1 cube-0.1.xsd "> > > > > > > > > > > > > > > > > > > > > > > > > > > > > display_string="Duration(Min.)"> > > > > > > > > > > > > > > lens-shell>create cube examples/resources/telecom/cdr-cube.xml > > failed > > > > Regards > > Pawan Malwal > -- _ The information contained in this communication is intended solely for the use of the individual or entity to whom it is addressed and others authorized to receive it. It may contain confidential or legally privileged information. If you are not the intended recipient you are hereby notified that any disclosure, copying, distribution or taking any action in reliance on the contents of this information is strictly prohibited and may be unlawful. If you have received this communication in error, please notify us immediately by responding to this email and then delete it from your system. The firm is neither liable for the proper and complete transmission of the information contained in this communication nor for any delay in its receipt.