Re: How to launch a Helium Application in local deploy mode

2017-04-21 Thread fish fish
Thank you Lee! 2017-04-19 11:55 GMT+08:00 moon soo Lee : > Hi, > > You can get reference to ResourcePool by running > > val resourcePool = z.getInterpreterContext().getResourcePool() // [1] > > Then you can invoke methods to put resource [2] into it. > Hope this works. > > Thanks, > moon > > [1]

Re: How to launch a Helium Application in local deploy mode

2017-04-18 Thread moon soo Lee
Hi, You can get reference to ResourcePool by running val resourcePool = z.getInterpreterContext().getResourcePool() // [1] Then you can invoke methods to put resource [2] into it. Hope this works. Thanks, moon [1] https://github.com/apache/zeppelin/blob/master/zeppelin-interpreter/src/main/jav

Re: How to launch a Helium Application in local deploy mode

2017-04-18 Thread fish fish
Hi Just wonder any updates on this thread? Thanks! Best, Chen 2017-04-18 16:10 GMT+08:00 fish fish : > Thank you Lee! I can run the Clock example. However, in > https://github.com/apache/zeppelin/blob/master/spark/ > src/main/java/org/apache/zeppelin/spark/SparkInterpreter.java#L1287 , > SparkI

Re: How to launch a Helium Application in local deploy mode

2017-04-18 Thread fish fish
Thank you Lee! I can run the Clock example. However, in https://github.com/apache/zeppelin/blob/master/spark/src/main/java/org/apache/zeppelin/spark/SparkInterpreter.java#L1287 , SparkInterpreter only put last evaluated variable into resource pool. So if my helium app need multiple resources like [

Re: How to launch a Helium Application in local deploy mode

2017-04-16 Thread moon soo Lee
Hi, Helium application launch will appear when ResourcePool has required resource [1] for an application. Spark interpreter put last evaluated object in the ResourcePool. For example, if you run "new java.util.Date()" in a paragraph, a date object will be created in the ResourcePool. And there wi

Re: How to launch a Helium Application in local deploy mode

2017-04-16 Thread fish fish
Hi Lee, Thank you for your reply. Actually I already tried dev mode and succeeded. My question is how to launch Helium application not in development mode but in deploy mode like 'SPELL' described in https://zeppelin.apache.org/docs/snapshot/development/writingzeppelinspell.html#1-enabling. Could

Re: How to launch a Helium Application in local deploy mode

2017-04-15 Thread moon soo Lee
Hi, Dev mode in actual implementation became '%dev run' instead of '%helium run' in proposal. Please check http://zeppelin.apache.org/docs/0.8.0-SNAPSHOT/development/writingzeppelinapplication.html#development-mode . To use '%dev run', you need build Zeppelin with -Phelium-dev flag. Hope this h

How to launch a Helium Application in local deploy mode

2017-04-14 Thread fish fish
Hi Group, I have written a Helium application and deploy in local mode. Also I enable it in 'Helium' page. However, I don't know how to launch the enabled application in notebook. I tried type "%helium run" as showed in this video: https://cwiki.apache.org/confluence/display/ZEPPELIN/Helium+propos