In this sprint, you need to use your expertise in Spark and Kafka to process “Trip” data with “Station Information”. Skillset
- Scala
- Hive
- HDFS
- Spark (Core, SQL, Streaming)
- Kafka
- Confluent Schema Registry
- Parquet
- Avro
The main data for this pipeline is historical data of trips. We will create a stream and process this stream in our pipeline. To prepare data, go to the BiXi website (link provided in the documentation section) and under “Trip History” section, you will find links to the data from previous year all the way back to 2014. Download the data of the previous year. There is one file per month. Take the last month. The files are quite big, so we just take a sample. Extract the first 100 lines of the data after skipping the first line which is the CSV header. In Linux or Mac, you can run: head -n 101 | tail -n 100 > 100_trips.csv Prepare a command line to produce the content of 100_trips.csv file to Kafka. You can use Kafka console producer command or implement a tool of your choice. It is better to be able to produce data in small batches e.g. 10 lines. It gives a better chance to monitor your pipeline.
This is the artifact of your sprint 2. Note the location on HDFS. Prerequisites In order to start the project, you need to prepare the environment which is • Create required Kafka topics • Prepare the input • Register Avro schema