You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@druid.apache.org by GitBox <gi...@apache.org> on 2019/01/29 13:25:23 UTC

[GitHub] mihai-cazacu-adswizz opened a new issue #6945: The materialized view is not created for a data source produced by Kafka Indexing Service

mihai-cazacu-adswizz opened a new issue #6945: The materialized view is not created for a data source produced by Kafka Indexing Service
URL: https://github.com/apache/incubator-druid/issues/6945
 
 
   Hi,
   
   I'm trying to create a materialized view for a data source created by an ingestion from Kafka (using [Kafka Indexing Service](http://druid.io/docs/latest/development/extensions-core/kafka-ingestion.html)).
   
   The used spec:
   
   ```
   {
     "baseDataSource": "the-kafka-data-source",
     "dataSource": "the-kafka-data-source-view",
     "dimensionsSpec": {
       "dimensions": [
         "dimA",
         "dimB"
       ]
     },
     "metricsSpec": [
       {
         "fieldName": "metricA",
         "name": "metricASum",
         "type": "longSum"
       }
     ],
     "hadoopDependencyCoordinates": [
       "org.apache.hadoop:hadoop-client:2.7.3"
     ],
     "tuningConfig": {
       "jobProperties": {
         "fs.s3.impl": "org.apache.hadoop.fs.s3native.NativeS3FileSystem",
         "fs.s3n.impl": "org.apache.hadoop.fs.s3native.NativeS3FileSystem",
         "io.compression.codecs": "org.apache.hadoop.io.compress.GzipCodec,org.apache.hadoop.io.compress.DefaultCodec,org.apache.hadoop.io.compress.BZip2Codec,org.apache.hadoop.io.compress.SnappyCodec",
         "mapreduce.job.classloader": "true"
       },
       "type": "hadoop"
     },
     "type": "derivativeDataSource"
   }
   ```
   
   Once the spec is used, the Supervisor is successfully created but there is no task for creating the view.
   
   The Supervisor's payload:
   
   ```
   {
     "type": "derivativeDataSource",
     "baseDataSource": "the-kafka-data-source",
     "dimensionsSpec": {
       "dimensions": [
         {
           "type": "string",
           "name": "dimA",
           "multiValueHandling": "SORTED_ARRAY",
           "createBitmapIndex": true
         },
         {
           "type": "string",
           "name": "dimB",
           "multiValueHandling": "SORTED_ARRAY",
           "createBitmapIndex": true
         }
       ],
       "dimensionExclusions": []
     },
     "metricsSpec": [
       {
         "type": "longSum",
         "name": "metricASum",
         "fieldName": "metricA",
         "expression": null
       }
     ],
     "tuningConfig": {
       "type": "hadoop",
       "workingPath": null,
       "version": "2019-01-29T12:42:15.475Z",
       "partitionsSpec": {
         "type": "hashed",
         "targetPartitionSize": -1,
         "maxPartitionSize": -1,
         "assumeGrouped": false,
         "numShards": -1,
         "partitionDimensions": []
       },
       "shardSpecs": {},
       "indexSpec": {
         "bitmap": {
           "type": "concise"
         },
         "dimensionCompression": "lz4",
         "metricCompression": "lz4",
         "longEncoding": "longs"
       },
       "maxRowsInMemory": 1000000,
       "maxBytesInMemory": 0,
       "leaveIntermediate": false,
       "cleanupOnFailure": true,
       "overwriteFiles": false,
       "ignoreInvalidRows": false,
       "jobProperties": {
         "fs.s3.impl": "org.apache.hadoop.fs.s3native.NativeS3FileSystem",
         "fs.s3n.impl": "org.apache.hadoop.fs.s3native.NativeS3FileSystem",
         "io.compression.codecs": "org.apache.hadoop.io.compress.GzipCodec,org.apache.hadoop.io.compress.DefaultCodec,org.apache.hadoop.io.compress.BZip2Codec,org.apache.hadoop.io.compress.SnappyCodec",
         "mapreduce.job.classloader": "true"
       },
       "combineText": false,
       "useCombiner": false,
       "buildV9Directly": true,
       "numBackgroundPersistThreads": 0,
       "forceExtendableShardSpecs": false,
       "useExplicitVersion": false,
       "allowedHadoopPrefix": [],
       "logParseExceptions": false,
       "maxParseExceptions": 0
     },
     "dataSource": "the-kafka-data-source-view",
     "hadoopCoordinates": null,
     "hadoopDependencyCoordinates": [
       "org.apache.hadoop:hadoop-client:2.7.3"
     ],
     "classpathPrefix": null,
     "context": {},
     "suspended": false
   }
   ```
   
   and its status:
   
   ```
   {
     "id": "the-kafka-data-source-view",
     "generationTime": "2019-01-29T13:21:17.721Z",
     "payload": "{dataSource='the-kafka-data-source-view', baseDataSource='the-kafka-data-source', suspended='false', dimensions=[dimA, dimB], metrics=[metricASum], missTimeline[]}"
   }
   ```
   
   I've tried to use the same specification for another data source which was created by an ingestion task from S3 and it worked as expected.
   
   @zhangxinyu1: Is this a special case for Materalized View that requires a different approach?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org