<?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 Imteyaz Ahmad on Medium]]></title>
        <description><![CDATA[Stories by Imteyaz Ahmad on Medium]]></description>
        <link>https://medium.com/@imteyaz.ahmad?source=rss-f2fa32d54535------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*AWrY1rCuBsYqAg2my8tGkw@2x.jpeg</url>
            <title>Stories by Imteyaz Ahmad on Medium</title>
            <link>https://medium.com/@imteyaz.ahmad?source=rss-f2fa32d54535------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 09:07:28 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@imteyaz.ahmad/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[Historical background and development of LLMs]]></title>
            <link>https://medium.com/@imteyaz.ahmad/historical-background-and-development-of-llms-cbd6bb14131f?source=rss-f2fa32d54535------2</link>
            <guid isPermaLink="false">https://medium.com/p/cbd6bb14131f</guid>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[deep-learning]]></category>
            <category><![CDATA[generative-ai-tools]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[large-language-models]]></category>
            <dc:creator><![CDATA[Imteyaz Ahmad]]></dc:creator>
            <pubDate>Tue, 14 Nov 2023 23:38:49 GMT</pubDate>
            <atom:updated>2023-11-14T23:38:49.471Z</atom:updated>
            <content:encoded><![CDATA[<h4>An Info-graphical representation</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hWlDh8ImmUtwCj9iloiTBA.jpeg" /><figcaption><a href="https://deepai.org/machine-learning-model/surreal-graphics-generator">Image generated using AI</a></figcaption></figure><h3>Introduction</h3><h4>Definition of large language models (LLMs)</h4><p>Large language models are a type of machine learning model that has been trained on a massive amount of data to understand the human language and generate text/responses to the user input. These models are a subset of natural language processing (NLP) models and are designed to perform various language-related tasks, such as text generation, translation, sentiment analysis, question answering, and more.</p><h4>Historical background and development of LLMs</h4><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fe.infogram.com%2F1391fc40-0d4e-45c5-b80d-fc32d88e3cee%3Fsrc%3Dembed&amp;display_name=Infogram&amp;url=https%3A%2F%2Finfogram.com%2Fflow-light-1h7k2301e3dvg2x&amp;image=https%3A%2F%2Finfogram-thumbs-1024.s3-eu-west-1.amazonaws.com%2F588d7c44-ae82-4b73-844e-7ce74a5b1353.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=infogram" width="700" height="2200" frameborder="0" scrolling="no"><a href="https://medium.com/media/8bdf675f9a61408924b270fa7386284c/href">https://medium.com/media/8bdf675f9a61408924b270fa7386284c/href</a></iframe><p>The historical background and development of Large Language Models reflects the ever-evolving nature of NLP. From rule-based systems to statistical models and the resurgence of neural networks, the journey has been marked by transformative breakthroughs. While LLMs hold great promise for enhancing language understanding and generation, they also raise important ethical considerations that continue to shape the field. As we move forward, it is essential to strike a balance between harnessing the power of LLMs and addressing the ethical challenges they present in an increasingly AI-driven world.</p><h3>References</h3><p>Weaver, W. (1955). “Translation.” Machine translation of languages: Fourteen essays, 15–23.</p><p>Winograd, T. (1971). “Procedures as a Representation for Data in a Computer Program for Understanding Natural Language.” Communications of the ACM, 14(1), 36–45.</p><p>Jelinek, F., &amp; Mercer, R. L. (1980). “Interpolated estimation of Markov source parameters from sparse data.” Proceedings of the Workshop on Pattern Recognition in Practice, 381–397.</p><p>Mikolov, T., Karafiát, M., Burget, L., Černocký, J., &amp; Khudanpur, S. (2010). “Recurrent neural network based language model.” Proceedings of Interspeech, 1045–1048.</p><p>Mikolov, Tomas, et al. “Efficient estimation of word representations in vector space.” arXiv preprint arXiv:1301.3781 (2013).</p><p>Vaswani, A., et al. (2017). “Attention is all you need.” Advances in neural information processing systems, 30.</p><p>Radford, A., Narasimhan, K., Salimans, T., &amp; Sutskever, I. (2018). “Improving language understanding by generative pretraining.” OpenAI Blog.</p><p>Devlin, J., Chang, M. W., Lee, K., &amp; Toutanova, K. (2018). “BERT: Bidirectional Encoder Representations from Transformers.” arXiv preprint arXiv:1810.04805.</p><p>OpenAI. (2019). “OpenAI’s approach to AI safety.”</p><p>OpenAI. (2019). “The Malicious Use of AI: Forecasting, Prevention, and Mitigation.”</p><p>Liu, Y.,et al. (2019). “RoBERTa: A robustly optimized BERT pretraining approach.” arXiv preprint arXiv:1907.11692.</p><p>Brown, T. B., et al. (2020). “Language models are few-shot learners.” arXiv preprint arXiv:2005.14165.</p><p>Bender, E. M., Gebru, T., McMillan-Major, A., &amp; Shmitchell, S. (2021). “On the dangers of stochastic parrots: Can language models be too big?” arXiv preprint arXiv:2101.07061.</p><p>Chen, Mike, et al. “PaLM: Scaling language modeling with pathways.” arXiv preprint arXiv:2201.08237 (2022).</p><ul><li><a href="https://deepai.org/machine-learning-model/surreal-graphics-generator">Surreal Graphics Generator</a></li><li><a href="https://infogram.com/">Create Infographics, Reports and Maps - Infogram</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cbd6bb14131f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Strong Artificial Intelligence vs. Weak Artificial Intelligence]]></title>
            <link>https://medium.com/clairvoyantblog/strong-artificial-intelligence-vs-weak-artificial-intelligence-54aa385c3718?source=rss-f2fa32d54535------2</link>
            <guid isPermaLink="false">https://medium.com/p/54aa385c3718</guid>
            <category><![CDATA[generative-ai-tools]]></category>
            <category><![CDATA[weak-ai]]></category>
            <category><![CDATA[strong-ai]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[llm]]></category>
            <dc:creator><![CDATA[Imteyaz Ahmad]]></dc:creator>
            <pubDate>Thu, 07 Sep 2023 16:01:05 GMT</pubDate>
            <atom:updated>2023-09-07T16:01:05.750Z</atom:updated>
            <content:encoded><![CDATA[<h4>Unraveling the Spectrum of Machine Intelligence</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BFPijZlcui8de3HObbOlhQ.jpeg" /><figcaption>Image by <a href="https://pixabay.com/users/geralt-9301/?utm_source=link-attribution&amp;utm_medium=referral&amp;utm_campaign=image&amp;utm_content=1571852">Gerd Altmann</a> from <a href="https://pixabay.com//?utm_source=link-attribution&amp;utm_medium=referral&amp;utm_campaign=image&amp;utm_content=1571852">Pixabay</a></figcaption></figure><p><em>NOTE: Some parts of this article are generated using Generative AI.</em></p><h4><strong>Introduction</strong></h4><p>Within the realm of AI, there exist two distinct but interrelated concepts: <em>Strong Artificial Intelligence (Strong AI) and Weak Artificial Intelligence (Weak AI)</em>. These terms have their own level of intelligence, applications, implications, and philosophical considerations. In this article, we will dive into the fascinating world of Strong AI and Weak AI, exploring their characteristics, differences, and the broader implications they hold for the future.</p><p><strong>Strong Artificial Intelligence: Minds at Par</strong></p><p>On one end of the AI spectrum lies Strong AI, also known as Artificial General Intelligence (AGI), which refers to AI systems that possess human-like <em>cognitive abilities</em>. In essence, Strong AI exhibits <em>consciousness, self-awareness, and the ability to understand, learn, and reason across various domains</em>. Unlike specialized Weak AI systems that excel in specific tasks, Strong AI aims to replicate human-like cognitive processes, enabling it to perform any intellectual task that a human being can.</p><p>While Strong AI remains a theoretical concept, it has inspired numerous debates and discussions within the AI community. Prominent figures like Alan Turing and Ray Kurzweil have pondered the possibility of achieving Strong AI, envisioning a future where machines possess not just the ability to mimic human intelligence but to truly understand and experience it.</p><p><strong>Weak Artificial Intelligence: Task-Specific Expertise</strong></p><p>On the other end of the AI spectrum lies Weak AI, also referred to as Narrow AI or Applied AI. Weak AI systems are designed <em>to excel in specific tasks or domains, demonstrating impressive performance and efficiency within their predefined scope</em>. These systems leverage machine learning algorithms and data to accomplish tasks such as language translation, image recognition, recommendation systems, and more.</p><p>While Weak AI is prevalent in our daily lives, from virtual assistants like Siri to advanced medical diagnostics, these systems lack the overarching cognitive abilities associated with human intelligence. They operate within a fixed set of rules and patterns, showcasing expertise in their respective domains without a broader understanding of the world.</p><h4><strong>Key Differences</strong></h4><ol><li><strong>Scope of Abilities</strong>:<br>Strong AI possesses general cognitive capabilities similar to human intelligence.<br>Weak AI focuses on excelling in specific tasks and lacks holistic cognitive abilities.</li><li><strong>Learning and Adaptation</strong>:<br>Strong AI is expected to exhibit learning, adaptation, and reasoning across diverse domains.<br>Weak AI learns and adapts within its specialized domain but lacks comprehensive reasoning.</li><li><strong>Philosophical Implications:</strong><br>Strong AI raises questions about consciousness, self-awareness, and the nature of intelligence.<br>Weak AI primarily concerns practical applications without delving into philosophical inquiries.</li></ol><h4><strong>Implications and Considerations</strong></h4><p>The pursuit of Strong AI has profound implications for fields ranging from healthcare and education to industry and research. The prospect of machines possessing human-like understanding challenges traditional notions of identity, consciousness, and the ethical responsibilities associated with creating sentient entities.</p><p>Weak AI, on the other hand, is reshaping industries by automating tasks, enhancing efficiency, and driving innovation. Its practical applications improve our lives through convenience, accuracy, and advancements in various sectors.</p><h4><strong>Conclusion</strong></h4><p>The distinction between Strong AI and Weak AI highlights the spectrum of machine intelligence, from systems that replicate human cognition to those that excel in specific functions. While the dream of achieving Strong AI is still speculative, Weak AI’s practical applications continue to redefine how we interact with technology. As AI continues to evolve, the interplay between these two concepts will shape the future of technology, ethics, and our understanding of intelligence itself.</p><h4><strong>References</strong></h4><p>A. M. TURING, I. — COMPUTING MACHINERY AND INTELLIGENCE, <em>Mind</em>, Volume LIX, Issue 236, October 1950, Pages 433–460, <a href="https://doi.org/10.1093/mind/LIX.236.433">https://doi.org/10.1093/mind/LIX.236.433</a></p><p>Wikipedia contributors. (2023, August 10). Strong AI. In <em>Wikipedia, The Free Encyclopedia</em>. Retrieved 14:29, August 30, 2023, from <a href="https://en.wikipedia.org/w/index.php?title=Strong_AI&amp;oldid=1169643808">https://en.wikipedia.org/w/index.php?title=Strong_AI&amp;oldid=1169643808</a></p><p>Wikipedia contributors. (2023, July 26). Weak artificial intelligence. In <em>Wikipedia, The Free Encyclopedia</em>. Retrieved 14:30, August 30, 2023, from <a href="https://en.wikipedia.org/w/index.php?title=Weak_artificial_intelligence&amp;oldid=1167192118">https://en.wikipedia.org/w/index.php?title=Weak_artificial_intelligence&amp;oldid=1167192118</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=54aa385c3718" width="1" height="1" alt=""><hr><p><a href="https://medium.com/clairvoyantblog/strong-artificial-intelligence-vs-weak-artificial-intelligence-54aa385c3718">Strong Artificial Intelligence vs. Weak Artificial Intelligence</a> was originally published in <a href="https://medium.com/clairvoyantblog">Clairvoyant Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A Brief Introduction To Generative AI]]></title>
            <link>https://medium.com/clairvoyantblog/a-brief-introduction-to-generative-ai-3813851e2d9?source=rss-f2fa32d54535------2</link>
            <guid isPermaLink="false">https://medium.com/p/3813851e2d9</guid>
            <category><![CDATA[generative-ai]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[llm]]></category>
            <dc:creator><![CDATA[Imteyaz Ahmad]]></dc:creator>
            <pubDate>Tue, 29 Aug 2023 16:02:31 GMT</pubDate>
            <atom:updated>2023-08-29T16:02:31.666Z</atom:updated>
            <content:encoded><![CDATA[<h4>Exploring Generative AI and its role in an ever changing digital landscape</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-MV2996Z3ZMr7Z5nX5I_8A.jpeg" /><figcaption>Image by <a href="https://pixabay.com/users/franz26-1553839/?utm_source=link-attribution&amp;utm_medium=referral&amp;utm_campaign=image&amp;utm_content=8177861">Franz Bachinger</a> from <a href="https://pixabay.com//?utm_source=link-attribution&amp;utm_medium=referral&amp;utm_campaign=image&amp;utm_content=8177861">Pixabay</a></figcaption></figure><p><em>NOTE: Some parts of this article are generated using Generative AI.</em></p><p><strong>Introduction</strong></p><p>Artificial Intelligence (AI) has evolved by leaps and bounds, and one of its most intriguing facets is Generative Artificial Intelligence (Generative AI). Imagine machines that can create art, write poetry, compose music, and even generate human-like text. Generative AI is revolutionizing how we perceive creativity, pushing the boundaries of what machines can achieve. In this article, we delve into the world of Generative AI, exploring its techniques, applications, and the impact it’s having on various industries.</p><p><strong>Understanding Generative AI</strong></p><p>Generative Artificial Intelligence (Generative AI) refers to a subset of artificial intelligence techniques and models that are designed to generate new content, data, or outputs that mimic human-like creativity and decision-making.</p><p>At its core, Generative AI involves training machines to mimic human-like creativity and decision-making. Unlike traditional AI, which relies on predefined rules, Generative AI learns from vast datasets to generate new and original content. It’s about enabling machines to not just replicate patterns but to create novel outputs that exhibit traits we associate with human creativity.</p><p><strong>Techniques in Generative AI</strong></p><ol><li><strong>Generative Adversarial Networks (GANs):</strong> Developed by Ian Goodfellow and his colleagues, GANs are a cornerstone of Generative AI. They consist of two neural networks: a generator and a discriminator. The generator crafts content, such as images, and the discriminator evaluates their realism. Through a competitive process, the generator continually refines its output to make it increasingly difficult for the discriminator to tell real from generated data.</li><li><strong>Variational Autoencoders (VAEs):</strong> VAEs focus on learning a latent space representation of input data. This latent space can then be manipulated to generate new and diverse data points. VAEs find applications in image generation, style transfer, and more.</li><li><strong>Transformers:</strong> These models, often used in natural language processing, employ attention mechanisms to understand the relationships between different elements in a sequence. They’ve revolutionized language models, enabling the generation of coherent and contextually relevant text.</li></ol><p><strong>Applications of Generative AI</strong></p><ol><li><strong>Art and Creativity</strong>: Generative AI is turning machines into artists. It can create stunning visual art, blend styles, and even generate entirely new ones. AI-generated art challenges our perception of creativity and pushes the boundaries of what’s possible.</li><li><strong>Content Generation</strong>: In journalism, content creation, and marketing, Generative AI can help generate articles, product descriptions, and other textual content. This has the potential to streamline content creation processes and adapt to various styles and tones.</li><li><strong>Music and Composition:</strong> AI-powered composers are creating original compositions that challenge traditional notions of music composition. These compositions range from classical to experimental, showcasing AI’s ability to innovate in various artistic domains.</li><li><strong>Design and Architecture:</strong> Architects and designers are using Generative AI to explore innovative designs and structures. By inputting parameters and constraints, architects can quickly generate diverse design options that they might not have considered otherwise.</li></ol><p><strong>Impact and Considerations</strong></p><p>While Generative AI offers a multitude of benefits, ethical considerations also arise. As machines generate more content, issues of authorship, copyright, and authenticity need careful attention. Additionally, there’s the debate surrounding the nature of creativity — can machines truly be creative, or are they just replicating patterns they’ve learned from humans?</p><p><strong>Conclusion</strong></p><p>Generative Artificial Intelligence represents an exciting evolution in AI capabilities. It blurs the lines between human creativity and machine-generated content, pushing the boundaries of what machines can achieve. From creating art to composing music and generating text, Generative AI’s impact is profound across industries. As the field continues to advance, it prompts us to reevaluate our notions of creativity, imagination, and the relationship between humans and machines.</p><p><strong>References</strong></p><ul><li><a href="https://www.cloudskillsboost.google/course_templates/536">Introduction to Generative AI | Google Skills</a></li><li><a href="https://www.linkedin.com/learning/paths/career-essentials-in-generative-ai-by-microsoft-and-linkedin">Career Essentials in Generative AI by Microsoft and LinkedIn Learning Path | LinkedIn Learning, formerly Lynda.com</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3813851e2d9" width="1" height="1" alt=""><hr><p><a href="https://medium.com/clairvoyantblog/a-brief-introduction-to-generative-ai-3813851e2d9">A Brief Introduction To Generative AI</a> was originally published in <a href="https://medium.com/clairvoyantblog">Clairvoyant Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Elasticsearch: Java High-Level REST Client]]></title>
            <link>https://medium.com/clairvoyantblog/elasticsearch-java-high-level-rest-client-1c029610348d?source=rss-f2fa32d54535------2</link>
            <guid isPermaLink="false">https://medium.com/p/1c029610348d</guid>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[java]]></category>
            <category><![CDATA[api]]></category>
            <category><![CDATA[rest-client]]></category>
            <category><![CDATA[elasticsearch]]></category>
            <dc:creator><![CDATA[Imteyaz Ahmad]]></dc:creator>
            <pubDate>Fri, 22 Nov 2019 19:50:26 GMT</pubDate>
            <atom:updated>2020-01-14T16:06:53.606Z</atom:updated>
            <content:encoded><![CDATA[<h4>Discussing the Elasticsearch Java High-Level REST client, how to initialize it and use it for making queries on Elasticsearch</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/1*ANXAciPpuTXVuPCxDygZjQ.jpeg" /><figcaption>Client(Copyright <a href="https://cdn.pixabay.com/photo/2015/11/03/08/56/network-1019809_960_720.jpg">Pixabay</a>)</figcaption></figure><h3>Introduction</h3><p>Elasticsearch 5.0 introduced a Java REST client. The first Java REST Client released was called <a href="https://www.elastic.co/guide/en/elasticsearch/client/java-rest/current/java-rest-low.html">Low-level Java Rest Client</a>. It provided the following features:</p><ul><li>Compatibility with any Elasticsearch version</li><li>Load Balancing across all available nodes</li><li>Failover in case of node failures and upon specific response codes</li><li>Failed connection penalization</li><li>Persistent connections</li><li>Trace logging of requests and responses</li><li>Optional automatic discovery of cluster nodes (also known as sniffing)</li></ul><p>Despite the above features, this client was too low-level and Java users would have to build requests and parse the response from Elasticsearch by themselves.</p><h3>Java High-Level REST Client</h3><p>The Java High-Level REST is built on top of the low-level client described above. It provides different API specific methods that accept objects as arguments and returns a response as an object, hence taking care of the request marshaling and response unmarshalling. For example, it exposes the <a href="https://github.com/elastic/elasticsearch/blob/master/client/rest-high-level/src/main/java/org/elasticsearch/client/RestHighLevelClient.java">public final</a><a href="https://github.com/elastic/elasticsearch/blob/master/client/rest-high-level/src/main/java/org/elasticsearch/client/RestHighLevelClient.java"><strong> </strong></a><a href="https://github.com/elastic/elasticsearch/blob/master/client/rest-high-level/src/main/java/org/elasticsearch/client/RestHighLevelClient.java">SearchResponse search(SearchRequest searchRequest, RequestOptions options) throws</a><a href="https://github.com/elastic/elasticsearch/blob/master/client/rest-high-level/src/main/java/org/elasticsearch/client/RestHighLevelClient.java"><strong> </strong></a><a href="https://github.com/elastic/elasticsearch/blob/master/client/rest-high-level/src/main/java/org/elasticsearch/client/RestHighLevelClient.java">IOException</a> function for Search API. Here we need to build the request as SearchRequest and SearchResponse is returned as the response. The client itself does the marshaling and unmarshalling of objects.</p><p>It provides two variants of each APIs — <em>synchronous</em> and <em>asynchronous</em>. The <em>synchronous</em> methods return a response object while the <em>asynchronous</em> methods require a listener argument that will be notified on success or on an error. For example:</p><pre>SearchRequest searchRequest = <strong>new </strong>SearchRequest(<strong>&quot;posts&quot;</strong>);<br>RestHighLevelClient highLevelClient1 = <strong>new </strong>RestHighLevelClient(<br>    RestClient.<em>builder</em>(<br>        <strong>new </strong>HttpHost(<strong>&quot;localhost&quot;</strong>, 9200, <strong>&quot;http&quot;</strong>),<br>        <strong>new </strong>HttpHost(<strong>&quot;localhost&quot;</strong>, 9201, <strong>&quot;http&quot;</strong>),<br>        <strong>new </strong>HttpHost(<strong>&quot;localhost&quot;</strong>, 9202, <strong>&quot;http&quot;</strong>)));</pre><pre>// Calling API synchronously.<br>SearchResponse search = highLevelClient.search(searchRequest, RequestOptions.<strong><em>DEFAULT</em></strong>);</pre><pre>// Calling API asynchronously.<br>highLevelClient.searchAsync(searchRequest, RequestOptions.<strong><em>DEFAULT</em></strong>,<br>    <strong>new </strong>ActionListener&lt;&gt;() {<br>      @Override<br>      <strong>public void </strong>onResponse(SearchResponse searchResponse) {<br>        <strong><em>LOGGER</em></strong>.log(Level.<strong><em>INFO</em></strong>, <strong>&quot;Got response: {}&quot;</strong>, searchResponse);<br>      }<br><br>      @Override<br>      <strong>public void </strong>onFailure(Exception e) {<br>        <strong><em>LOGGER</em></strong>.error(<strong>&quot;Some error occurred  {}&quot;</strong>, e.getMessage());<br>      }<br>    });</pre><p><em>It is forward compatible,</em> which means it can communicate with any better/higher version than it was developed for. For instance, despite an Elasticsearch version 7.4.2 and a client version 6.8.4 in one of my machines, I am still able to make calls to the Elasticsearch. For more details about compatibility, please refer to <a href="https://www.elastic.co/guide/en/elasticsearch/client/java-rest/current/java-rest-high-compatibility.html">this</a>.</p><p>The high-level Java REST client is hosted on Maven central can be imported in your project as described below:</p><ul><li>If you are using Maven, then add the following in your pom.xml</li></ul><pre>&lt;dependency&gt;<br>    &lt;groupId&gt;org.elasticsearch.client&lt;/groupId&gt;<br>    &lt;artifactId&gt;elasticsearch-rest-high-level-client&lt;/artifactId<br>   // Change this as per your requirement<br>   &lt;version&gt;7.4.2&lt;/version&gt;<br>&lt;/dependency&gt;</pre><ul><li>If you are using Gradle, then add the following in your build.gradle file</li></ul><pre>dependencies {<br> //Change the version as needed<br> implementation &#39;org.elasticsearch.client:elasticsearch-rest-high-level-client:6.8.4&#39;<br>}</pre><p>Once the project is built, we can initialize the High-Level client as below:</p><pre>RestHighLevelClient highLevelClient = <strong>new </strong>RestHighLevelClient(<br>    RestClient.<em>builder</em>(<br>        <strong>new </strong>HttpHost(<strong>&quot;localhost&quot;</strong>, 9200, <strong>&quot;http&quot;</strong>),<br>        <strong>new </strong>HttpHost(<strong>&quot;localhost&quot;</strong>, 9201, <strong>&quot;http&quot;</strong>),<br>        <strong>new </strong>HttpHost(<strong>&quot;localhost&quot;</strong>, 9202, <strong>&quot;http&quot;</strong>)));</pre><p>The High-Level REST Client internally creates a low-level client to perform the request. Once you are done with the request processing, do not forget to close the client. This can be done by calling the highLevelClient.close() method.</p><h3>Performing request using the High-Level REST Client</h3><p>Here is one example for sending a matchAllQuery using the High-level REST client</p><pre>SearchRequest searchRequest = <strong>new </strong>SearchRequest(<strong>&quot;posts&quot;</strong>);<br>SearchSourceBuilder sourceBuilder = <strong>new </strong>SearchSourceBuilder();<br>sourceBuilder.query(QueryBuilders.<em>matchAllQuery</em>());<br>searchRequest.source(sourceBuilder);<br>SearchResponse search = highLevelClient.search(searchRequest, RequestOptions.<strong><em>DEFAULT</em></strong>);</pre><pre>SearchHit[] hits = response.getHits().getHits();<br>Assert.<em>assertEquals</em>(4, hits.<strong>length</strong>);<br>Assert.<em>assertEquals</em>(&quot;We are using Elasticsearch High-Level REST Client&quot;, hits[0].getSourceAsMap().get(<strong>&quot;message&quot;</strong>));</pre><p>Similarly, we can call other APIs provided by Elasticsearch as well. That’s all for this article. Happy Learning 📝.</p><h3><strong>Copyrights and References</strong></h3><ul><li><a href="https://www.elastic.co/guide/en/elasticsearch/client/java-rest/current/java-rest-low.html">https://www.elastic.co/guide/en/elasticsearch/client/java-rest/current/java-rest-low.html</a></li><li><a href="https://pixabay.com/photos/agreement-business-businessman-3489902/">https://pixabay.com/photos/agreement-business-businessman-3489902/</a></li><li><a href="https://www.elastic.co/blog/state-of-the-official-elasticsearch-java-clients">https://www.elastic.co/blog/state-of-the-official-elasticsearch-java-clients</a></li><li><a href="https://www.elastic.co/blog/benchmarking-rest-client-transport-client">https://www.elastic.co/blog/benchmarking-rest-client-transport-client</a></li><li><a href="https://www.elastic.co/guide/en/elasticsearch/client/java-rest/current/index.html">https://www.elastic.co/guide/en/elasticsearch/client/java-rest/current/index.html</a></li><li><a href="https://www.elastic.co/guide/en/elasticsearch/client/java-rest/current/java-rest-high-compatibility.html">https://www.elastic.co/guide/en/elasticsearch/client/java-rest/current/java-rest-high-compatibility.html</a></li></ul><p>The classic TransportClient is deprecated in Elasticsearch 7.0 and will be removed in version 8.0.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1c029610348d" width="1" height="1" alt=""><hr><p><a href="https://medium.com/clairvoyantblog/elasticsearch-java-high-level-rest-client-1c029610348d">Elasticsearch: Java High-Level REST Client</a> was originally published in <a href="https://medium.com/clairvoyantblog">Clairvoyant Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Apache Kafka Serde]]></title>
            <link>https://medium.com/clairvoyantblog/apache-kafka-serde-55a70944e187?source=rss-f2fa32d54535------2</link>
            <guid isPermaLink="false">https://medium.com/p/55a70944e187</guid>
            <category><![CDATA[big-data]]></category>
            <category><![CDATA[apache]]></category>
            <category><![CDATA[java]]></category>
            <category><![CDATA[kafka]]></category>
            <dc:creator><![CDATA[Imteyaz Ahmad]]></dc:creator>
            <pubDate>Thu, 25 Apr 2019 14:27:44 GMT</pubDate>
            <atom:updated>2019-04-25T14:27:44.459Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*o8RW33XWIJ1gtIJn_xxvmA.jpeg" /><figcaption>Serialization vs Deserialization (<a href="https://pixabay.com/photos/row-houses-serial-houses-houses-384596/">Row Houses</a>)</figcaption></figure><p><strong>Serialization</strong> means converting the state of an object into byte stream so that it can be used to construct copies of the object when needed.</p><p><strong>Deserialization</strong> is the process of converting the byte stream (serialized object) into the copy of the object in memory.</p><p>In the case of Apache Kafka, serialization/deserialization becomes important as it stores and transfers data as a byte array.</p><p>The Apache Kafka provides aSerde interface, which is a wrapper for serializer and deserializer of a data type. Kafka provides an implementation for several common data types. These implementations are present in <a href="https://mvnrepository.com/artifact/org.apache.kafka/kafka-clients/2.2.0">kafka-cleints</a> jar.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kwfZRFvvefUVyf4ORZdTVg.png" /><figcaption>Kafka Provided Implementations of Serde interface</figcaption></figure><p>Kafka also provide a factory called Serdes for creating those implementations. For example, if we want to create the Serde for String type, we can do that as follows:</p><pre>//Creates a String serde<br>Serde&lt;String&gt; stringSerde = Serdes.<em>String</em>();</pre><pre>// Creates a Long serde<br>Serde&lt;Long&gt; longSerde = Serdes.<em>Long</em>();</pre><p>Since these implementations have a serializer and deserializer for a data type we don’t have to define <em>key</em> serializer/deserializer and <em>value</em> serializer/deserializer every time we want to use Serde.</p><h3>Writing a Custom Serde</h3><p>Although Kafka provides several Serde implementations (String, Long, Integer, etc.) out of the box, we need to write our own implementations for more complex data types(e.g User-defined data types). In this section, we will define the steps to create a custom implementation:</p><ul><li>First, We need to define our own implementation of Serializer&lt;T&gt; and Deserializer&lt;T&gt; interfaces.</li><li>Then, we can use the utility method Serde&lt;T&gt; serdeFrom(final Serializer&lt;T&gt; serializer, final Deserializer&lt;T&gt; deserializer) from Serdes to get the customSerde&lt;T&gt;.</li></ul><p>Let us take an example of a data type called Book. We need to implement custom Serde for this.</p><pre><strong>public class </strong>Book {<br><br>  <strong>private </strong>String <strong>isbnNumber</strong>;<br><br>  <strong>private </strong>String <strong>title</strong>;<br><br>  <em>// Getter, Setter and other methods omitted for brevity<br><br></em>}</pre><h4>Implementing a Serializer for Book</h4><p>The Serializer interface provides the below 3 methods which can be overridden:</p><pre><em>/**<br> * Configure this class.<br> * </em><strong><em>@param configs </em></strong><em>configs in key/value pairs<br> * </em><strong><em>@param isKey </em></strong><em>whether is for key or value<br> */<br></em><strong>void </strong>configure(Map&lt;String, ?&gt; configs, <strong>boolean </strong>isKey);<br><br><em>/**<br> * Convert {</em><strong><em>@code </em></strong><em>data} into a byte array.<br> *<br> * </em><strong><em>@param topic </em></strong><em>topic associated with data<br> * </em><strong><em>@param data </em></strong><em>typed data<br> * </em><strong><em>@return </em></strong><em>serialized bytes<br> */<br></em><strong>byte</strong>[] serialize(String topic, T data);<br><br><em>/**<br> * Close this serializer.<br> *<br> * This method must be idempotent as it may be called multiple times.<br> */<br></em>@Override<br><strong>void </strong>close(); // This is an inherited method from <em>Closeable</em></pre><p>Here we are going to override theserialize method. Below is the code for the BookSerializer:</p><pre><strong>package </strong>com.clairvoyant;<br><br><strong>import </strong>com.fasterxml.jackson.databind.ObjectMapper;<br><strong>import </strong>java.util.Map;<br><strong>import </strong>java.util.Objects;<br><strong>import </strong>org.apache.kafka.common.errors.SerializationException;<br><strong>import </strong>org.apache.kafka.common.serialization.Serializer;<br><br><em>/**<br> * created by imteyaza-1lm on 2019-04-23<br> **/<br></em><strong>public class </strong>BookSerializer <strong>implements </strong>Serializer&lt;Book&gt; {<br><br>  <strong>private final </strong>ObjectMapper <strong>objectMapper </strong>= <strong>new </strong>ObjectMapper();<br><br>  @Override<br>  <strong>public void </strong>configure(Map&lt;String, ?&gt; configs, <strong>boolean </strong>isKey) {<br><br>  }<br><br>  @Override<br>  <strong>public byte</strong>[] serialize(String topic, Book data) {<br><br>    <strong>if </strong>(Objects.<em>isNull</em>(data)) {<br>      <strong>return null</strong>;<br>    }<br>    <strong>try </strong>{<br>      <strong>return objectMapper</strong>.writeValueAsBytes(data);<br>    } <strong>catch </strong>(Exception e) {<br>      <strong>throw new </strong>SerializationException(<strong>&quot;Error serializing message&quot;</strong>, e);<br>    }<br>  }<br><br>  @Override<br>  <strong>public void </strong>close() {<br><br>  }<br>}</pre><p>The ObjectMapper class from <a href="https://github.com/FasterXML/jackson">Jackson</a>.</p><h4>Implementing a Deserializer for Book</h4><p>The Deserializer interface provides the below 3 methods which can be overridden:</p><pre><em>/**<br> * Configure this class.<br> * </em><strong><em>@param configs </em></strong><em>configs in key/value pairs<br> * </em><strong><em>@param isKey </em></strong><em>whether is for key or value<br> */<br></em><strong>void </strong>configure(Map&lt;String, ?&gt; configs, <strong>boolean </strong>isKey);<br><br><em>/**<br> * Deserialize a record value from a byte array into a value or object.<br> * </em><strong><em>@param topic </em></strong><em>topic associated with the data<br> * </em><strong><em>@param data </em></strong><em>serialized bytes; may be null; implementations are recommended to handle null by returning a value or null rather than throwing an exception.<br> * </em><strong><em>@return </em></strong><em>deserialized typed data; may be null<br> */<br></em>T deserialize(String topic, <strong>byte</strong>[] data);<br><br>@Override<br><strong>void </strong>close(); // This is an inherited method from <em>Closeable</em></pre><p>We will only override the deserialize method here as shown in the code below:</p><pre><strong>package </strong>com.clairvoyant;<br><br><strong>import </strong>com.fasterxml.jackson.databind.ObjectMapper;<br><strong>import </strong>java.util.Map;<br><strong>import </strong>java.util.Objects;<br><strong>import </strong>org.apache.kafka.common.errors.SerializationException;<br><strong>import </strong>org.apache.kafka.common.serialization.Deserializer;<br><br><em>/**<br> * created by imteyaza-1lm on 2019-04-23<br> **/<br></em><strong>public class </strong>BookDeserializer <strong>implements </strong>Deserializer&lt;Book&gt; {<br><br>  <strong>private </strong>ObjectMapper <strong>objectMapper </strong>= <strong>new </strong>ObjectMapper();<br><br>  @Override<br>  <strong>public void </strong>configure(Map&lt;String, ?&gt; configs, <strong>boolean </strong>isKey) {<br><br>  }<br><br>  @Override<br>  <strong>public </strong>Book deserialize(String topic, <strong>byte</strong>[] bytes) {<br>    <strong>if </strong>(Objects.<em>isNull</em>(bytes)) {<br>      <strong>return null</strong>;<br>    }<br><br>    Book data;<br>    <strong>try </strong>{<br>      data = <strong>objectMapper</strong>.treeToValue(<strong>objectMapper</strong>.readTree(bytes), Book.<strong>class</strong>);<br>    } <strong>catch </strong>(Exception e) {<br>      <strong>throw new </strong>SerializationException(e);<br>    }<br><br>    <strong>return </strong>data;<br>  }<br><br>  @Override<br>  <strong>public void </strong>close() {<br><br>  }<br>}</pre><p>Once we have implemented the Serializer and Deserializer interfaces, we can create the custom Serde for Book:</p><pre>Serde&lt;Book&gt; bookSerde = Serdes.<em>serdeFrom</em>(<strong>new </strong>BookSerializer(), <strong>new </strong>BookDeserializer());</pre><p>Now, we can use this BookSerde as follows:</p><pre>Serde&lt;Book&gt; bookSerde = Serdes.<em>serdeFrom</em>(<strong>new </strong>BookSerializer(), <strong>new </strong>BookDeserializer());<br>Properties props = <strong>new </strong>Properties();<br>props.put(<strong>&quot;application.id&quot;</strong>, <strong>&quot;book_app&quot;</strong>);<br>props.put(<strong>&quot;bootstrap.servers&quot;</strong>, <strong>&quot;localhost:9092,localhost:9093&quot;</strong>);<br>props.put(<strong>&quot;key.serializer&quot;</strong>, bookSerde.serializer().getClass());<br>props.put(<strong>&quot;value.serializer&quot;</strong>, bookSerde.deserializer().getClass());</pre><h3>References</h3><ul><li><a href="https://docs.oracle.com/javase/tutorial/jndi/objects/serial.html">https://docs.oracle.com/javase/tutorial/jndi/objects/serial.html</a></li><li><a href="https://kafka.apache.org/documentation/#api">https://kafka.apache.org/documentation/#api</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=55a70944e187" width="1" height="1" alt=""><hr><p><a href="https://medium.com/clairvoyantblog/apache-kafka-serde-55a70944e187">Apache Kafka Serde</a> was originally published in <a href="https://medium.com/clairvoyantblog">Clairvoyant Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Writing Custom Partitioner for Apache Kafka]]></title>
            <link>https://medium.com/clairvoyantblog/writing-custom-partitioner-for-apache-kafka-77935e46064e?source=rss-f2fa32d54535------2</link>
            <guid isPermaLink="false">https://medium.com/p/77935e46064e</guid>
            <category><![CDATA[big-data]]></category>
            <category><![CDATA[kafka]]></category>
            <dc:creator><![CDATA[Imteyaz Ahmad]]></dc:creator>
            <pubDate>Thu, 18 Apr 2019 07:13:38 GMT</pubDate>
            <atom:updated>2019-08-16T01:38:46.995Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MK7uXLbT366zWYrwJ3UsUQ.jpeg" /><figcaption>Partition</figcaption></figure><h3><strong>Topic and Partitions</strong></h3><p>In Kafka, a topic is a log identified by the topic name. The Kafka producers send the messages/data to a particular topic and consumers read the data from that topic. A topic can further be sub-divided into partitions. A record is stored in a partition. The strategies for sending the record to a partition are explained in the following section.</p><h3><strong>How <em>DefaultPartitioner works?</em></strong></h3><p>The below explains the default partitioning strategy:</p><ul><li><em>If a partition is specified in the record, use it - </em>this can be used when we already know the partition</li><li><em>If no partition is specified but a key is present, choose a partition based on a hash of the key - </em>It can be used when we want to distribute the data based on a key. The following formula is used to determine the partition:</li></ul><pre>hashCode(key) % noOfPartitions</pre><ul><li><em>If no partition or key is present, choose a partition in a round-robin fashion - </em>If<em> </em>we are not bothered which partition our data is going to, this strategy can be used</li></ul><p>Default strategies work well to start with. The problem surfaces, when we want the data for the same customers to go to the same partition and we have used a composite key to partition the data. For instance, let’s consider the case of using a key that contains a customer ID and a date. Now, although the customer ID is fixed, the date can change and we will end up with a different hash code, which will mean that the data for the same customer will go to different partitions.</p><h3>Writing custom Partitioner</h3><p>Apache Kafka provides an interface called <em>Partitioner. </em>This interface has three methods as shown in the code below.<em> </em>Kafka also provides a default implementation of this interface called <em>DefaultPartitioner.</em> We need to override these methods for writing our custom partitioner<em>.</em> We can also extend the <em>DefaultPartitioner</em> and override the required method(s) only .</p><pre><em>/**<br> * Configure this class with the given key-value pairs<br> */<br></em><strong>void </strong>configure(Map&lt;String, ?&gt; configs); // this is inherited from another interface <em>Configurable</em></pre><pre><em>/**<br> * Compute the partition for the given record.<br> *<br> * </em><strong><em>@param topic </em></strong><em>The topic name<br> * </em><strong><em>@param key </em></strong><em>The key to partition on (or null if no key)<br> * </em><strong><em>@param keyBytes </em></strong><em>The serialized key to partition on( or null if no key)<br> * </em><strong><em>@param value </em></strong><em>The value to partition on or null<br> * </em><strong><em>@param valueBytes </em></strong><em>The serialized value to partition on or null<br> * </em><strong><em>@param cluster </em></strong><em>The current cluster metadata<br> */<br></em><strong>int </strong>partition(String topic, Object key, <strong>byte</strong>[] keyBytes, Object value, <strong>byte</strong>[] valueBytes, Cluster cluster);<br><br><em>/**<br> * This is called when partitioner is closed.<br> */<br></em><strong>void </strong>close();</pre><p>Let’s take the example of a ticket booking app. Here, we want all the booking related data of a particular customer to go to a particular partition and we have a key which is comprised of the <em>customer ID </em>and <em>booking date</em>.</p><pre><em>/**<br> * created by imteyaza-1lm on 2019-04-18<br> **/<br></em><strong>public class </strong>BookingKey {<br><br>  <strong>private </strong>String <strong>customerId</strong>;<br>  <strong>private </strong>LocalDate <strong>bookingDate</strong>;<br><br>  <strong>public </strong>BookingKey(String customerId, LocalDate bookingDate) {<br>    <strong>this</strong>.<strong>customerId </strong>= customerId;<br>    <strong>this</strong>.<strong>bookingDate </strong>= bookingDate;<br>  }<br><br>  <strong>public </strong>String getCustomerId() {<br>    <strong>return customerId</strong>;<br>  }<br><br>  <strong>public </strong>LocalDate getBookingDate() {<br>    <strong>return bookingDate</strong>;<br>  }<br><br>  @Override<br>  <strong>public </strong>String toString() {<br>    <strong>return &quot;BookingKey{&quot; </strong>+<br>        <strong>&quot;customerId=&#39;&quot; </strong>+ <strong>customerId </strong>+ <strong>&#39;\&#39;&#39; </strong>+<br>        <strong>&quot;, bookingDate=&quot; </strong>+ <strong>bookingDate </strong>+<br>        <strong>&#39;}&#39;</strong>;<br>  }<br>}</pre><p>Here, the customer can book the tickets on different dates, which means the hash code will be different for each key. If we include the <em>bookingDate</em> along with the <em>customerId, </em>the data for the same customer can go to different partitions.</p><p>To solve this problem, we need to override the partition logic, which will mean, it will include only the <em>customerId</em> to make sure that data for a particular customer always goes to the same partition.</p><p>Here, we have extended the DefaultPartitioner and overrode the logic to get the bytes for the key. Rest of the things are delegated to the parent class.</p><pre><strong>import </strong>java.util.Objects;<br><strong>import </strong>org.apache.kafka.clients.producer.internals.DefaultPartitioner;<br><strong>import </strong>org.apache.kafka.common.Cluster;<br><br><em>/**<br> * created by imteyaza-1lm on 2019-04-16<br> **/<br></em><strong>public class </strong>CustomPartitioner <strong>extends </strong>DefaultPartitioner {<br><br>  @Override<br>  <strong>public int </strong>partition(String topic, Object key, <strong>byte</strong>[] keyBytes, Object value, <strong>byte</strong>[] valueBytes,<br>      Cluster cluster) {<br><br>    String partitionKey = <strong>null</strong>;<br>    <strong>if </strong>(Objects.<em>nonNull</em>(key)) {<br>      BookingKey bookingKey = (BookingKey) key;<br>      partitionKey = bookingKey.getCustomerId();<br>      //Ignore bookingKey.getBookingDate()</pre><pre>      keyBytes = partitionKey.getBytes();<br>    }<br>    <strong>return super</strong>.partition(topic, partitionKey, keyBytes, value, valueBytes, cluster);<br>  }<br>}</pre><h3>Using the custom partitioner</h3><p>Once we have created our custom partitioner, we need to define it in producer properties as follows:</p><pre><strong>package </strong>com.clairvoyant.producer;<br><br><strong>import </strong>java.time.LocalDate;<br><strong>import </strong>java.util.Properties;<br><strong>import </strong>java.util.UUID;<br><strong>import </strong>org.apache.kafka.clients.producer.KafkaProducer;<br><strong>import </strong>org.apache.kafka.clients.producer.Producer;<br><strong>import </strong>org.apache.kafka.clients.producer.ProducerRecord;<br><br><em>/**<br> * created by imteyaza-1lm on 2019-04-18<br> **/<br></em><strong>public class </strong>BookingProducer {<br><br>  <strong>public static void </strong>main(String[] args) {<br>    String topicName = <strong>&quot;consumer&quot;</strong>;<br><br>    Properties props = <strong>new </strong>Properties();<br>    props.put(<strong>&quot;bootstrap.servers&quot;</strong>, <strong>&quot;localhost:9092&quot;</strong>);</pre><pre> // we need to define the key serializer here  <br>    props.put(<strong>&quot;key.serializer&quot;</strong>, <strong>&quot;org.apache.kafka.common.serialization.StringSerializer&quot;</strong>);<br>    props.put(<strong>&quot;value.serializer&quot;</strong>, <strong>&quot;org.apache.kafka.common.serialization.StringSerializer&quot;</strong>);<br><br>    <em>// here we are using the partitioner we created<br>    </em>props.put(<strong>&quot;partitioner.class&quot;</strong>, <strong>&quot;com.clairvoyant.producer.CustomPartitioner&quot;</strong>);<br><br>    Producer&lt;BookingKey, String&gt; producer = <strong>new </strong>KafkaProducer&lt;&gt;(props);<br><br>    <strong>for </strong>(<strong>int </strong>i = 0; i &lt; 10; i++) {<br>      producer.send(<br>          <strong>new </strong>ProducerRecord&lt;&gt;(topicName,<br>              <strong>new </strong>BookingKey(UUID.<em>randomUUID</em>().toString(), LocalDate.<em>now</em>()),<br>              <strong>&quot;value&quot; </strong>+ i));<br>    }<br>    producer.close();<br>  }<br>}</pre><h3>References and Copyrights</h3><ul><li><a href="https://kafka.apache.org/intro">https://kafka.apache.org/</a></li><li><a href="https://www.confluent.io/blog/how-choose-number-topics-partitions-kafka-cluster">https://www.confluent.io/blog/how-choose-number-topics-partitions-kafka-cluster</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=77935e46064e" width="1" height="1" alt=""><hr><p><a href="https://medium.com/clairvoyantblog/writing-custom-partitioner-for-apache-kafka-77935e46064e">Writing Custom Partitioner for Apache Kafka</a> was originally published in <a href="https://medium.com/clairvoyantblog">Clairvoyant Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Getting Kafka Details Using AdminClient API]]></title>
            <link>https://medium.com/clairvoyantblog/getting-apache-topic-details-using-java-ecbe8fdf10e2?source=rss-f2fa32d54535------2</link>
            <guid isPermaLink="false">https://medium.com/p/ecbe8fdf10e2</guid>
            <category><![CDATA[java]]></category>
            <category><![CDATA[kafka]]></category>
            <dc:creator><![CDATA[Imteyaz Ahmad]]></dc:creator>
            <pubDate>Thu, 11 Apr 2019 15:29:43 GMT</pubDate>
            <atom:updated>2020-01-24T19:29:28.259Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kQXkMQTrMrG4VJ3KZehaqA.png" /><figcaption>Copyright @<a href="https://kafka.apache.org/">https://kafka.apache.org</a></figcaption></figure><p>Sometimes we need to know details about the topics in our Apache Kafka cluster. If we have access to the machine, we can run the following command and check the details:</p><pre>bin/kafka-topics.sh --describe --bootstrap-server &lt;bootstrap-server-address:port&gt; --topic &lt;topic name&gt;</pre><p>Or if we have tools like <a href="https://github.com/yahoo/kafka-manager">Yahoo Kafka Manager</a> deployed then we can get the details from the `topic` tab. It shows the details like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uTj2aiOwrFtIsITNQkwziQ.png" /><figcaption>Yahoo Kafka Manager Topic View</figcaption></figure><p>However, if we don’t have access to the machine where it is deployed or we don’t have a tool like <a href="https://github.com/yahoo/kafka-manager">Yahoo Kafka Manager</a>, we can use Apache Kafka’s <a href="https://kafka.apache.org/documentation/#adminapi"><em>AdminClient API</em></a> for getting details about the topic.</p><p>The <a href="https://kafka.apache.org/documentation/#adminapi"><em>AdminClient API</em></a> supports managing and inspecting topics, brokers, acls, and other Kafka objects. In this article, we will discuss how to get the topics and their descriptions using Kafka AdminClient APIs.</p><h3>Getting dependencies</h3><p>We need to add `kafka-clients` as a dependency in our project.</p><ul><li>With Maven</li></ul><pre>&lt;dependency&gt;<br> &lt;groupId&gt;org.apache.kafka&lt;/groupId&gt;<br> &lt;artifactId&gt;kafka-clients&lt;/artifactId&gt;<br> &lt;version&gt;2.2.0&lt;/version&gt;<br>&lt;/dependency&gt;</pre><ul><li>With Gradle</li></ul><pre>implementation &#39;org.apache.kafka:kafka-clients:2.2.0&#39;</pre><h3>Connecting to Kafka using Admin API</h3><pre>public class KafkaTopicPrinter {<br>  public static void main(String args []) {</pre><pre>// First we need to initialize Kafka properties<br>    Properties properties = new Properties();<br>    properties.put(&quot;bootstrap.servers&quot;,&quot;localhost:9092&quot;);<br>    properties.put(&quot;client.id&quot;,&quot;java-admin-client&quot;);</pre><pre>System.out.println(&quot;***** Topics *****&quot;);<br>    printTopicDetails(properties);</pre><pre>System.out.println(&quot;***** Topics Description *****&quot;);<br>    printTopicDescription(properties);<br>  }</pre><pre>private static void printTopicDetails(Properties properties) {<br>    Collection&lt;TopicListing&gt; listings;</pre><pre>// Create  an AdminClient using the properties initialized earlier<br>    try (AdminClient client = AdminClient.create(properties)) {<br>      listings = getTopicListing(client, true);<br>      listings.forEach(<br>      topic -&gt; System.out.println(&quot;Name: &quot; + topic.name() + &quot;, isInternal: &quot; + topic.isInternal()));<br>    } catch (InterruptedException e) {<br>      Thread.currentThread().interrupt();<br>    } catch (ExecutionException e) {<br>      LOGGER.log(Level.SEVERE, &quot;Failed to get topic list {0}&quot;, e.getCause());<br>    }<br>  }</pre><pre>private static void printTopicDescription(Properties properties) {<br>    Collection&lt;TopicListing&gt; listings;<br>    // Create  an AdminClient using the properties initialized earlier<br>    try (AdminClient client = AdminClient.create(properties)) {<br>      listings = getTopicListing(client, false);<br>      List&lt;String&gt; topics = listings.stream().map(TopicListing::name)<br>      .collect(Collectors.toList());<br>      DescribeTopicsResult result = client.describeTopics(topics);<br>      result.values().forEach((key, value) -&gt; {<br>        try {<br>          System.out.println(key + &quot;: &quot; + value.get());<br>        } catch (InterruptedException e) {<br>          Thread.currentThread().interrupt();<br>        } catch (ExecutionException e) {<br>          LOGGER.log(Level.SEVERE, &quot;Failed to execute&quot;, e.getCause());<br>        }<br>      });<br>    } catch (InterruptedException e) {<br>      Thread.currentThread().interrupt();<br>    } catch (ExecutionException e) {<br>      LOGGER.log(Level.SEVERE, &quot;Failed to get topic list&quot;, e.getCause());<br>    }<br>  }</pre><pre>private static Collection&lt;TopicListing&gt; getTopicListing(AdminClient client, boolean isInternal)<br>  throws InterruptedException, ExecutionException {<br>    ListTopicsOptions options = new ListTopicsOptions();<br>    options.listInternal(isInternal);<br>    return client.listTopics(options).listings().get();<br>  }<br>}</pre><p>This should print something like this:</p><pre>***** Topics *****<br>Name: producer, isInternal: false<br>Name: __consumer_offsets, isInternal: true</pre><pre>***** Topics Description *****<br>producer: (name=producer, internal=false, partitions=(partition=0, leader=192.168.2.1:9093 (id: 1 rack: null), replicas=192.168.2.1:9093 (id: 1 rack: null), 192.168.2.1:9094 (id: 2 rack: null), 192.168.2.1:9092 (id: 0 rack: null), isr=192.168.2.1:9093 (id: 1 rack: null), 192.168.2.1:9094 (id: 2 rack: null), 192.168.2.1:9092 (id: 0 rack: null)))</pre><p>The cluster used here has 3 nodes and the topic `producer` has 3 replicas. Since we have only one partition for this topic there is only one line. Please see below for the explanation:</p><ul><li>“leader” is the node responsible for all reads and writes for the given partition. Each node will be the leader for a randomly selected portion of the partitions</li><li>“replicas” is the list of nodes that replicate the log for this partition regardless of whether they are the leader or even if they are currently alive</li><li>“isr” is the set of “in-sync” replicas. This is the subset of the replicas list that is currently alive and caught-up to the leader</li></ul><h3>References and Copyrights</h3><ul><li><a href="https://kafka.apache.org/documentation/#adminapi">https://kafka.apache.org/documentation/#adminapi</a></li><li><a href="https://github.com/yahoo/kafka-manager">https://github.com/yahoo/kafka-manager</a></li><li><a href="https://kafka.apache.org/22/images/kafka-apis.png">https://kafka.apache.org/22/images/kafka-apis.png</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ecbe8fdf10e2" width="1" height="1" alt=""><hr><p><a href="https://medium.com/clairvoyantblog/getting-apache-topic-details-using-java-ecbe8fdf10e2">Getting Kafka Details Using AdminClient API</a> was originally published in <a href="https://medium.com/clairvoyantblog">Clairvoyant Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Dremio Cluster Setup]]></title>
            <link>https://medium.com/clairvoyantblog/dremio-cluster-setup-c7e854bc3f40?source=rss-f2fa32d54535------2</link>
            <guid isPermaLink="false">https://medium.com/p/c7e854bc3f40</guid>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[java]]></category>
            <category><![CDATA[big-data]]></category>
            <category><![CDATA[cloud]]></category>
            <category><![CDATA[dremio]]></category>
            <dc:creator><![CDATA[Imteyaz Ahmad]]></dc:creator>
            <pubDate>Wed, 10 Apr 2019 23:33:23 GMT</pubDate>
            <atom:updated>2019-04-11T15:48:06.904Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/789/0*twHqU_YdkVA-Rlk7.png" /><figcaption><a href="https://www.datanami.com/2018/10/30/dremio-fleshes-out-data-platform/">link</a></figcaption></figure><p><strong>What is Dremio?</strong></p><p>Dremio is a Data-as-a-Service Platform.</p><ul><li>It is built on Apache Arrow, Apache Parquet, and Apache Calcite.</li><li>It reads data from any source into Arrow buffers for in-memory processing.</li><li>It has its own SQL engine called Sabot for executing queries or augmenting the abilities of the underlying data source (eg, Elastic doesn’t support JOIN, so Dremio pushes down what it can and processes other query fragments in Sabot).</li><li>Data Reflections persist as Parquet files on a file system — HDFS, S3, ADLS, NAS.</li><li>It has a highly optimized, vectorized Parquet reader, and Parquet is it’s preferred format at this time.</li><li>It is a distributed process. You can run it in containers, on bare metal, or as a YARN native app in your Hadoop cluster. You can scale up/down as needed.</li><li>It connects to sources in different ways depending on the source: RDBMS via JDBC; MongoDB via java driver; Elasticsearch via their driver; files like Parquet and JSON using its own readers; For Hive, it picks up schema from Hive Metastore and use it’s own file readers; etc.</li><li>It’s UI is intended for data curation, searching the catalog, admin, etc. It expects users to issue queries using their favorite tools over ODBC/JDBC/REST.</li></ul><h3>Cluster Deployment</h3><h4>Overview</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*a8vykg2RxPTTiegB9E7Y2A.png" /><figcaption>Cluster overview, © Dremio (<a href="https://www.dremio.com/">https://www.dremio.com</a>)</figcaption></figure><h4>System Requirements</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/762/1*aG4_b6Sk6pVsqQ8FDSYytg.png" /><figcaption>Hardware Required</figcaption></figure><h4>Linux Distributions</h4><p>Dremio supports the following distributions and versions of Linux:</p><ul><li>RHEL and CentOS 6.7+ and 7.3+</li><li>SLES 12 SP2+</li><li>Ubuntu 14.04+</li><li>Debian 7+</li></ul><h4>Network</h4><p>The following ports must be open to either access the Dremio UI or for communication between nodes:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/760/1*z3vyqCM7h3AAGSc1OwdK3g.png" /><figcaption>Ports to be opened</figcaption></figure><h4>Server System</h4><p>Dremio can be deployed on Linux, Windows, and Mac. For production deployments, Linux is the recommended operating system.</p><p>We have chosen <strong>RHEL-7.5</strong> as an RPM package is available for it. A tarball package is also available for other Linux distributions. However, it takes more efforts to set up using a tarball package.</p><h4>Java Development Kit</h4><p>Java SE 8 is required for running Dremio. Please NOTE as of Dremio v3, higher versions of Java are NOT supported.</p><p>Please check if the server has Java installed and its versions.</p><p>$ java -version</p><p>If Java is not present or if an earlier version is installed, please follow below instruction to install Java SE 8.</p><p>For installing Java SE 8 of RHEL, follow steps:</p><ul><li>Download JDK from Oracle website</li></ul><pre>$ wget — no-cookies — no-check-certificate — header “Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com%2F; oraclelicense=accept-securebackup-cookie” <a href="http://download.oracle.com/otn-pub/java/jdk/8u191-b12/2787e4a523244c269598db4e85c51e0c/jdk-8u191-linux-x64.rpm">http://download.oracle.com/otn-pub/java/jdk/8u191-b12/2787e4a523244c269598db4e85c51e0c/jdk-8u191-linux-x64.rpm</a></pre><ul><li>Install JDK</li></ul><p>$ sudo yum localinstall jdk-8u191-linux-x64.rpm</p><h3>Installation and Configuration</h3><h4>Installation</h4><ul><li>Download RPM distribution from <a href="https://download.dremio.com/community-server/3.0.0-201810262305460004-5c90d75/dremio-community-3.0.0-201810262305460004_5c90d75_1.noarch.rpm">here</a>.</li></ul><pre>$ wget <a href="https://download.dremio.com/community-server/3.0.0-201810262305460004-5c90d75/dremio-community-3.0.0-201810262305460004_5c90d75_1.noarch.rpm">https://download.dremio.com/community-server/3.0.0-201810262305460004-5c90d75/dremio-community-3.0.0-201810262305460004_5c90d75_1.noarch.rpm</a></pre><ul><li>Install using RPM</li></ul><p>$ sudo yum install dremio-&lt;VERSION&gt;.rpm</p><ul><li>Enable Dremio to start at machine startup.</li></ul><p>$ sudo chkconfig — level 3456 dremio on</p><ul><li>Starting/Stopping Dremio</li></ul><pre>// Starting <br>$ sudo service dremio start</pre><pre>// Stopping <br>$ sudo service dremio stop</pre><h3>Configuration</h3><h4>Master node</h4><pre>#<br># Copyright (C) 2017-2018 Dremio Corporation<br>#<br># Licensed under the Apache License, Version 2.0 (the &quot;License&quot;);<br># you may not use this file except in compliance with the License.<br># You may obtain a copy of the License at<br>#<br>#     <a href="http://www.apache.org/licenses/LICENSE-2.0">http://www.apache.org/licenses/LICENSE-2.0</a><br>#<br># Unless required by applicable law or agreed to in writing, software<br># distributed under the License is distributed on an &quot;AS IS&quot; BASIS,<br># WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.<br># See the License for the specific language governing permissions and<br># limitations under the License.<br>#</pre><pre>paths: {<br>  # the local path for dremio to store data.<br>  local: &quot;/var/lib/dremio&quot;</pre><pre># the distributed path Dremio data including job results, downloads, upload<br>s, etc<br>  #dist: &quot;pdfs://&quot;${paths.local}&quot;/pdfs&quot;<br>  #dist: &quot;s3a://fe-dremio-storage/dremio-storage&quot;<br>}</pre><pre>services: {<br>  <strong>coordinator.enabled: true,<br>  coordinator.master.enabled: true,<br>  executor.enabled: false</strong><br>}<br>zookeeper: &quot;&lt;master_node_ip&gt;:2181&quot;</pre><h4>Executor nodes</h4><pre>#<br># Copyright (C) 2017-2018 Dremio Corporation<br>#<br># Licensed under the Apache License, Version 2.0 (the &quot;License&quot;);<br># you may not use this file except in compliance with the License.<br># You may obtain a copy of the License at<br>#<br>#     <a href="http://www.apache.org/licenses/LICENSE-2.0">http://www.apache.org/licenses/LICENSE-2.0</a><br>#<br># Unless required by applicable law or agreed to in writing, software<br># distributed under the License is distributed on an &quot;AS IS&quot; BASIS,<br># WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.<br># See the License for the specific language governing permissions and<br># limitations under the License.<br>#</pre><pre>paths: {<br>  # the local path for dremio to store data.<br>  local: &quot;/var/lib/dremio&quot;</pre><pre># the distributed path Dremio data including job results, downloads, upload<br>s, etc<br>  #dist: &quot;pdfs://&quot;${paths.local}&quot;/pdfs&quot;<br>  #dist: &quot;s3a://fe-dremio-storage/dremio-storage&quot;<br>}</pre><pre>services: {<br>  <strong>coordinator.enabled: false,<br>  coordinator.master.enabled: false,<br>  executor.enabled: true</strong><br>}<br>zookeeper: &quot;&lt;master_node_ip&gt;:2181&quot;</pre><p>This configuration assumes embedded Zookeeper is running on Master node.</p><h3>Verifying the installation</h3><p>Open a browser and go to &lt;master_node_ip&gt;:9047. It will ask to create admin User for the first time.</p><p>Once logged in, Click on theAdmin button (at the top-right of the page). It will show Node Activity under Cluster section.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kiZ1DusRcvbV5TeH2ueFrQ.png" /></figure><p>Each node’s hostname or IP address should be listed, along with a green status light.</p><h3>Distributed Storage</h3><p>By default Dremio uses the disk space on local Dremio nodes(usually /var/lib/dremio ) to store accelerator, <a href="https://docs.dremio.com/sql-reference/sql-commands/create-table-as.md">CREATE TABLE AS tables</a>, job result, download and upload data. We can indicate a different store such as NAS, HDFS, MapR-FS, S3 or ADLS.</p><h3>Amazon S3</h3><p>Before configuring Amazon S3 as Dremio’s distributed storage, test adding the same bucket as a Dremio source and verify the connection.</p><ul><li>dremio.conf changes:</li></ul><pre>paths: {<br>...<br>dist: &quot;s3a://&lt;BUCKET_NAME&gt;/&lt;STORAGE_ROOT_DIRECTORY&gt;&quot;<br>}</pre><ul><li>Create core-site.xml and include IAM credentials with list, read and write permissions:</li></ul><pre>&lt;?xml version=&quot;1.0&quot;?&gt;<br>&lt;configuration&gt;<br>   &lt;property&gt;<br>       &lt;name&gt;fs.s3a.access.key&lt;/name&gt;<br>       &lt;description&gt;AWS access key ID.&lt;/description&gt;<br>       &lt;value&gt;ACCESS KEY&lt;/value&gt;<br>   &lt;/property&gt;<br>   &lt;property&gt;<br>       &lt;name&gt;fs.s3a.secret.key&lt;/name&gt;<br>       &lt;description&gt;AWS secret key.&lt;/description&gt;<br>       &lt;value&gt;SECRET KEY&lt;/value&gt;<br>   &lt;/property&gt;<br>&lt;/configuration&gt;</pre><ul><li>Copy core-site.xml to under Dremio&#39;s configuration directory (same as dremio.conf) on all nodes.</li></ul><p>Once done, please restart the cluster.</p><h3>Copyrights and References</h3><ul><li><a href="https://docs.dremio.com/">Dremio Documentation</a></li><li><a href="http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html">JDK Download Page</a></li><li><a href="https://unix.stackexchange.com/questions/8945/how-can-i-increase-open-files-limit-for-all-processes">Increase ulimit values</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c7e854bc3f40" width="1" height="1" alt=""><hr><p><a href="https://medium.com/clairvoyantblog/dremio-cluster-setup-c7e854bc3f40">Dremio Cluster Setup</a> was originally published in <a href="https://medium.com/clairvoyantblog">Clairvoyant Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Create a static website with Hugo and Host it with Github Pages]]></title>
            <link>https://medium.com/clairvoyantblog/create-a-static-website-with-hugo-and-host-it-with-github-pages-f268b12371?source=rss-f2fa32d54535------2</link>
            <guid isPermaLink="false">https://medium.com/p/f268b12371</guid>
            <category><![CDATA[atom]]></category>
            <category><![CDATA[static-site-generator]]></category>
            <category><![CDATA[hugo]]></category>
            <category><![CDATA[github]]></category>
            <dc:creator><![CDATA[Imteyaz Ahmad]]></dc:creator>
            <pubDate>Sun, 12 Mar 2017 00:00:00 GMT</pubDate>
            <atom:updated>2019-07-08T15:26:01.004Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*s_f1PwQw0pE3u0olLE-sWw.png" /><figcaption>Image credit <a href="https://pixabay.com/vectors/website-page-template-internet-web-1624028/">Pixabay</a></figcaption></figure><h4>In this article, we will explain how to create a blog site that incurs a minimal cost and doesn’t need our own hosting server.</h4><h3>Introduction</h3><p>Static websites like online resumé or blog sites can be created using HTML, CSS, and JavaScript if you are a front-end developer. However, it can be a bit of a headache for people who are not familiar with these technologies. More importantly, if you are creating a blog site, it’s difficult to maintain uniformity in all its pages. In this blog, I am going to describe how we can create a static website without the need for such technologies.</p><p><strong>Tools Used</strong></p><ul><li><a href="https://gohugo.io/">Hugo</a>: A fast and modern static website engine</li><li>Any text editor of your choice. I prefer <a href="https://atom.io/">Atom</a> because of its pluggable architecture and in-built support for editing and previewing mark-down files</li></ul><h3>Steps Involved</h3><ol><li>Download and install <a href="https://gohugo.io/">Hugo</a>. For more details, refer Hugo’s <a href="https://gohugo.io/overview/installing/"><em>getting started</em></a> guide</li><li>Once Hugo is installed, open a terminal and go to the folder where you want to store the code for your blog or static website</li><li>Run hugo new site &lt;your-site-name&gt; to create a new website. It will create the following directories in the folder:<br>├── archetypes <br>├── config.toml <br>├── content <br>├── data <br>├── layouts <br>├── public <br>├── static <br>└── themes</li><li>Now, go to <a href="http://themes.gohugo.io/">http://themes.gohugo.io/</a> and clone a theme of your choice in the themes folder. Once done, copy the config.toml from the downloaded theme into the root folder of the website and run hugo server --buildDrafts from the root directory. It will start the server on port 1313. You can access the site from <a href="http://localhost:1313/">http://localhost:1313</a></li><li>To create a new blog entry, run hugo new post/&lt;blog-file-name&gt;.md. It will create a file in content/post/ folder</li><li>Open the newly created file in the text editor of your choice and start drafting the blog</li><li>Once you are done drafting the content, delete the contents of public folder and run hugo command to regenerate the files</li><li>Create a repo on <a href="https://github.com/">Github</a> and check in the content of the public folder</li><li>Now go to your repository on <a href="https://github.com/">https://github.com</a> and create a new branch called gh-pages. Click on settings and go to GitHub Pages section of the page where you will see the following message: Your site is published at <a href="https://&lt;user_name&gt;.github.io/&lt;repo-name&gt;/">https://&lt;user_name&gt;.github.io/&lt;repo-name&gt;/</a>. You can use this link to access your static website or blog. If you want to use a custom domain, please follow <a href="https://help.github.com/articles/using-a-custom-domain-with-github-pages/">this</a></li></ol><p>I have included a few links that may come in handy while following these steps. Please feel free to drop your questions in the comments section.</p><p>Any feedback or suggestions will be greatly appreciated.</p><h3>References</h3><ul><li><a href="https://gohugo.io/">https://gohugo.io/</a></li><li><a href="https://atom.io/">https://atom.io/</a></li><li><a href="https://help.github.com/articles/using-a-custom-domain-with-github-pages/">https://help.github.com/articles/using-a-custom-domain-with-github-pages/</a></li></ul><p><em>Originally published at </em><a href="http://www.talcrafts.com/2017/03/create-a-static-website-with-hugo-and-host-it-with-github-pages/"><em>http://www.talcrafts.com</em></a><em> on March 12, 2017.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f268b12371" width="1" height="1" alt=""><hr><p><a href="https://medium.com/clairvoyantblog/create-a-static-website-with-hugo-and-host-it-with-github-pages-f268b12371">Create a static website with Hugo and Host it with Github Pages</a> was originally published in <a href="https://medium.com/clairvoyantblog">Clairvoyant Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>