Author: Alexander Martens
- Log in to virtual machine where Ambari server is running
ssh -i .ssh/<private_key_pem_file> cloudbreak@<ambari_host>
- Change user to root
sudo -i
- Change user to root
git clone https://github.com/martensa/se-event-lab-1
- Execute the deployment script
cd se-event-lab-1
./deployPreRequisites.sh
- Start CometD messaging container
./startContainer.sh
- Upload NiFi template nifi-credit-fraud.xml (see NiFiFlow folder in this repository).
- Add the uploaded template to the canvas per drag & drop.
- Review the entire flow and get a understanding of the single steps.
- Resolve the two warnings at "QueryRecord" and “QueueIncomingTransaction” processors. Therefore, you need to go to Settings > Controller Services.
Please edit the HortonworksSchemaRegistry service and update the host name of the Schema Registry URL. Then, you can enable this service and all the referencing components.
The warnings should get resolved. 5. Update the Kafka broker URLs of both “QueueIncomingTransaction” processors with the appropriate host name. 6. Start the entire flow in NiFi.\n
- Make sure that the following schemas exists: original_transaction, incoming_transaction, customer_validation
- Review the schemas for the different events in order to get a feeling about the data.
- Log in to virtual machine where Ambari server is running
ssh -i .ssh/<private_key_pem_file> cloudbreak@<ambari_host>
- Change user to root
sudo -i
- Execute the start script
cd se-event-lab-1
./startSimulation.sh
- Use the navigation bar at the right to open the built-in model registry.
- Click on +,upload the PMML Credit Fraud model pmml-credit-fraud.xml (see PMMLModel folder in this repository) and name it "credit-fraud".
-
Download the CreditCard Fraud streaming application credit-fraud.json (see SAMTopology folder in this repository)
-
Replace all occurences of {{HOST1}} with your Ambari hostname.
-
Navigate to "My Applications", import the existing application and name it "Credit-Fraud".
-
Review the analytics pipeline and get a understanding of the single steps.
-
Make sure that you have the right hostname provided for the following processors: "IncomingTransactions", "GetCustomerDetails", "GetPurchaseAmountStats", "GetLastTransaction", "GetTransactionDistance", "SendStatusLegitimate", "SendStatusFraud", "UpsertLegitTransaction", "UpsertFraudTransaction", "TransactionHistoryOLAPIndex".
-
Start the streaming application
- Create your own visualization using Zeppelin
- Finalize the demo: TransactionMonitorUI TransactionMonitorMobileApp
- Import notebook note.json into Zeppelin (see Zeppelin folder in this repository)
- Review the Zeppelin notebook that was used to learn the PMML model









