systemml-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Deron Eriksson (JIRA)" <j...@apache.org>
Subject [jira] [Created] (SYSTEMML-901) Improve message if MLContext SparkContext not available
Date Thu, 08 Sep 2016 18:36:21 GMT
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)

Mime
View raw message