Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ngsi2cosmos: flexible clasification of data into many HDFS directories #4

Closed
fgalan opened this issue Oct 2, 2013 · 1 comment
Closed

Comments

@fgalan
Copy link
Member

fgalan commented Oct 2, 2013

Use a text file as ngsi2cosmos configuration in the following format:

<id_pattern1>|<id_type1>|<dataset1>
<id_pattern2>|<id_type2>|<dataset2>
<id_pattern3>|<id_type3>|<dataset3>
...

So, each time a new context element is received, ngsi2cosmos check that table (from top to bottom) to find to with HDFS directory send the data.

Eg.:

OUTSMART.NODE.*|Node|/user/opendata/smartcities/santander/llamas
OUTSMART.AMMS.*|AMMS|/user/opendata/smartcities/santander/llamas
OUTSMART.RG.*|Regulator|/user/opendata/smartcities/santander/llamas
urn:smartsantander:testbed:.*|Sensor|/user/opendata/smartcities/santander/smart
<no se aun :)>|<no se aun :)>|/user/opendata/smartcities/santander/magdalena
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant