<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Andreas Schneider</title>
    <description>The latest articles on DEV Community by Andreas Schneider (@andreas5588).</description>
    <link>https://dev.to/andreas5588</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F620525%2F1f51c887-0537-4518-afbb-73d350fd51be.jpeg</url>
      <title>DEV Community: Andreas Schneider</title>
      <link>https://dev.to/andreas5588</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/andreas5588"/>
    <language>en</language>
    <item>
      <title>Using InterSystems Caché and Apache Zeppelin</title>
      <dc:creator>Andreas Schneider</dc:creator>
      <pubDate>Sun, 25 Apr 2021 09:08:35 +0000</pubDate>
      <link>https://dev.to/intersystems/using-intersystems-cache-and-apache-zeppelin-oem</link>
      <guid>https://dev.to/intersystems/using-intersystems-cache-and-apache-zeppelin-oem</guid>
      <description>&lt;p&gt;I' have done some tests with Caché and Apache Zeppelin. I want to share my experince to use both systems together. I'll try to describe all steps that are required to config Zeppelin to connect to Caché.&lt;/p&gt;

&lt;h2&gt;
  
  
  What is  Apache Zeppelin?
&lt;/h2&gt;

&lt;p&gt;For all who think: What the heck is Apache Zeppelin? Here are some details what the &lt;a href="http://zeppelin.apache.org"&gt;project site&lt;/a&gt; says:&lt;/p&gt;

&lt;p&gt;&lt;em&gt;"A web-based notebook that enables interactive data analytics. You can make beautiful data-driven, interactive and collaborative documents with SQL, Scala and more. Apache Zeppelin interpreter concept allows any language/data-processing-backend to be plugged into Zeppelin. Currently Apache Zeppelin supports many interpreters such as Apache Spark, Python, JDBC, Markdown and Shell"&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Let's start&lt;/p&gt;

&lt;h2&gt;
  
  
  Install Apache Zeppelin
&lt;/h2&gt;

&lt;p&gt;The next 5 steps describe how to get Apache Zeppelin up and running:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;You need a Java Runtime Environment. I you haven't download and install from &lt;a href="http://www.oracle.com/technetwork/java/javase/downloads/index-jsp-138363.html"&gt;here&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Download Zeppelin from &lt;a href="http://zeppelin.apache.org/download.html"&gt;here&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Extract the entire Zeppelin Zip-File into a folder like d:\zeppelin
&lt;/li&gt;
&lt;li&gt;Open a shell (cmd on windows) and navigate into the folder \zeppelin\bin
&lt;/li&gt;
&lt;li&gt;Execute zeppelin.bat on Windows to start Zeppelin Open up a browser and use this url &lt;a href="http://localhost:8080"&gt;http://localhost:8080&lt;/a&gt; to open the main page of zeppelin. You should see something like this: 
&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--huaJrO_B--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/tgm69r2n0qa0275tx5wa.png" alt="Alt Text"&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;strong&gt;Well done! Zeppelin is now up and running!&lt;/strong&gt;&lt;/p&gt;

&lt;h1&gt;
  
  
  Connect to Caché
&lt;/h1&gt;

&lt;p&gt;Now let us introduce Caché. The next steps describe how to create a jdbc connection to a Caché Namespace.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;Navigate to the menu item "anonymouse" -&amp;gt; "Interpreter" and scroll down to the "jdbc" section. &lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--4fBwJDKj--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/p3zlia9d25az9ehr75z2.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--4fBwJDKj--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/p3zlia9d25az9ehr75z2.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Now press edit and go to the end of the jdbc section and enter your Caché JDBC connection string &lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--qGo9dicQ--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/uhkl5tqd5gpdwzej4aq0.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--qGo9dicQ--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/uhkl5tqd5gpdwzej4aq0.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;cache.driver     = com.intersys.jdbc.CacheDriver 
cache.password   = ??? 
cache.url        = jdbc:Cache://&amp;lt;server\ip&amp;gt;:&amp;lt;port&amp;gt;/&amp;lt;namespace&amp;gt;
cache.user       = _SYSTEM

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ol&gt;
&lt;li&gt;Add the path to the Caché JDBC driver in the "Dependencies". This is located at the end of jdbc section. &lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--W7XQuThT--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/3ld7ulwq8jxqvlz153m0.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--W7XQuThT--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/3ld7ulwq8jxqvlz153m0.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Press SAVE&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Great! All preparations are done, now let us use Zepplin and Caché.&lt;/p&gt;

&lt;h1&gt;
  
  
  Query Caché
&lt;/h1&gt;

&lt;p&gt;Follow these steps to create a first Notebook to query and visualize some Caché data.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--gkSTuCxl--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/lrzxidc0pa7vay5v4dqm.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--gkSTuCxl--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/lrzxidc0pa7vay5v4dqm.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Press &lt;strong&gt;create new note&lt;/strong&gt; and name it like "HELLO WORLD" ...&lt;/p&gt;

&lt;p&gt;By typing &lt;code&gt;%jdbc(cache)&lt;/code&gt; you inform zeppelin what data source you want to query.&lt;br&gt;
In detail: The &lt;code&gt;%jdbc&lt;/code&gt; keyword lets zeppelin call the jdbc interpreter and the cache routes the query to the Caché connection. If you want to use more connections to Caché e.g. another namespace you have to create more entries in the jdbc section you've done before. The prefix of the entries are the connection name.&lt;/p&gt;

&lt;p&gt;Ok now place a sql statement in the next line. After that press execute and you will immediately  see the result:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--fJmP-4Qz--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/i8wkki7gb6wiw4udm6ao.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--fJmP-4Qz--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/i8wkki7gb6wiw4udm6ao.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--tI2afPVD--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/js4z86yw6a11llrv6xma.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--tI2afPVD--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/js4z86yw6a11llrv6xma.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Happy testing!&lt;/strong&gt;&lt;/p&gt;

</description>
      <category>intersystems</category>
    </item>
  </channel>
</rss>
