[ 
https://issues.apache.org/jira/browse/SYSTEMML-1600?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16009321#comment-16009321
 ] 

Krishna Kalyan commented on SYSTEMML-1600:
------------------------------------------

[~deron],
I have tried something like this below. I think I am missing something. 
https://github.com/apache/incubator-systemml/blob/master/src/main/java/org/apache/sysml/api/mlcontext/MLContextUtil.java#L976

MLContext ml = MLContext.getActiveMLContext();
StringBuilder sb;
sb = new StringBuilder();
sb.append("\nWelcome to Apache SystemML!\n");
sb.append(version.version());

Error I get after compiling this change to a jar

scala> val ml = new MLContext(spark)
java.lang.NullPointerException
  at 
org.apache.sysml.api.mlcontext.MLContextUtil.welcomeMessage(MLContextUtil.java:981)
  at org.apache.sysml.api.mlcontext.MLContext.initMLContext(MLContext.java:230)
  at org.apache.sysml.api.mlcontext.MLContext.<init>(MLContext.java:179)
  ... 52 elided

I wanted to get familiar with the code base and this looked like an easy fix!.

> Display version in MLContext welcome message
> --------------------------------------------
>
>                 Key: SYSTEMML-1600
>                 URL: https://issues.apache.org/jira/browse/SYSTEMML-1600
>             Project: SystemML
>          Issue Type: Improvement
>          Components: APIs
>            Reporter: Deron Eriksson
>            Priority: Minor
>
> Append SystemML version number to MLContext welcome message. It is available 
> via the MLContext version() method.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to