Skip to content

Instantly share code, notes, and snippets.

View spicoflorin's full-sized avatar

Florin Pico spicoflorin

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