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.

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 <sha...@huawei.com>
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   </dim_attributes>  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 

Puneet Gupta

On Sat, Sep 17, 2016 at 5:58 PM, Pawan Malwal 
<pawan.mal...@huawei.com<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 33333333 <x_ examples/resources/telecom/cdr-cube.xml
command is:grep -A 33333333 <x_ examples/resources/telecom/cdr-cube.xml
<x_base_cube name="cdr_cube" xmlns="uri:lens:cube:0.1" 
  xsi:schemaLocation="uri:lens:cube:0.1 cube-0.1.xsd ">
    <measure name="SUM_DURATION" _type="INT" default_aggr="SUM"/>
    <dim_attribute name="SUBSCRIBER_ID" _type="INT"/>
    <dim_attribute name="RECORD_TYPE" _type="STRING"/>
    <dim_attribute name="A_NUMBER" _type="STRING"/>
    <dim_attribute name="B_NUMBER" _type="STRING"/>
   <dim_attribute name="DURATION" _type="INT"/>
    <dim_attribute name="TIME_STAMP" _type="TIMESTAMP"/>
    <expression name="DURATION_MIN" _type="FLOAT" 
      <expr_spec expr = "DURATION / 60" />

lens-shell>create cube examples/resources/telecom/cdr-cube.xml

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.

Reply via email to