This is the AstroLabNet Help !
How to start a Graphical Browser ?
java -jar AstroLabNet.exe.jar
How to start a command line interface ?
# just command line
java -jar AstroLabNet.exe.jar -c
# with startup script
java -jar AstroLabNet.exe.jar -c -s script.bsh
# with minimal output
java -jar AstroLabNet.exe.jar -c -s script.bsh -q
How to execute an Action ?
- On Servers, select the Server, on which you want to run.
- Using Right-Click on that Server, create a Session with required language.
- Using Right-Click on that Session, prepare it for execution.
It will open a new Session Tab.
- On Actions, select the Action, you want to execute.
- Using Right-Click on that Action, use it for the selected Session.
It will fill the selected Session Tab.
- If needed, edit the source in the selected Session Tab.
- Execute on the selected Session Tab and wait for the result.
How to create a new Action ?
Using Right-Click on Actions and selecting Create.
How to connect to new Server ?
Using Right-Click on Servers and selecting Create.
How to execute a Bean Shell script from GUI ?
Using Script button on thre top MenuBar.
How to execute a Bean Shell script from GUI ?
Using Script button on thre top MenuBar.
Commands available in CLI
w.servers();
w.actions();
w.datas();
w.dataSources();
w.dataChannels();
w.tasks();
w.addServer(name, urlLivy, urlSpark);
w.addAction(name, cmd, language); // language = Language.PYTHON, Language.SCALA,...
w.addData(name);
w.addDataSource(name);
w.addDataChannel(name);
and (almost) full standard Java.
Server represents a Spark Server behind Livy Server.
You can create a new Session on it.
CLI
---
w.addServer("Server Name", "http://livy.server:8998", "http://sparck.server:4040");
Session represents a session on a Spark Server behind Livy Server.
You can send an Action to it.
Action represents a program to be send to a Spark Server,
formulated as a simple text.
It can be written in Python, Scala, SQL or R.
You can send it to a Session opened on a Spark Server.
CLI
---
w.addAction("pokus", "1+1", Language.PYTHON);
Task represents an task running on a Spark Server behind Livy Server.