You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@systemml.apache.org by "Deron Eriksson (JIRA)" <ji...@apache.org> on 2016/09/08 18:36:21 UTC
[jira] [Created] (SYSTEMML-901) Improve message if MLContext
SparkContext not available
Deron Eriksson created SYSTEMML-901:
---------------------------------------
Summary: Improve message if MLContext SparkContext not available
Key: SYSTEMML-901
URL: https://issues.apache.org/jira/browse/SYSTEMML-901
Project: SystemML
Issue Type: Improvement
Components: APIs
Reporter: Deron Eriksson
Assignee: Deron Eriksson
Currently, if an MLContext object hasn't been created with the SparkContext, this can give rise to an error such as the following:
{code}
java.lang.NullPointerException
at org.apache.sysml.api.mlcontext.MLContextConversionUtil.determineDataFrameDimensionsIfNeeded(MLContextConversionUtil.java:610)
{code}
For instance, if the MLContext object hasn't been created yet but a user does something such as trying to set inputs and outputs on a Script object, the above error occurs.
{code}
val LinRegCg = LinRegCgDML.in("X", X).in("y", y).out("beta_out")
{code}
The error message should be more informative and tell the user how to fix the issue.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)