jpmml / jpmml-evaluator-spark

PMML evaluator library for the Apache Spark cluster computing system (http://spark.apache.org/)
GNU Affero General Public License v3.0
94 stars 43 forks source link

reading pmml from hdfs #39

Closed dagdelenmustafa closed 4 years ago

dagdelenmustafa commented 4 years ago

hi i am trying to read my pmml file from hdfs but java.io.InputStream class is searching file from local storage so i get file not found exception. Is there a way to read pmml file from hdfs ?

vruusmann commented 4 years ago

Is there a way to read pmml file from hdfs?

This question should be posted to some Hadoop support forum, not here.

Perhaps you can construct a java.net.URL pointing to your HDFS file, and then obtain a java.io.InputStream (that you can pass to LoadingModelEvaluatorBuilder) via the URL#openStream() method.