Neha Pawar
Neha Pawar
Elon
07/27/2020, 8:35 PMNeha Pawar
Elon
07/28/2020, 5:50 AMXiang Fu
<https://docs.pinot.apache.org/users/user-guide-query/pinot-query-language>
nowApoorva Moghey
07/29/2020, 9:00 AMApoorva Moghey
07/29/2020, 9:01 AM{
"schemaName": "wallet_success_rate",
"dimensionFieldSpecs": [
{
"name": "orderId",
"dataType": "STRING",
"singleValueField": true,
"defaultNullValue": "null"
},
{
"name": "status",
"dataType": "STRING",
"singleValueField": true,
"defaultNullValue": "null"
},
{
"name": "login",
"dataType": "STRING",
"singleValueField": true,
"defaultNullValue": "null"
},
{
"name": "paymentOptionType",
"dataType": "STRING",
"singleValueField": true,
"defaultNullValue": "null"
},
{
"name": "provider",
"dataType": "STRING",
"singleValueField": true,
"defaultNullValue": "null"
},
{
"name": "adtf",
"dataType": "BOOLEAN",
"singleValueField": true,
"defaultNullValue": "false"
}
],
"metricFieldSpecs": [
{
"name": "amount",
"dataType": "DOUBLE",
"defaultNullValue": 0
}
],
"dateTimeFieldSpecs": [
{
"name": "createdAt",
"dataType": "LONG",
"format": "1:MILLISECONDS:EPOCH",
"granularity": "1:MILLISECONDS"
},
{
"name": "years",
"dataType": "INT",
"format": "1:MONTHS:SIMPLE_DATE_FORMAT:YYYY",
"granularity": "1:YEARS"
},
{
"name": "months",
"dataType": "INT",
"format": "1:MONTHS:SIMPLE_DATE_FORMAT:MM",
"granularity": "1:MONTHS"
},
{
"name": "days",
"dataType": "INT",
"format": "1:DAYS:SIMPLE_DATE_FORMAT:dd",
"granularity": "1:DAYS"
},
{
"name": "hours",
"dataType": "INT",
"format": "1:HOURS:SIMPLE_DATE_FORMAT:hh",
"granularity": "1:HOURS"
},
{
"name": "minutes",
"dataType": "INT",
"format": "1:MINUTES:SIMPLE_DATE_FORMAT:mm",
"granularity": "1:MINUTES"
}
]
}
Apoorva Moghey
07/29/2020, 9:01 AMXiang Fu
Apoorva Moghey
07/29/2020, 11:01 AMDateTimeGranularitySpec
Apoorva Moghey
07/29/2020, 11:02 AMOguzhan Mangir
07/31/2020, 9:15 AMYash Agarwal
07/31/2020, 10:52 AMCaught exception while sending query request
java.io.IOException: Failed : HTTP error code : 500
at org.apache.pinot.controller.api.resources.PinotQueryResource.sendPostRaw(PinotQueryResource.java:284) ~[pinot-all-0.5.0-SNAPSHOT-jar-with-dependencies.jar:0.5.0-SNAPSHOT-0fc081157c88734af0433c3cd30f310474d177f0]
at org.apache.pinot.controller.api.resources.PinotQueryResource.sendRequestRaw(PinotQueryResource.java:322) ~[pinot-all-0.5.0-SNAPSHOT-jar-with-dependencies.jar:0.5.0-SNAPSHOT-0fc081157c88734af0433c3cd30f310474d177f0]
at org.apache.pinot.controller.api.resources.PinotQueryResource.getQueryResponse(PinotQueryResource.java:204) ~[pinot-all-0.5.0-SNAPSHOT-jar-with-dependencies.jar:0.5.0-SNAPSHOT-0fc081157c88734af0433c3cd30f310474d177f0]
at org.apache.pinot.controller.api.resources.PinotQueryResource.handlePostSql(PinotQueryResource.java:131) ~[pinot-all-0.5.0-SNAPSHOT-jar-with-dependencies.jar:0.5.0-SNAPSHOT-0fc081157c88734af0433c3cd30f310474d177f0]
If I directly query the broker I am getting
<html>
<head>
<title>Grizzly 2.4.4</title>
<style>
<!--div.header {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#003300;font-size:22px;-moz-border-radius-topleft: 10px;border-top-left-radius: 10px;-moz-border-radius-topright: 10px;border-top-right-radius: 10px;padding-left: 5px}div.body {font-family:Tahoma,Arial,sans-serif;color:black;background-color:#FFFFCC;font-size:16px;padding-top:10px;padding-bottom:10px;padding-left:10px}div.footer {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#666633;font-size:14px;-moz-border-radius-bottomleft: 10px;border-bottom-left-radius: 10px;-moz-border-radius-bottomright: 10px;border-bottom-right-radius: 10px;padding-left: 5px}BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;}B {font-family:Tahoma,Arial,sans-serif;color:black;}A {color : black;}HR {color : #999966;}
-->
</style>
</head>
<body>
<div class="header">Request failed.</div>
<div class="body">Request failed.</div>
<div class="footer">Grizzly 2.4.4</div>
</body>
</html>
I have recently added a config in broker
pinot.broker.timeoutMs=120000
Any Ideas ?Yash Agarwal
07/31/2020, 10:54 AMYash Agarwal
07/31/2020, 12:25 PMMayank
Yash Agarwal
07/31/2020, 2:09 PMYash Agarwal
07/31/2020, 2:13 PMBuchi Reddy
07/31/2020, 4:20 PMYash Agarwal
08/03/2020, 8:49 AMYash Agarwal
08/03/2020, 8:52 AMexecutionFrameworkSpec:
name: 'spark'
segmentGenerationJobRunnerClassName: 'org.apache.pinot.plugin.ingestion.batch.spark.SparkSegmentGenerationJobRunner'
segmentTarPushJobRunnerClassName: 'org.apache.pinot.plugin.ingestion.batch.spark.SparkSegmentTarPushJobRunner'
segmentUriPushJobRunnerClassName: 'org.apache.pinot.plugin.ingestion.batch.spark.SparkSegmentUriPushJobRunner'
extraConfigs:
stagingDir: <hdfs://hdfs_base/staging_dir>
jobType: SegmentUriPush
inputDirURI: '<hdfs://hdfs_base/raw_data_dir>'
includeFileNamePattern: 'glob:**/*.orc'
outputDirURI: '<hdfs://hdfs_base/segment_dir>'
overwriteOutput: true
pinotFSSpecs:
- scheme: hdfs
className: org.apache.pinot.plugin.filesystem.HadoopPinotFS
configs:
'hadoop.conf.path': '/etc/hadoop/conf/'
recordReaderSpec:
dataFormat: 'orc'
className: 'org.apache.pinot.plugin.inputformat.orc.ORCRecordReader'
tableSpec:
tableName: 'tableName'
schemaURI: '<http://controller:9000/tables/tableName/schema>'
tableConfigURI: '<http://controller:9000/tables/tableName>'
segmentNameGeneratorSpec:
type: simple
configs:
segment.name.postfix: 'batch'
pinotClusterSpecs:
- controllerURI: '<http://controller:9000>'
pushJobSpec:
pushParallelism: 50
pushAttempts: 2
pushRetryIntervalMillis: 1000
segmentUriPrefix: <https://file_server/fs/hdfs_base>
segmentUriSuffix: ''
Yash Agarwal
08/03/2020, 8:53 AMsegment.offline.download.url
Kishore G
Yash Agarwal
08/03/2020, 2:01 PM-dataDir /var/pinot/controller/data
I didn’t get the question about the day setting ?Yash Agarwal
08/03/2020, 2:06 PMYash Agarwal
08/03/2020, 2:22 PM// This boolean is here for V1 segment upload, where we keep the segment in the downloadURI sent in the header.
// We will deprecate this behavior eventually.
if (!moveSegmentToFinalLocation)
Yash Agarwal
08/03/2020, 2:22 PMMayank
Yash Agarwal
08/03/2020, 3:53 PM