Skip to content

Instantly share code, notes, and snippets.

Avatar

Florin Pico spicoflorin

View GitHub Profile
@spicoflorin
spicoflorin / get_job_status.sh
Created Jul 29, 2019 — forked from arturmkrtchyan/get_job_status.sh
Apache Spark Hidden REST API
View get_job_status.sh
curl http://spark-cluster-ip:6066/v1/submissions/status/driver-20151008145126-0000
View SGMController.java
@RestController
public class SGMController {
private ModelEvaluator<MiningModel> modelEvaluator;
@PostConstruct
public void init() {
try {
PMML pmml = createPMMLfromFile("iris_rf.pmml");
modelEvaluator = new MiningModelEvaluator(pmml);