<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Rishi Mathur on Medium]]></title>
        <description><![CDATA[Stories by Rishi Mathur on Medium]]></description>
        <link>https://medium.com/@rishimathur_47502?source=rss-d6c8a31d08c2------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*Lhb04bGEMt9iDifV.</url>
            <title>Stories by Rishi Mathur on Medium</title>
            <link>https://medium.com/@rishimathur_47502?source=rss-d6c8a31d08c2------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 20:47:49 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@rishimathur_47502/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Querying Parquet Data from Multiple IBM Cloud Object Storage Instances in DBeaver using Apache…]]></title>
            <link>https://medium.com/@rishimathur_47502/querying-parquet-data-from-multiple-ibm-cloud-object-storage-instances-in-dbweaver-using-apache-63957f00fce5?source=rss-d6c8a31d08c2------2</link>
            <guid isPermaLink="false">https://medium.com/p/63957f00fce5</guid>
            <dc:creator><![CDATA[Rishi Mathur]]></dc:creator>
            <pubDate>Wed, 31 May 2023 09:12:52 GMT</pubDate>
            <atom:updated>2023-05-31T10:59:47.581Z</atom:updated>
            <content:encoded><![CDATA[<h3>Querying Parquet Data from Multiple IBM Cloud Object Storage Instances in DBeaver using Apache Drill</h3><p>Our team has extensive experience working with Parquet and DB2 Warehouse on Cloud, specifically for handling large-scale ETL (Extract, Transform, Load) processes and querying Parquet data. To accomplish these tasks, we have been utilizing Jupyter Notebook. During our work with DB2 Database in DBeaver, we came across Apache Drill as a potential solution to address our challenges for parquet query.</p><p><strong>Pre-requiste software are below :</strong></p><ol><li>Apache Drill -Latest Version</li><li>DBeaver — Latest Version</li><li>Access to IBM Cloud Object Storage.</li></ol><p><strong>To install Apache Drill, you can follow these steps:</strong></p><ol><li>Download Apache Drill: Visit the Apache Drill website (<a href="https://drill.apache.org/">https://drill.apache.org/</a>) and navigate to the Downloads page. Choose the appropriate version of Apache Drill for your operating system.</li><li>Extract the downloaded file: Once the download is complete, extract the contents of the downloaded file to a directory of your choice. This will create the Apache Drill installation directory.</li><li>Start Apache Drill: Open a terminal or command prompt and navigate to the Apache Drill installation directory. Run the appropriate command to start Apache Drill:</li></ol><p>On Linux/Mac:</p><pre>bin/drill-embedded</pre><p>On Windows:</p><pre>bin\drill-embedded.bat</pre><p>4. This will start Apache Drill in embedded mode, where it runs within the same JVM as the client application.</p><p>5. Access the Apache Drill Web UI: Open a web browser and go to http://localhost:8047. This will take you to the Apache Drill Web UI, where you can interact with Apache Drill and configure data sources</p><p>6. Apache Drill is now installed and running on your machine. You can use the Web UI, SQL clients, or programming APIs to connect to data sources, execute queries, and explore data.</p><p><strong>Connecting to Multiple IBM COS Instances — Apache Drill Configuration:</strong></p><ol><li>Default we can use the s3 plugin under storage for 1st IBM COS Instance connection</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PT6leV6yaen54DwQ8y1RbQ.png" /></figure><p>2. For 2nd IBM COS instance we need to explore below directory:</p><pre>apache-drill-1.21.1/conf </pre><p>3. Clone storage-plugins-override-example.conf to storage-plugins-override-.conf</p><p>4. Update the storage-plugins-override.conf with below details</p><pre>&quot;storage&quot;: {<br>  s3_2:<br>  {<br>    &quot;type&quot;: &quot;file&quot;,<br>    &quot;connection&quot;: &quot;s3a://bucket-name&quot;,<br>    &quot;config&quot;: {<br>      &quot;fs.s3a.secret.key&quot;: &quot;secret_key&quot;,<br>      &quot;fs.s3a.access.key&quot;: &quot;access key&quot;,<br>      &quot;fs.s3a.endpoint&quot;: &quot; value&quot;<br>    },<br>    &quot;workspaces&quot;: {<br>      &quot;root&quot;: {<br>        &quot;location&quot;: &quot;/&quot;,<br>        &quot;writable&quot;: false,<br>        &quot;defaultInputFormat&quot;: null,<br>        &quot;allowAccessOutsideWorkspace&quot;: false<br>      },<br>      &quot;tmp&quot;: {<br>        &quot;location&quot;: &quot;/tmp&quot;,<br>        &quot;writable&quot;: true,<br>        &quot;defaultInputFormat&quot;: null,<br>        &quot;allowAccessOutsideWorkspace&quot;: false<br>      }<br>    },<br>    &quot;formats&quot;: {<br>      &quot;parquet&quot;: {<br>        &quot;type&quot;: &quot;parquet&quot;<br>      }<br>    },<br>    &quot;authMode&quot;: &quot;SHARED_USER&quot;,<br>    &quot;enabled&quot;: true<br>  }<br>}</pre><p>5. Restart the Apache Drill.</p><p>6. Now you will see both plugins under storage:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KLI3gkpavC_dWCD9jnKOgA.png" /></figure><p>7. Update the s3 plugin by providing the required values as below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6AGwdsz_roPlRJDPW3kpbQ.png" /></figure><p><em>Note*: Since parquet is what i am explaining but drill support other format also like csv etc.</em></p><p>8. Update details for both the plugins s3 and s3_2 pointing to different IBM COS instance.</p><p><strong>Install DBeaver:</strong></p><ol><li>Visit the official DBeaver website: Go to the DBeaver website at <a href="https://dbeaver.io/">https://dbeaver.io/</a> and navigate to the “Downloads” section.</li><li>Choose the appropriate version: Select the version of DBeaver that matches your operating system (Windows, macOS, or Linux). There are also options for 32-bit and 64-bit versions, so make sure to choose the correct one for your system.</li><li>Download the installer: Click on the download link for your chosen version of DBeaver. The installer file will be downloaded to your computer.</li></ol><p><strong>Configure DBeaver to connect to Apache Drill:</strong></p><ol><li>Open DBeaver and click create and new connection :</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*g8XWbyvLatN2GJ5YR7I4Lg.png" /></figure><p>2. Choose Apache Drill from Hadoop / BigData and click Next.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4_97hPYOy9XnvDJ6L-sXcw.png" /></figure><p>3. Connection settings in the “Main” tab:</p><p>a. Choose “URL” in the “Connect by” radio button.</p><p>b. Enter “jdbc:drill:drillbit=localhost” in the “JDBC URL” field</p><p>c. Specify “admin” as the username.</p><p>d. Set “admin” as the password.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DVpA4p1sqNxKIkR84rejQA.png" /></figure><p>4. Test connection and then click Finish button on left menu drill will be shown connected</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1012/1*nK8XAQsbEOBIzKw2eQtQ5A.png" /></figure><p>5. Now you can query parquet</p><pre>select count(*) from s3.`/TEMP/employee/myemp.parquet`;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3BbkGCCJmiu_7-6kp_t7rg.png" /></figure><p>6. Sameway you can query other cos instances.</p><p><em>Happy learning! Please provide your feedback and let me know if this information was helpful to you. I’m here to assist you with any further questions you may have.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=63957f00fce5" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>