Skip to content

mayur-mwar/ksql-udf-geoip

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

KSQL example UDF for looking up a City for an IP address.

Pre-requisite

You'll need to supply your own GeoLite database, specify it's location using the function.getcityforip.geolite.db.path property in your ksql-server.properties before starting KSQL.

Build

mvn clean package

and move the jar target/ksql-udf-geoip-1.0-SNAPSHOT-jar-with-dependencies.jar into the ext/ directory in your KSQL installation.

Usage

SELECT ip, getcityforip(ip) from eventstream;

About

example UDF for geoip lookup

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%