Google calendar

Monday 9 May 2016

Some silly questions & xml-pull request

Questions

  1. To debug I add the following line in zeppelin-env.sh
    export ZEPPELIN_JAVA_OPTS="-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=9009"
    I use Intellij Idea IDE and then remote debug.I set the breakpoints and able to watch all the variables. when I run the paragraph I get Socketexception as paragraph output, after taking too much time to run but commenting the debug line in zeppelin-env.sh I don't get the error ?
  2. The dependency structure of project is as follows 
    zeppelin-server <= zeppelin-zengine <= zeppelin-interpreter
    So do I have to always package the root project or just the module in which I made change, followed by zeppelin root package ?
    <dependency>
          <groupId>${project.groupId}</groupId>
          <artifactId>zeppelin-interpreter</artifactId>
          <version>${project.version}</version>
    </dependency>
    
    Where does it look for dependency in target folder of zeppelin-interpreter or .m2 local repository. ?

Xml regarding issues

The config member of Paragraph class is Map<String,Object> or to be precise HashMap<String,Object> following the flow this is how it is set..
In NotebookServer the OnMeassagereceived() function has a switch case based on the operation. The updateParagraph and runParagraph methods take the config value from Message.data and also other values etc. like params. The runtime values of config values is com.google.gson.internal.StringMap. The values can itslef be Float, Integer, Boolean , Arraylist<StringMap>. So the issue is only the root level entries are mapped in Xml and the graph element of config is empty in Xml.

Second issue is mapping back from Xml to Note. The error I am getting is InvocationTargetException not Jaxbexception just after unmarshalling. So I was not able to properly debug line
Hence to work around this I delete the notes in notebook-xml and re run so the notebookreposync sync(0,1) converts to xml back for me.