Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id F368E200D1E for ; Wed, 4 Oct 2017 01:14:46 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id F1F75160BD5; Tue, 3 Oct 2017 23:14:46 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 1BDBB1609DE for ; Wed, 4 Oct 2017 01:14:45 +0200 (CEST) Received: (qmail 74031 invoked by uid 500); 3 Oct 2017 23:14:45 -0000 Mailing-List: contact user-help@kylin.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@kylin.apache.org Delivered-To: mailing list user@kylin.apache.org Received: (qmail 74022 invoked by uid 99); 3 Oct 2017 23:14:45 -0000 Received: from mail-relay.apache.org (HELO mail-relay.apache.org) (140.211.11.15) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Oct 2017 23:14:45 +0000 Received: from mail-oi0-f50.google.com (mail-oi0-f50.google.com [209.85.218.50]) by mail-relay.apache.org (ASF Mail Server at mail-relay.apache.org) with ESMTPSA id A16AF1A0029 for ; Tue, 3 Oct 2017 23:14:44 +0000 (UTC) Received: by mail-oi0-f50.google.com with SMTP id w197so12331583oif.6 for ; Tue, 03 Oct 2017 16:14:44 -0700 (PDT) X-Gm-Message-State: AMCzsaU1awPutePXXtHh0L8IO+Njebsp0hHsexYjYW81E73/bVpx155A Pd2iMaSmNYE7Y08maOGVjUDpqohJn0giI1iIzDU= X-Google-Smtp-Source: AOwi7QBRxMY+TWfHy2q7BmiD4Ag3gizvxhPslPAr1rHn6tsQV8EkbpfUWKZK4s/kcWx7dkB0d5UGmWChN/typnZNB8k= X-Received: by 10.157.66.167 with SMTP id r36mr4604309ote.335.1507072483734; Tue, 03 Oct 2017 16:14:43 -0700 (PDT) MIME-Version: 1.0 Received: by 10.157.38.65 with HTTP; Tue, 3 Oct 2017 16:14:23 -0700 (PDT) In-Reply-To: <59d3991a.c555650a.3dec0.901cSMTPIN_ADDED_BROKEN@mx.google.com> References: <59d37acd.43ac630a.6398a.ae6eSMTPIN_ADDED_BROKEN@mx.google.com> <59d3991a.c555650a.3dec0.901cSMTPIN_ADDED_BROKEN@mx.google.com> From: Billy Liu Date: Wed, 4 Oct 2017 07:44:23 +0830 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: How to merge cube segments with holes? To: user Content-Type: multipart/alternative; boundary="94eb2c1c1da40b3d1b055aaca8c0" archived-at: Tue, 03 Oct 2017 23:14:47 -0000 --94eb2c1c1da40b3d1b055aaca8c0 Content-Type: text/plain; charset="UTF-8" First, the isForceMergeEmptySegment has been deprecated, use isForce instead is OK in your case. Second, the stacktrace shows the error is from the parameter serialization issue, not from the backend code. The error line1 column 15 may indicate the wrong parser in $marge_start_time. Could you replace this variable into the number and try again? 2017-10-03 22:34 GMT+08:30 : > I am using forceMergeEmptySegment parameter for merging empty segments, > can please tell me the parameter for holes between segments.I tried what > you suggested previous, but its giving wrong parameter as error. I am using > the below for merging, > > > > /usr/bin/curl -b /home/hdfs/cookiefile.txt --user ADMIN:KYLIN -X PUT -H > 'Content-Type: application/json' -d '{"startTime":'$marge_start_time', > "endTime":'$merger_end_time',"buildType":"MERGE"," > forceMergeEmptySegment":true,"isForce":true}' http://192.168.1.61:7070/ > kylin/api/cubes/EnvironmentDetailsCube/rebuild. > > > > error as follows, > > > > {"url":"http://10.82.0.17:7070/kylin/api/cubes/CameraAlertCube/rebuild","exception":"Could > not read JSON: Unexpected character (',' (code 44)): expected a valid value > (number, String, array, object, 'true', 'false' or 'null')\n at [Source: > org.apache.catalina.connector.CoyoteInputStream@10255ad; line: 1, column: > 15]; nested exception is com.fasterxml.jackson.core.JsonParseException: > Unexpected character (',' (code 44)): expected a valid value (number, > String, array, object, 'true', 'false' or 'null')\n at [Source: > org.apache.catalina.connector.CoyoteInputStream@10255ad; line: 1, column: > 15]"} > > > > > > Please provide me proper way to do this.. > > > > > > *From:* Billy Liu [mailto:billyliu@apache.org] > *Sent:* Tuesday, October 03, 2017 7:15 PM > *To:* user > *Subject:* Re: How to merge cube segments with holes? > > > > The merge API has one parameter named isForce in JobBuildRequest. Could > you set it to true and try again? > > > > 2017-10-03 20:25 GMT+08:30 : > > Hi all, > > > > Anybody have any idea about how to merge cube segments with hole. if I > tried to merge its giving as, > > > > > > Merging segments must not have holes between CameraAlertCube[20170926120000_20170926154956] > and CameraAlertCube[20170926161959_20170926165002] > > > > > > can you please help me how to solve this problem.... > > > > > > Thanks & Regards, > > Prasanna.P > > > > > --94eb2c1c1da40b3d1b055aaca8c0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
First, the=C2=A0isForceMergeEmptySegment has been deprecated, use is= Force=C2=A0instead is OK in your case.
Second, the stacktrace shows the er= ror is from the parameter serialization issue, not from the backend code. T= he error line1 column 15 may indicate the wrong parser in $marge_start_time= . Could you replace this variable into the number and try again?=C2=A0

