Simon,
Please find the sample config file
{
"parserClassName":"org.apache.metron.parsers.csv.CSVParser",
"sensorTopic":"CSV",
"parserConfig": {
"deviceTimeZone": "UTC",
"separator":",",
"columns":{ 'A' : 1, 'B' : 2}
}
}
Thanks and Regards,
Hema
On Wed, 13 Nov, 2019, 3:56 AM Simon Elliston Ball, <
[email protected]> wrote:
> Perhaps you could post your config? You should have a dictionary in it
> called columns which maps column name to index.
>
> Simon
>
> On Tue, 12 Nov 2019 at 16:05, Hema malini <[email protected]> wrote:
>
>> Yes. I uploaded as mentioned in the document.
>>
>> On Tue, 12 Nov, 2019, 9:31 PM Simon Elliston Ball, <
>> [email protected]> wrote:
>>
>>> Did you upload your configs to zookeeper?
>>>
>>> On Tue, 12 Nov 2019 at 16:00, Hema malini <[email protected]>
>>> wrote:
>>>
>>>> I referred the document - .
>>>> https://metron.apache.org/current-book/metron-platform/metron-parsers/index.html..
>>>> I modified the file $METRON_HOME/config/zookeeper/parsers/csv.json. i am
>>>> getting still column metadata not defined.please let me know what I am
>>>> missing in this.
>>>>
>>>> On Tue, 12 Nov, 2019, 9:23 PM Simon Elliston Ball, <
>>>> [email protected]> wrote:
>>>>
>>>>> You modify the column data in the parser config. I suggest checking
>>>>> the docs for the csv parser.
>>>>>
>>>>> On Tue, 12 Nov 2019 at 15:51, Hema malini <[email protected]>
>>>>> wrote:
>>>>>
>>>>>> Hi,
>>>>>>
>>>>>> I enabled CSV parser and created Kafka topic for CSV. Where i need to
>>>>>> configure column metadata. Similarly for json parser where i should
>>>>>> enable
>>>>>> the json key ,value. Do i need to modify the parser class and redeploy
>>>>>> the
>>>>>> jar again.
>>>>>>
>>>>>> Thanks and regards,
>>>>>> Hema
>>>>>>
>>>>> --
>>>>> --
>>>>> simon elliston ball
>>>>> @sireb
>>>>>
>>>> --
>>> --
>>> simon elliston ball
>>> @sireb
>>>
>> --
> --
> simon elliston ball
> @sireb
>