Zeppelin: Need to know more about zeppelin - apache-zeppelin

I have recently started learning zeppelin. I know we can use angular and PostgreSQL e.t.c within it using interpreter. I have gone through its tutorial as well. But it is not as descriptive as I thought. I have many doubts which I am asking to you and which may help other beginners as well.
1> How we can create API for the zeppelin (if possible)?: As most of the client side apps uses API, is it possible to create API in zeppelin ? and in which language we can create API. If possible I am thinking to create API in java or node.js(JS).
2> Is it possible to integrate zeppelin graphs in any UI(angular or html ?)?
3> How we can deploy zeppelin based application in production environment ?
If you have any good tutorial source please attach it.
If I have asked unrelated questions please point out. I will change it.
Thanks in advance for provide help and giving you precious time!

Apache Zeppelin has wide and well described API [1]. You can use any language to work with API.
Yes [2]. You can embed the paragraph result to your website.
You can use binary package or built from source [3].
[4] contains a lot of code in setup section.
--
http://zeppelin.apache.org/docs/0.8.0/usage/rest_api/notebook.html
http://zeppelin.apache.org/docs/0.8.0/usage/other_features/publishing_paragraphs.html
http://zeppelin.apache.org/docs/0.8.0/quickstart/install.html
http://zeppelin.apache.org/docs/0.8.0/

Related

Convert nested XML file to some kind of database format and displaying on website

Heyos!
I am in sincere need of help and advice with a project I have to work on.
Let me give you a brief overview:
Context:
MeSH-Browser is a website used for displaying "[...] hierarchically-organized terminology for indexing and cataloging of biomedical information [...]" (see: https://www.nlm.nih.gov/mesh/).
The MeSH-data can be downloaded from here: https://www.nlm.nih.gov/mesh/download_mesh.html
What is the task:
Displaying MeSH-data on a website.
What is given:
MeSH-data as mentioned above (see: https://www.nlm.nih.gov/mesh/download_mesh.html).
What is the catch:
I have no experience in developing a back- and frontend.
What I have come up so far:
I figured out that I need to develop a back- and frontend as well as the communication between those.
Convert given MeSH-data in .xml format to database input format.
Create a server running a database fed with the converted MeSH-data.
Communication between database and website.
A website for displaying the data stored in the database.
After googling I found a GitHub project with "Code and documentation for the release of MeSH in RDF format" (see: https://github.com/HHS/meshrdf/).
Hence I set up a virtual machine running an ubuntu server and installed OpenLink's Virtuoso software (see: https://virtuoso.openlinksw.com/), which can be used for querying the resulting RDF.
What has to be done next is integrating the converted MeSH-data in RDF into the Virtuoso database (have not looked into this yet).
Considering the communication with the frontend, I was thinking about using one of the libraries mentioned on https://www.w3.org/community/rdfjs/wiki/Comparison_of_RDFJS_libraries and query the data with the help of SPARQL.
As frontend I would use ReactJS as I find it appealing to me.
That is all for now, what are your opinions?
Please do note that this is only for educational purposes.

Cannot generate JNLP dynamically from ADF (JSF) application

I have an application developed with Oracle ADF ( JSF ) that uses an applet to send PDFs directly to the printer without showing them to the user.
Since modern browsers (such as the latest versions of Google Chrome) apparently no longer support applets I have developed a swing application java replacing the mentioned applet, this should be distributed using web start.
The printing application is already developed , compiled into a JAR and signed , a first test with a static JNLP was apparently successful .
My problem is that the JAR must receive parameters sent from the website where it is invoked and I do not know how get this. I have seen some examples that extend the JnlpDownloadServlet servlet that is part of the examples of Java, but I could not make anyone of these examples work properly.
I use JDeveloper as IDE.
I hope someone of you can help me.
Thanks in advance.
I was having the same problem.
Following this link from oracle forum I was able to put it to work.
I only add to revise the jnlp tags and attributes when creating the file, like
String jnlpRoot = "<jnlp spec=\"1.0+\" codebase=\"" + codeBaseUrl + "\" version=\"0.1\">\n"; //href="PrintApplet.jnlp"
The href attribute was the one that was breaking the download functionality, it was expecting a file inside the application.
Hope this helps

How to query AD using XPages?

recently I have started working on how to query AD (Active Directory) in Lotus Notes - XPages. I came across a tool named LIZA (http://www.ldapexplorer.com/en/liza.htm), could anyone please let me know how do we use that tool? What is the tool all about and is it possible to integrate it with Lotus Notes. If not then what are the other ways to query AD using XPages.
JXPlorer and Liza are front-end applications. What you are looking for are not these droids is a (Java) library that you can call from XPages (most likely wrapped in a bean).
You can use the Apache Directory to do this. One nice side effect: the API is used inside the Apache Directory Studio - another front-end application. So you would use the Studio to try the connection and browse the AD (or other LDAP) and the know what query and connection strings you need.
The alternative is to do it "the Java way"™ and use JNDI to connect to an LDAP as suggested before by the Java guys.
I would use the Apache classes. Let us know how it goes!
Never used it myself, but could this been an alternative ? http://jxplorer.org/ Should be possible to use this with Java (agent, xpage, java) in Lotus Notes

Scripting responses for use in the Maven Release Plugin

We are a SVN/Maven/Hudson shop. We are experimenting with using the Maven Release Plugin to help automate our very laborious tagging and releasing process. We are happy with what we are seeing and have researched thus far in regards to this plugin.
Our question is - if we need to have different tags for some of the modules / applications being built, is there a way to script the responses?
We have waded through the interactive dry runs successfully, however we are looking to script these out to further our automation.
Has anyone tried this or know if it is possible?
Does the "Batch Mode" allow this functionality?
Thanks
Joe R
You can -B but it will use default version names (removing -SNAPSHOT at the end).
regarding tags per module you can have a look at the parameter : autoVersionSubmodules 1
/Olivier

Webserver on python3

I've created a web app in Python 3. It all runs beautifully until I have to upload a file... There's no way to find the path or the file in the environment. I am using wsgi and I am thinking of migrating to another web server, what are your recommendations?
This is all what I receive from the
s = FileWrapper(environ.copy()['wsgi.input'])
for y in s:
print(y)
And the response of that is:
b'-----------------------------1514423166515917395188753897--\\r\\n'
What does this mean?
That's the file data, sent in a format guaranteed to survive to the destination, which is you. You need to decode it, and there are libraries for doing this in Python.
However, since you clearly don't know how these kinds of technical details work in the Web, if you want to write your own webserver you will have to learn. And it's not a trivial question.
I suggest you use some sort of web framework. There are tons of them for Python, I would recommend Pyramid or Django, both which now are ported to Python 3.

Resources