201= 7-10-03 22:34 GMT+08:30 <prasanna.p@trinitymobility.com&= gt;:

I am using forceMergeEmpt= ySegment parameter for merging empty segments, can please tell me the parameter for holes between segments.I tri= ed what you suggested previous, but its giving wrong parameter as error. I am using the below for merging,

=C2=A0

/usr/bin/curl -b /home/hd= fs/cookiefile.txt --user ADMIN:KYLIN -X PUT -H 'Content-Type: application/json' -d '{"startTime":'$marge_start_time', "endTime":'$merger_end_time',"buildType":&= quot;MERGE","forceMergeEmptySegment":true,"is= Force":true}' http://192.168.1.61:7070/kylin/api/cubes/EnvironmentDetailsCube/rebuild.

=C2=A0

error as follows,<= u>

=C2=A0

{"url":"http://10.82.0.17:7070/kylin/api/cubes/CameraAler= tCube/rebuild","exception":"Could not read JSON: Unexpected character (',' (code 44)): expected a val= id value (number, String, array, object, 'true', 'false' or 'nul= l')\n at [Source: org.apache.catalina.connector.CoyoteInputStream@10255ad; line: 1, colu= mn: 15]; nested exception is com.fasterxml.jackson.core.JsonParseException: Une= xpected character (',' (code 44)): expected a valid value (number, String, = array, object, 'true', 'false' or 'null')\n at [Source: org.apache.catalina.connector.CoyoteInputStream@10255ad; line: 1, colu= mn: 15]"}

=C2=A0

=C2=A0

Please provide me proper = way to do this..

=C2=A0

=C2=A0

From: Billy Li= u [mailto:billyliu@a= pache.org]
Sent: Tuesday, October 03, 2017 7:15 PM
To: user
Subject: Re: How to merge cube segments with holes?=

=C2=A0

The merge API has one parameter named isForce in=C2= =A0JobBuildRequest. Could you set it to true and try again?

=C2=A0

2017-10-03 20:25 GMT+08:30 <prasanna.p@trinitymobility.<= wbr>com>:

Hi all,

=C2=A0

Anybody have any idea about how to merge cube segments with hole. if I tried to mer= ge its giving as,

=C2=A0

=C2=A0

Merging segments must not = have holes between CameraAlertCube[20170926120000_20170926154956] and CameraAlertCube[20170926161959_20170926165002]

=C2=A0

=C2=A0

can you please help me how to solve this problem....

=C2=A0

=C2=A0

Thanks & Regards,

Prasanna.P

=C2=A0

=C2=A0


--94eb2c1c1da40b3d1b055aaca8c0--