See our web site for details on the project.
You need to have Java installed.
Java 8 should be used for building in order to support both Java 8 and Java 11 at runtime.
Scala 2.12 is used by default,
Spark 2.4.4
You need to have Kafka 2.11.x ro above cluster
mvn clean install
Update the input for test at src/main/resources/user/ or src/main/resources/airport/
mvn test
Distance calculate between the two coordinates is directly proportional to the distance by road to the destination.
Application will need restart while airport data changes.
Sample file app.properties
Application takes input as follows,
topic.name.userinput topic name for user datafile.path.airportcsv file path for Airport data.topic.name.resultoutput kafka topic i.e.<userId,airportId>events
- -Dspark.master=local[1]
- -Dspark.name=ClosestAirportLocator
- com.ds.training.CoordinateLocator
- src/main/resources/app.properties****