<?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 Akash Mahapatra on Medium]]></title>
        <description><![CDATA[Stories by Akash Mahapatra on Medium]]></description>
        <link>https://medium.com/@akash-mhptr?source=rss-4f8657eff022------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*YTNMlQOZm3k7xOZd4l2T8Q.jpeg</url>
            <title>Stories by Akash Mahapatra on Medium</title>
            <link>https://medium.com/@akash-mhptr?source=rss-4f8657eff022------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 04:01:45 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@akash-mhptr/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[Building a Character-Level Language Model for Indian Names: Lessons in Smoothing]]></title>
            <link>https://medium.com/mathematics-and-machine-learning/building-a-character-level-language-model-for-indian-names-lessons-in-smoothing-3753e67b1781?source=rss-4f8657eff022------2</link>
            <guid isPermaLink="false">https://medium.com/p/3753e67b1781</guid>
            <category><![CDATA[ngrams]]></category>
            <category><![CDATA[large-language-models]]></category>
            <category><![CDATA[probability]]></category>
            <category><![CDATA[neural-networks]]></category>
            <dc:creator><![CDATA[Akash Mahapatra]]></dc:creator>
            <pubDate>Wed, 24 Dec 2025 12:46:22 GMT</pubDate>
            <atom:updated>2025-12-25T06:54:06.678Z</atom:updated>
            <content:encoded><![CDATA[<p>The Zero Probability Trap: Why Smoothing is Essential for Language Models <br>I Trained a Character-Level Model on 60,000 Indian Names… Then It Broke!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yU2kt1agcOGafsa804k66w.jpeg" /><figcaption>Role of smoothing in a language model</figcaption></figure><h3>What Are n-gram Models?</h3><p>One of the simplest yet most influential approaches to building a language model — predicting the next word in a sentence based on the previous ‘<em>n’</em> words — is the use of <strong>n-gram models</strong>.</p><p>Imagine trying to guess the next word in the sequence of words: <br>“Ram is a good …”<br>An n-gram model would look into the last few words, based on the calibration of ’n’ to guess what could be the most likely word to come after ‘good’, based on how often the <strong><em>model has seen that pattern in training data</em></strong>.</p><p>For example, a bigram (n=2) model uses just the previous word (‘good’), while a trigram (n=3) uses the previous two words (‘a good’).</p><p>If you wish to see how a Bigram Character Level Language model works in detail, by taking in 2 characters from the dataset, building the probability table, and predicting the next character based on an input character, you can refer to:</p><ol><li><a href="https://github.com/Ganitagya/ml-ai-journey/blob/main/andrej-karpathy/makemore/src/build_makemore.ipynb">Character-Level Language Model using a probability table</a></li><li><a href="https://github.com/Ganitagya/ml-ai-journey/blob/main/andrej-karpathy/makemore/src/build_makemore_nn.ipynb">Character-Level Language Model using a Single Layer Neural Network</a></li></ol><p>These models are fast, easy to build, and were the backbone of language models for decades.</p><h3>Relevance of Smoothing</h3><p>As with the character-level language models mentioned above — and with any model-building approach — our training data is inherently finite. It represents only a minuscule slice of real-world language, where the number of possible sentences is effectively limitless. Real-world sentences twist in endless ways, far beyond what any dataset can hold. This gap hits n-gram models hard: they rely on counting word patterns, but rare or unseen sequences get zero or close to zero probability, crippling predictions.</p><p>For instance, in the Character-Level Bi-gram language model, I trained the system on a dataset of around 60,000 Indian names to learn the likely bigram combinations that appear in them. When the model generates a new name, it does so by sampling from the probability distribution of the bigrams it learned during training.</p><p>However, when I tried to check the probability that this model assigned to the name ‘<em>ganitagya</em>’, it gave a very low score.</p><p>On checking the probabilities that the model assigned to each possible <br>bi-grams:</p><pre>.g:  0.0291 <br>ga:  0.4549 <br>an:  0.2464 <br>ni:  0.1597 <br>it:  0.1143 <br>ta:  0.1068 <br>ag:  0.0163 <br>gy:  0.0150 <br>ya:  0.6682 <br>a.:  0.1689<br>log_likelihood=tensor(-22.4664)<br>nll=tensor(22.4664)<br>Normalized NLL : 2.2466447353363037</pre><p>I noticed that the probability scores assigned to the bigrams ‘ag’ and ‘gy’ were too low. The reason for this is that the training set contained few such combinations of bigrams.</p><p>Normalized NLL = Normalized Negative Log Likelihood, which gives the loss of the result that the model generated. — Refer to the section “Maximum Likelihood Estimation (MLE)” in <a href="https://github.com/Ganitagya/ml-ai-journey/blob/main/andrej-karpathy/makemore/src/build_makemore.ipynb">Character-Level Language Model</a> to understand it better.</p><p>So I tried again by tweaking the name, which would be highly unlikely in the real world as well: ‘<em>ganitagyzg’</em></p><pre>.g:  0.0291 <br>ga:  0.4549 <br>an:  0.2464 <br>ni:  0.1597 <br>it:  0.1143 <br>ta:  0.1068 <br>ag:  0.0163 <br>gy:  0.0150 <br>yz:  0.0001 <br>zg:  0.0000 <br>g.:  0.0216 <br>log_likelihood=tensor(-inf)<br>nll=tensor(inf)<br>Normalized NLL : inf</pre><p>The results clearly demonstrated the motivation behind the development of <strong>smoothing techniques</strong>.<br><em>The model produced an </em><strong><em>infinite loss</em></strong><em>, which can be attributed to the model assigning </em><strong><em>zero probability to the bigram “zg”</em></strong><em>.</em></p><p>The model assigns a zero probability to the bigram “zg” simply because it never saw this bigram during training, as it was not present in the dataset. However, this does not imply that such bi-grams will never appear in real-world data.</p><p>Similarly, numerous word combinations are absent from the training data when building n-gram language models, leading raw counts to assign them zero probability. As a result, if a new sentence contains even one unseen sequence, the model deems it “impossible.”</p><p>Smoothing addresses this by redistributing a small amount of probability from frequent sequences to rare or unseen ones, ensuring that every possible next word has a non-zero chance. Smoothing is a technique used to improve probability estimates when available data is insufficient for accurate calculation.</p><p>Better smoothing algorithms lead to better model performance.</p><p>You can find one of the simplest ways to achieve smoothing in the Model Smoothing section of the <a href="https://github.com/Ganitagya/ml-ai-journey/blob/main/andrej-karpathy/makemore/src/build_makemore.ipynb">Character-Level Language Model</a>.</p><h3><strong>The Character-Level Bi-Gram Language Model</strong></h3><p>Inspired and learnt from <a href="https://www.youtube.com/watch?v=PaCmpygFfXo&amp;list=PLAqhIrjkxbuWI23v9cThsA9GvCAUhRvKZ&amp;index=3">The spelled-out intro to language modeling: building makemore</a> by Andrej Karpathy, I built a character-level language model using Indian names as a dataset. In this section, I present an explanation of the character-level bigram language model and smoothing.</p><p>A <em>character-level language model</em> can be formulated as a probability distribution <em>p(w)</em> of a sequence of characters that tells how frequently that sequence of characters occurs as a word (in this case, an Indian name).</p><p>For example, <em>p(abhishek) = 0.25, </em>signifying<em> </em>perhaps 25 out of every 100 Indians might have a name ‘<em>Abhishek</em>’.</p><p>Alternatively, <em>p(dhritarashtra) = 0.00</em>, since it is extremely unlikely any Indian would name their child ‘<em>Dhritarashtra</em>’ in today&#39;s day.</p><p>Notice that, unlike in the nomenclature patterns of parents giving names to their kids, sentimentality is irrelevant in language modeling; even though ‘Dhritarashtra’ is a proper name in the Indian community, we still assign it a zero probability score.</p><p>If we take n = 2 in an n-gram model, we get a bi-gram model. And since we are working on character sequences, it&#39;s a bi-gram character-level model.</p><p>For any word <em>w</em> composed of characters <em>c₁, c₂, c₃, …, cₙ</em> we can express <em>p(w)</em> in general as :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jaEyWt1nS_0kE2Ey_FZ9Bw.jpeg" /></figure><p>The above can be interpreted as the probability of the occurrence of the word <em>w</em> is the probability of the occurrence of the character <em>cₙ given that we already have the sequence c₁, c₂, …, cₙ₋₁, </em>which is the same as saying<em>, </em>the probability of getting the nᵗʰ character given that we already have the previous (n-1) characters.</p><p>In bigram models, we make the approximation that the probability of a character depends only on the identity of the immediately preceding character, which gives us</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8_d8YbpyZzL77JFInS9iCg.jpeg" /></figure><p>Based on the above approximation, our bi-gram model will randomly pick the next character based on the probability of its occurrence given that it already has an input character.</p><p>For example, if we give an input character ‘a’ to the model, based on the probability distribution of all the available characters (26 alphabets) given the preceding character is ‘a’, the model will randomly choose the next character.</p><p>To further provide better context and information to our model, we introduce two special characters to the data: ‘&lt;S&gt;’ and ‘&lt;E&gt;’, which will denote the start and end of the name, respectively. For ease of use, we are using only ‘.’ as the starting and ending character in our code.</p><h3>Maximum Likelihood Estimate</h3><p>We use the classic probability formula to calculate the probability distribution of each character’s occurrence given the previous character by counting the total number of occurrences of that bigram in our dataset, divided by the total number of possible occurrences of any bigram in the complete dataset.</p><p>In other words, for a specific next character j after previous character i, the probability of the bigram <em>ij</em> = probability of ‘j’ given ‘i’ = count of bigram (i,j) divided by the total count of bigrams starting with i.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kY8zyrJGnOmX5vZfuUdB6g.jpeg" /></figure><p>Using the above, we devise the following probability matrix for the dataset that I used in training the Character-Level Bigram Language model.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_BF0LnEX9QYCP3On1iXZRA.jpeg" /></figure><p>This estimation of getting the probability of a character ‘j’ given the previous character ‘i’ is called <strong><em>‘The Maximum Likelihood Estimate’</em></strong> because this assignment of probabilities yields the bigram model that assigns the highest probability to the training data of all possible bigram models, becauase we are only considering the training set as the universal set and not the entire possible data universe.</p><p>To better understand this, let&#39;s assume our dataset S is :</p><pre>S = {&#39;sita&#39;, &#39;gita&#39;, &#39;ram&#39;, &#39;rina&#39;}<br><br>p(&#39;it&#39;) = (number of occurrences of the bigram &#39;it&#39;)<br>          -------------------------------------------------------- <br>          (total number of bigrams having i as the first character)<br><br>        = 2 / 3</pre><p>Number of occurrences of the bigram ‘it’ = 2, taken from (‘sita’, ‘gita’)<br>Total number of bigrams having ‘i’ as the first character = 3, taken from (‘sita’, ‘gita’, ‘rina’)</p><h3><strong>Smoothing</strong></h3><p>Now, consider the bigram ‘ab’ from the above example dataset.</p><pre>S = {&#39;sita&#39;, &#39;gita&#39;, &#39;ram&#39;, &#39;rina&#39;}<br><br>p(&#39;ab&#39;) = (number of occurrences of the bigram &#39;ab&#39;)<br>          -------------------------------------------------------- <br>          (total number of bigrams having &#39;a&#39; as the first character)<br><br>        = 0 / 4<br>        = 0</pre><p>Number of occurrences of the bigram ‘ab’ = 0; no name in our dataset has the sequence ‘ab’ in it.<br>Total number of bigrams having ‘a’ as the first character = 4, taken from (‘sita’, ‘gita’, ‘ram’, ‘rina’)</p><p>Remember, we add starting and ending characters to the words. So, ‘sita’ is rendered as ‘.sita.’ giving us the bigram ‘a.’ as the ending bigram.</p><p>This probability of 0 is clearly an underestimation of the probability of ‘ab’ in the name: ‘<em>abhishek</em>’, just because ‘<em>abhishek</em>’ was not part of our dataset. This is definitely a case of error when our model will be tested in real-world use cases.</p><blockquote><strong><em>Smoothing</em></strong> <em>is used to address this problem:</em> What happens when your model encounters something it’s never seen before?</blockquote><p>In the world of predictive modeling, raw data often leaves us with ‘probability gaps.’ Rather than relying on the rigid constraints of Maximum Likelihood Estimates, smoothing algorithms allow us to recalibrate our data, ensuring that even the rarest events are accounted for with reliable accuracy.</p><p>Various smoothing algorithms exist to introduce uniformity to the probability distributions by adjusting low probabilities (such as zero probabilities) upward and high probabilities downward. My approach involves assigning a minimum count of 1 to every bigram; this guarantees that even unseen bigrams are accounted for, effectively bypassing the problem of zero-probability estimation. This approach is one of the most basic ones and is called the “<strong><em>Laplace Smoothing</em></strong>” technique, also commonly known as “add-one smoothing” or “add-1 smoothing”.</p><p>Refer to the “<strong><em>Model Smoothing</em></strong>” section in the <a href="https://github.com/Ganitagya/ml-ai-journey/blob/main/andrej-karpathy/makemore/src/build_makemore.ipynb">Character-Level Bigram Language Model</a></p><h3><strong>What is Laplace Smoothing and How it Works</strong></h3><p>The core logic is to pretend that we saw every possible sequence <strong>exactly one more time</strong> than we actually did. This “borrows” a tiny amount of probability from the frequent events and redistributes it to the “unseen” events.</p><p>For a bigram model, the adjusted probability calculation is:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NO6ECIP0xp-OY7S-NagXKw.jpeg" /></figure><ul><li><em>C(wₙ₋₁, wₙ):</em> The actual count of the bigram in your data.</li><li><em>+1</em>: The “Add-one” part (we increment every possible bigram count by 1)</li><li><em>C(wₙ₋₁)</em>: The total count of the preceding word.</li><li><em>+V</em>: We add the size of the total vocabulary to the denominator. This is crucial because if we add 1 to every possible bigram in the numerator, we must add the total number of unique words to the denominator to ensure the final probabilities still sum up to 1 (normalization).</li></ul><h3><strong>Conclusion</strong></h3><p>N-gram models, especially at the character level, are the simplest language models you may ever come across, but they reveal the fascinating mechanics behind how machines learn language. From predicting the next character while generating a new name to handling unseen sequences with smoothing, these models highlight the delicate balance between probability, data, and real-world language complexity. While modern deep learning approaches often steal the spotlight, understanding these foundational models gives us a clearer lens into the building blocks of natural language processing — and the art of making predictions smarter, one character at a time</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3753e67b1781" width="1" height="1" alt=""><hr><p><a href="https://medium.com/mathematics-and-machine-learning/building-a-character-level-language-model-for-indian-names-lessons-in-smoothing-3753e67b1781">Building a Character-Level Language Model for Indian Names: Lessons in Smoothing</a> was originally published in <a href="https://medium.com/mathematics-and-machine-learning">Mathematics and Machine Learning</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Real-Time Streaming Sentiment Analytics: Transforming Data into Actionable Insights]]></title>
            <link>https://medium.com/tecxperiments/real-time-streaming-sentiment-analytics-transforming-data-into-actionable-insights-301ab5f6db00?source=rss-4f8657eff022------2</link>
            <guid isPermaLink="false">https://medium.com/p/301ab5f6db00</guid>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[sentiment-analysis]]></category>
            <category><![CDATA[data-analysis]]></category>
            <category><![CDATA[data-streaming]]></category>
            <category><![CDATA[data-visualization]]></category>
            <dc:creator><![CDATA[Akash Mahapatra]]></dc:creator>
            <pubDate>Sat, 09 Nov 2024 18:33:10 GMT</pubDate>
            <atom:updated>2024-11-10T05:13:41.875Z</atom:updated>
            <content:encoded><![CDATA[<iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FSUdGuTsdPz8%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DSUdGuTsdPz8&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FSUdGuTsdPz8%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/b7ebf52513ce91b7114e5f790db59cda/href">https://medium.com/media/b7ebf52513ce91b7114e5f790db59cda/href</a></iframe><p>With the abundance of data due to improved data-gathering techniques within organizations, a robust data engineering solution can unlock the full potential of the organization’s data, driving innovation, improving decision-making, and gaining a competitive edge in today’s data-driven world. And in the world of data engineering, streaming analytics is reshaping how businesses act on real-time data.</p><p>While most assume that “<strong><em>streaming</em></strong>” is synonymous with tools like Kafka, there’s much more to consider in a robust streaming ecosystem. Kafka is indeed the backbone of event consumption, but unlocking its full potential requires sophisticated processing, decision-making, and seamless integration with diverse data sources. In this post, I’ll walk you through an end-to-end streaming analytics solution that I developed, which brings together Apache Kafka, TIBCO Streaming, TIBCO Spotfire, and Minio, to power real-time customer experience insights from social media.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Doc8417oP1fNo9va4GoASg.png" /><figcaption>Streaming Analytics is much more than just Kafka</figcaption></figure><h4>Going Beyond Kafka: The Power of TIBCO Streaming</h4><p>Streaming Analytics is more than just capturing events in real-time; it’s about taking immediate action. Most customers see Kafka as the core of streaming, but that’s just the beginning. Streaming analytics involves collecting data and making critical decisions at the moment, aggregating data across multiple sources, and applying intelligent rules to improve outcomes. TIBCO Streaming serves all these capabilities, enabling real-time ingestion and action on data from multiple event sources — involving Kafka, MQTT, Change Data Capture, etc.</p><p>With TIBCO Streaming, we can combine the power of Kafka with an advanced event-processing engine that enriches, cleanses, and analyzes data on the fly. This means we’re ready to integrate machine learning models to make smarter, faster decisions as events stream in. Using in-house or pre-trained models, we can react to emerging trends immediately, all displayed through TIBCO Spotfire’s powerful real-time visualizations.</p><h4>The Streaming Solution: Turning Customer Feedback into Actionable Insights</h4><p>To demonstrate the potential of this approach, I developed a solution that empowers businesses to continuously monitor customer sentiment on social media, and respond dynamically to improve satisfaction. Check the system architecture above for an overview of how I designed this end-to-end streaming pipeline.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vO0ds85JSAufAudYgjfQFw.png" /><figcaption>All the components of the solution</figcaption></figure><p><strong>Solution Overview</strong></p><ol><li><strong>Apache Kafka</strong>: Serves as the primary platform for real-time event ingestion and distribution. Tweets and Facebook comments are collected and streamed to designated Kafka topics.</li><li><strong>TIBCO Streaming</strong>: The heart of the solution, TIBCO Streaming processes events in real-time, applying data transformations, aggregating results, and computing sentiment scores via an integrated sentiment analysis model.</li><li><strong>Sentiment Analysis Model:</strong> A sentiment analysis model trained on <a href="https://www.kaggle.com/datasets/kazanova/sentiment140">Kaggle data</a> provides real-time sentiment scores for incoming tweets and Facebook comments. By analyzing the text, it classifies sentiments as positive or negative, enabling businesses to gauge customer feedback instantly and respond proactively to improve satisfaction and engagement.</li><li><strong>TIBCO Spotfire</strong>: Real-time visualization platform, displaying the incoming data and analytics insights to help decision-makers understand customer sentiment and business impact at a glance.</li><li><strong>Minio</strong>: Acts as a data lakehouse to store processed data for further analysis and auditing.</li></ol><p><strong>Real-Time Processing Flow</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Xl9tHgr0GgC8v5xue3nYgA.png" /><figcaption>TIBCO Stream Processing with Sentiment Analysis</figcaption></figure><p>First, customer interactions are gathered from social media and sent to dedicated Kafka topics. TIBCO Streaming reads from these Kafka topics, unifies the data with a union operator, and applies data transformation and cleansing steps. We then feed this refined data into a sentiment analysis model to gauge customer sentiment.</p><p>From here, the sentiment-scored data flows to Minio for storage and TIBCO Spotfire for real-time visualization. Spotfire becomes the key to analyzing both individual and aggregate insights. For instance, we can filter by location, customer priority, and sentiment, allowing for a detailed, interactive exploration of customer feedback.</p><h4>Real-Time Action with Integrated Machine Learning</h4><p>TIBCO Streaming empowers organizations to harness the full potential of <strong><em>their data</em></strong> by seamlessly integrating real-time data processing with advanced analytics. One of its key strengths lies in its ability to accommodate both built-in and custom machine-learning models.</p><p>While TIBCO Streaming offers robust machine learning capabilities out-of-the-box, it also provides the flexibility to integrate custom models developed by data scientists. This allows organizations to leverage their domain expertise and tailor the solution to their specific needs.</p><p>By combining the power of TIBCO Streaming’s real-time data processing capabilities with the flexibility to integrate custom machine learning models, organizations can gain a competitive edge through data-driven decision-making.</p><h4>Powerful Real-Time Visualizations for Better Decision-Making</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iJgnlRlxSTU5H7LMg0MWsw.png" /><figcaption>Real Time Visualizations using TIBCO Spotfire</figcaption></figure><p>In TIBCO Spotfire, we created several impactful visualizations:</p><ol><li><strong>Geolocation Map</strong>: Displays the real-time origin of tweets and comments, allowing for quick insight into regional feedback trends.</li><li><strong>Treemap</strong>: Shows active social media users by location, emphasizing high-engagement regions.</li><li><strong>Sentiment Dashboard</strong>: Includes a real-time table of tweets/comments with sentiment scores, a donut chart of sentiment distribution, and user data to drill down into key demographics and priority levels.</li></ol><p>The integration of these visualizations enables users to interact across views. For example, selecting a region in the geolocation map filters all visualizations by that area. Drilling down further into negative sentiment or high-priority customers allows decision-makers to take swift actions, such as offering personalized responses or escalating issues based on customer value.</p><h4>Why Real-Time Matters: Delivering Insights and Actions Now</h4><p>Today’s business environment is fast-paced; customers expect immediate reactions, not insights into yesterday’s data. With TIBCO Streaming, businesses can seamlessly integrate their data and automate decisions, reducing the time to action and allowing teams to respond proactively.</p><p>The real value in streaming is in this dynamic decision-making: identifying pain points in real-time and resolving them before they affect more customers. In this particular use case, we were able to turn customer feedback from social media into meaningful insights, informing strategy and customer engagement on the fly. This real-time feedback loop has proven invaluable for the client, enabling them to improve service quality and customer satisfaction continuously.</p><h4>Conclusion</h4><p>Developing a streaming solution like this requires a deep understanding of data engineering principles, real-time data processing, and visualization. It’s not just about moving data — it’s about creating a responsive, insightful system that can handle the nuances of real-time customer interactions. By leveraging the combined power of TIBCO Streaming, Kafka, and TIBCO Spotfire, I’ve developed an analytics-driven solution that empowers businesses to act on data in real-time, setting a new benchmark for customer engagement.</p><p>Thank you for reading to the end. But before you go, if you liked it, please consider clapping and following me for more such content.</p><h4>Reference:</h4><ol><li><a href="https://www.kaggle.com/datasets/kazanova/sentiment140">https://www.kaggle.com/datasets/kazanova/sentiment140</a></li><li><a href="https://datascientest.com/en/machine-learning-what-is-it-and-why-does-it-change-the-world">https://datascientest.com/en/machine-learning-what-is-it-and-why-does-it-change-the-world</a></li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=301ab5f6db00" width="1" height="1" alt=""><hr><p><a href="https://medium.com/tecxperiments/real-time-streaming-sentiment-analytics-transforming-data-into-actionable-insights-301ab5f6db00">Real-Time Streaming Sentiment Analytics: Transforming Data into Actionable Insights</a> was originally published in <a href="https://medium.com/tecxperiments">Tecxperiments</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Draupadi’s Swayamvar: A Tale of Power, Skill, and Destiny]]></title>
            <link>https://medium.com/chronicles-of-kurukshetra/draupadis-swayamvar-a-tale-of-power-skill-and-destiny-f007b0683f10?source=rss-4f8657eff022------2</link>
            <guid isPermaLink="false">https://medium.com/p/f007b0683f10</guid>
            <category><![CDATA[women-leaders]]></category>
            <category><![CDATA[mahabharata]]></category>
            <category><![CDATA[woman-empowerment]]></category>
            <dc:creator><![CDATA[Akash Mahapatra]]></dc:creator>
            <pubDate>Mon, 26 Aug 2024 16:29:28 GMT</pubDate>
            <atom:updated>2024-08-26T16:29:28.239Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>Draupadi: A Princess Beyond Compare</strong></h3><p>Draupadi, the princess of Panchala, was a woman of extraordinary brilliance and beauty. Renowned for her exceptional skills in history, geography, art, and warfare, she was a force to be reckoned with. King Drupad, her father, faced a daunting task: finding a suitable husband for a woman who surpassed most men in intellect and ability.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7f8Je56FD1dVKgDsXFITkg.jpeg" /><figcaption>photo credit — MS Bing | Image Creator</figcaption></figure><h3><strong>Arjuna, the Third Pandava</strong></h3><p>Arjuna, the third son of Kunti, was renowned as one of the greatest warriors of his time. Born under a divine blessing, he possessed unmatched skill and prowess with the bow and arrow. His archery abilities were so exceptional that he was often compared to the celestial archers of the gods.</p><p>Kunti, Arjuna’s mother, was a virtuous woman who had invoked the blessings of the five Pandavas from different Gods. Arjuna was born as a boon for her devotion to the god Indra, the king of all the gods. Alongside his brothers Yudhisthira, Bhima, Nakula, and Sahadeva, he formed the legendary Pandava clan.</p><p>Together, the Pandava were known for their bravery, righteousness, and unwavering bond. Arjuna, in particular, was admired for his unwavering dedication to his duty, loyalty to his brothers, and unparalleled skill with the bow. His exploits on the battlefield, including his victory over the mighty Drupad, solidified his reputation as one of the most formidable warriors of the Mahabharata.</p><p>Arjuna could have been a worthy contender as per Drupad. Known as the greatest archer of his time, Arjuna’s prowess was unmatched even by the Demigods. However, his cousin, Duryodhana, harbored jealousy and resentment towards the Pandavas. He hatched a sinister plan to eliminate them once and for all.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NqOY5-3yQCqSLCPMhl37SA.jpeg" /><figcaption>photo credit — MS Bing | Image Creator</figcaption></figure><h3><strong>A Deadly Deception</strong></h3><p>Duryodhana lured the Pandavas to a grand palace, supposedly a gift of hospitality. However, hidden beneath the opulent facade lay a deadly trap. Duryodhana planned to burn the palace to the ground, ensuring the Pandavas’ demise.</p><p>As the Pandavas settled into their luxurious quarters, unaware of the impending danger, Duryodhana’s plot unfolded. In the dead of night, he ignited the palace, engulfing it in flames. But the Pandava, ever alert and resourceful, had sensed the impending doom. They escaped the inferno, their lives miraculously spared.</p><p>Disguised and living in exile, the Pandavas mourned the loss of their opulent life. Yet, they carried on, their spirits unbroken, their determination unwavering. The fire that had nearly consumed them had instead forged their resolve, preparing them for the challenges that lay ahead.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IXplsd8DeRhXgugcjX8vzg.jpeg" /><figcaption>photo credit — MS Bing | Image Creator</figcaption></figure><p>The news of the ashes of the palace and the sad demise of Queen Kunti and her five sons left King Drupad with an aching heart. The flames that engulfed the palace of the Pandava had also torched his hopes and dreams. Draupadi, his cherished daughter, had found her perfect match in Arjuna. The fire had not just taken lives — it had extinguished the light of a union he had long awaited.</p><h3><strong>Krishna’s Revelation</strong></h3><p>It was at this crucial juncture that the divine Krishna intervened. He revealed to King Drupad that the Pandava were alive and were living in disguise. The news filled Drupad with hope. He had to make arrangements for the grand Swayamvar for this beloved daughter.</p><h3><strong>Swayamvar — A Unique Challenge</strong></h3><p>Determined to ensure that Arjuna was the only worthy suitor for Draupadi, King Drupad devised a challenging task. He announced a swayamvar, a grand event where eligible princes and kings could compete for Draupadi’s hand in marriage. The challenge was simple yet demanding: whoever could pierce the eye of a golden fish, suspended high above a pond, by looking only at its reflection would win the princess.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*c0zVHMwknGB2t0OH2z5cag.jpeg" /><figcaption>photo credit — MS Bing | Image Creator</figcaption></figure><p>News of the swayamvar spread far and wide, attracting warriors from across the land. Among the contenders were many skilled archers, eager to prove their worth including the likes of Duryodhana, Karna, Duhshasana, Vikarna, Chitrasena, who all played crucial roles in the great war of Mahabharat. However, Krishna knew that only two men possessed the ability to accomplish this feat: Arjuna and Karna, the son of the Sun God.</p><p>Pandava attended Draupadi’s swayamvara disguised as Brahmins.</p><p>Karna, a prominent figure in the Mahabharata, was born to the unwed Kunti and the sun god Surya (more about his story in a separate post), was raised by a charioteer and his wife, which placed him in a lower caste. Despite his noble birth and inherent skills, his social status limited his participation in many public and royal events. Nonetheless, Karna’s exceptional prowess as a warrior earned him immense respect and fear on the battlefield. His skills rivaled those of Arjuna. Recognizing Karna’s formidable talent and unique ability to challenge Arjuna effectively, Duryodhana, honored Karna by making him the king of Anga, a barren land solidifying Karna’s allegiance and ensuring that his extraordinary combat abilities were harnessed against Arjuna.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MSIqUShdYYJd2Xv9HbCPxg.jpeg" /><figcaption>photo credit — MS Bing | Image Creator</figcaption></figure><h3><strong>Krishna’s Plan</strong></h3><p>Krishna, ever the strategist, had a plan. He knew that Karna, a close friend of Duryodhana, the eldest Kaurava, could pose a threat. If Karna were to win Draupadi’s hand, it could forge a powerful alliance between Duryodhana and King Drupad. To prevent this, Krishna took on the role of Draupadi’s advisor, guiding her with his divine wisdom.</p><p>As the swayamvar commenced, one by one, the princes and kings attempted the impossible task. Many failed even to lift the bow, while others, though skilled, couldn’t hit the moving target. The crowd grew disheartened, and King Drupad, in despair, lamented the decline of great warriors, “Is this earth devoid of any true warrior worthy enough of my daughter’s hand?”, cried Drupad.</p><p>Enraged by the perceived lack of talent, Karna, despite his low birth, stepped forward to accept the challenge. He had always been underestimated and yearned for recognition.</p><p>However, Krishna, knowing Karna’s connection to Duryodhana, whispered a warning to Draupadi. She, in turn, publicly declared that she would not marry a man of lower caste, even if he were to succeed.</p><p>Karna’s face darkened with fury and heartache. The sting of public humiliation pierced deeper than any battlefield wound. His rage was a tempest of injustice, while his sorrow echoed the cruel reality of his social exile. He was helpless. The organizer of the swayamvar had the authority to reject any contender without notice.</p><h3><strong>Arjuna’s Triumph</strong></h3><p>The stage was set for the ultimate performance, the challenge had become a matter of honor for all warriors, not just a test of skill. The audience would witness once in a lifetime display of archery. Arjuna, hidden in the shadows, emerged with commanding confidence. His chest was broad, his posture regal. He bowed deeply to King Drupad, Draupadi, Krishna, and the assembled spectators, acknowledging their presence. With a single, respectful nod from Drupad, Arjuna took his stance. In a heartbeat, he unleashed his arrow. Nobody knew when the aim was taken, when the arrow was drawn, when the arrow left, and when the target was hit. The audience could only hear a swift swoosh and a flash, and the fish was gone with the arrow. The target, hit with breathtaking precision, left the crowd in stunned silence.</p><p>As the echo of Arjuna’s triumphant shot faded, the arena erupted in a chorus of astonished cheers. King Drupad’s face beamed with immense joy, his heart swelling with pride as he witnessed the fulfillment of the challenge. Draupadi, her eyes alight with admiration, found in Arjuna not just a suitor, but a worthy equal who mirrored her strength and valor. Krishna, ever the sage orchestrator, stood silently, his subtle smile reflecting a deep satisfaction. By guiding Arjuna’s path, Krishna had sown the seeds of a brighter future for Bharat. In this moment, destiny’s threads wove a tapestry of hope and grandeur for the land.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wg04iKRIu-SBSu4QE8WS2w.jpeg" /><figcaption>photo credit — MS Bing | Image Creator</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f007b0683f10" width="1" height="1" alt=""><hr><p><a href="https://medium.com/chronicles-of-kurukshetra/draupadis-swayamvar-a-tale-of-power-skill-and-destiny-f007b0683f10">Draupadi’s Swayamvar: A Tale of Power, Skill, and Destiny</a> was originally published in <a href="https://medium.com/chronicles-of-kurukshetra">Chronicles of Kurukshetra</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[TIBCO Spotfire — Date and Time Pickers]]></title>
            <link>https://medium.com/tecxperiments/tibco-spotfire-date-and-time-pickers-352ca226bfa9?source=rss-4f8657eff022------2</link>
            <guid isPermaLink="false">https://medium.com/p/352ca226bfa9</guid>
            <category><![CDATA[data-visualization]]></category>
            <category><![CDATA[tibco]]></category>
            <category><![CDATA[tibco-spotfire]]></category>
            <category><![CDATA[analytics-platforms]]></category>
            <category><![CDATA[analytics]]></category>
            <dc:creator><![CDATA[Akash Mahapatra]]></dc:creator>
            <pubDate>Mon, 31 Jan 2022 11:09:25 GMT</pubDate>
            <atom:updated>2022-01-31T11:09:25.026Z</atom:updated>
            <content:encoded><![CDATA[<h3>TIBCO Spotfire — Date and Time Pickers</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*OlRC1TC6v0bYcuSe.png" /></figure><p>TIBCO Spotfire® Software is the most complete analytics solution available in the market, empowering enterprises to investigate and envision new revelations in information through vivid dashboards and in-depth investigations.</p><p>With TIBCO Spotfire® it becomes extremely easy to connect business data and design the relevant analysis solutions for enterprises, dramatically <strong><em>reducing the time to access vital</em></strong> data to identify areas to increase profits.</p><p>TIBCO Spotfire® takes ease to the next level in order to help businesses and enterprises focus on the information rather than spending time to design proper analytics to get information from raw data. Its advanced AI-based system prompts users to get the relevant visualizations based on the underlying data and provides various tools to zoom into a specific region in the visualization to dig deeper into the data.</p><p>In this effort for bringing ease of use to the table, another great feature that TIBCO Spotfire® provides is the ability to incorporate date-time pickers in the dashboards without the need for any libraries such as JQuery or complex date-picker functions. These inputs can be enhanced by converting them into HTML5 date pickers by adding the proper type attribute on the input HTML tag with some javascript.</p><h3><strong>Using Date and Time Pickers in TIBCO Spotfire®</strong></h3><p>TIBCO Spotfire® provides a text area under the visualization types which can be edited as an HTML file. Below are the steps to achieve the results:</p><ol><li>Right Click on the Text Area and select “Edit HTML”</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*A9ogk03chN_2go-EgAmajw.png" /></figure><p>2. In the HTML text box that opens, copy and paste the below code snippet</p><pre>Date<br>&lt;span id=&quot;date&quot;&gt;<br>   &lt;SpotfireControl id=&quot;a7bc72fe047f456aa9ec859bc4029640&quot; /&gt;<br>&lt;/span&gt;</pre><pre>Time<br>&lt;span id=&quot;time&quot;&gt;<br>  &lt;SpotfireControl id=&quot;4a72bc5108ed483cb4715318bc61da3d&quot; /&gt;<br>&lt;/span&gt;</pre><pre>Datetime<br>&lt;span id=&quot;datetime&quot;&gt;<br>   &lt;SpotfireControl id=&quot;5c5b47d14865443dbcbf19ca8091d884&quot; /&gt;<br>&lt;/span&gt;</pre><p>3. To generate the specific SpotfireControl id, put your cursor on a new line below the span tag. Click on “Insert Property Control” and select “Input Field” to open the “Property Control” wizard.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vWX9Z94N_CSM6RrFsrkp9A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VvaVgEmjGseZ-vgXFzLQ7A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xlhxP1Jjky6KR3mLv61eWg.png" /></figure><p>4. Click on the New button to create a new property and provide necessary details such as data type and default values as required.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bLK9MuXTfluTlmmwdU5e9Q.png" /></figure><p>5. Once the properties are configured, we will be able to see all the properties together on the text pad.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*seKEg8lWR2iANS3FwIr1fQ.png" /></figure><p>6. Next, click on the “Insert JavaScript” option and click on the New button</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NGq3RfUF-vwlKTvCxM1v2Q.png" /></figure><p>7. Use the below script in the new text pad that appears. Give the script a name and save it.</p><pre>[...document.querySelectorAll(&quot;.date input&quot;)].map(x =&gt; x.type=&quot;date&quot;);<br>[...document.querySelectorAll(&quot;.time input&quot;)].map(x =&gt; x.type=&quot;time&quot;);<br>[...document.querySelectorAll(&quot;.datetime input&quot;)].map(x =&gt; x.type=&quot;datetime-local&quot;);</pre><p>8. Finally the HTML code snippet along with the properties and Javascript should look like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*afwl8iZlPQyY417Ag5tTtw.png" /></figure><p>9. Save this HTML code snippet and the Date Time picker is ready.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1zQmbR6Iexrs6cmfmzDqRg.png" /></figure><p>It is now easier and almost out of the box to use different date pickers for date, time, or even date-time by using the power of HTML5. No jquery or other libraries needed</p><p>References:</p><ol><li><a href="https://community.tibco.com/wiki/date-and-time-pickers">TIBCO Community: Date and Time Pickers</a></li><li><a href="https://developer.mozilla.org/en-US/docs/Learn/Forms/HTML5_input_types#date_and_time_pickers">https://developer.mozilla.org/en-US/docs/Learn/Forms/HTML5_input_types#date_and_time_pickers</a></li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*slu-3TZa7xwAo464.jpg" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=352ca226bfa9" width="1" height="1" alt=""><hr><p><a href="https://medium.com/tecxperiments/tibco-spotfire-date-and-time-pickers-352ca226bfa9">TIBCO Spotfire — Date and Time Pickers</a> was originally published in <a href="https://medium.com/tecxperiments">Tecxperiments</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Event-Driven Payment Processing and Management For Credit Cards Using TIBCO Integration Platform]]></title>
            <link>https://akash-mhptr.medium.com/event-driven-payment-processing-and-management-for-credit-cards-using-tibco-integration-platform-e1d410f57f?source=rss-4f8657eff022------2</link>
            <guid isPermaLink="false">https://medium.com/p/e1d410f57f</guid>
            <category><![CDATA[tibco]]></category>
            <category><![CDATA[predictive-analytics]]></category>
            <category><![CDATA[event-driven-architecture]]></category>
            <category><![CDATA[api-development]]></category>
            <category><![CDATA[api]]></category>
            <dc:creator><![CDATA[Akash Mahapatra]]></dc:creator>
            <pubDate>Tue, 25 May 2021 13:38:22 GMT</pubDate>
            <atom:updated>2021-05-25T13:38:22.522Z</atom:updated>
            <content:encoded><![CDATA[<p>With the advancements in the means of distributing data among disparate systems, it becomes crucial to conform to evolving methods of ingesting data. Considering an event-driven approach, emphasis rests on the speed of execution, contextual processing to correlate current and historical events and make decisions based on business rules for pattern recognition and recommendation systems. And on top, there emerges a demand for data analytics rendering visibility to the data as it flows through the architecture.</p><h3><strong>System Architecture</strong></h3><p>TIBCO platform provides all of these capabilities in a modular way empowering enterprises to deploy the entire stack or plug individual functions into an existing ecosystem.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Mz2uAboWwvNegcBL2obD8A.png" /><figcaption>TIBCO Connected Intelligence</figcaption></figure><p>TIBCO presents the buffet to be orchestrated as per the customer’s necessities.<br>1. Data collection — TIBCO Integration Platform offers hundreds of connectors to applications across platforms (omnichannel experience for the customers whether using mobile apps, web apps, IoT sensors, or any other media), data formats, and protocols to accumulate data from events as and when they occur.<br>2. Data Distribution — TIBCO Messaging includes enterprise support for Apache Kafka, Apache Pulsar, and MQTT as well as our own EMS, FTL, and eFTL capabilities to move data across systems for consumption and carrying out specific tasks enhancing customer experience.<br>3. Contextual Event Processing — TIBCO BusinessEvents allows rules to take action on events based on the context of related events in the past to roll out personalized offers to customers.<br>4. Stream Event Processing — TIBCO Streaming provides automated decisions and actions on event streams in real-time<br>6. Analytics — TIBCO Spotfire and TIBCO Data Science provide visualization of event streams as well as predictive insights into event patterns.</p><h3><strong>Sample Demo Scenario</strong></h3><p>Consider the scenario of a customer raising a request application for getting a new credit card and on receiving the card, carrying out transactions. TIBCO Integration Platform along with its analytics capabilities can take care of the entire process starting with developing without any heavy-duty coding with simple drag and drop graphical UI followed by deployment to any platform of choice, be it on-prem, public, or private cloud.</p><ol><li>Application Credit Decision<br>a. Applicant visits the credit card issuers website to fill in the information.<br>b. API Call made to TIBCO Integration Platform with the relevant data.<br>c. Scoring the application based on business rules and decision tables.<br>d. Respond to the API Call with calculated information and the decision to approve, decline, etc.</li><li>Multiple Process Flow Management<br>a. Customer uses the card real-time or customer’s account cycles (batch/cycle-based)<br>b. API call made to TIBCO Integration or a Batch process is initiated <br> i. Connected to multiple data sources to obtain relevant information.<br> ii. Scoring the batch/individual calls based on past spendings patterns.<br> iii. Using the Scores, new credit limits, extra limits, etc. calculated.<br> iv. Carry out decision table actions<br>c. Respond with feedback to API or update tables in batches</li><li>Next Best Offer<br>a. Customer uses the card<br>b. Based on the spending patterns and other data from varied sources, the next best offer that can be given to the customer<br>c. Respond to API or populate the table with relevant information</li></ol><h3><strong>Technology Stack</strong></h3><ol><li>TIBCO Businessworks Container Edition</li><li>TIBCO BusinessEvents Enterprise Edition</li><li>TIBCO Cloud Integration (Flogo)</li><li>TIBCO LiveApps</li><li>TIBCO Spotfire</li></ol><h3><strong>Business Benefits</strong></h3><ol><li>An Omnichannel experience for the customers regardless of the platform they use and where they left. Customers will be greeted with where they left and have an enhanced user experience.</li><li>Better utilization of the data without moving it out of the eco-system (privacy focussed) for specialized and personalized offers to the customers and in turn improving the customer experience.</li><li>Enabling immediate response fraud detection and alarming system using high-performing decision tables, business rules, and AI/ML capabilities.</li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e1d410f57f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Embracing Healthcare Interoperability during Pandemic with TIBCO Integration Platform]]></title>
            <link>https://akash-mhptr.medium.com/embracing-healthcare-interoperability-during-pandemic-with-tibco-integration-platform-cc626d23bd1e?source=rss-4f8657eff022------2</link>
            <guid isPermaLink="false">https://medium.com/p/cc626d23bd1e</guid>
            <category><![CDATA[healthcare-innovations]]></category>
            <category><![CDATA[api-integration]]></category>
            <category><![CDATA[fhir]]></category>
            <category><![CDATA[api]]></category>
            <category><![CDATA[api-management]]></category>
            <dc:creator><![CDATA[Akash Mahapatra]]></dc:creator>
            <pubDate>Tue, 06 Oct 2020 07:38:06 GMT</pubDate>
            <atom:updated>2020-10-07T04:57:19.140Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>Embracing Healthcare Interoperability during Pandemic with TIBCO Cloud Integration</strong></h3><p>The World Health Organization (WHO) officially declared the SARS-CoV-2 outbreak a Public Health Emergency of International Concern on January 30, 2020, and a global pandemic on March 11, 2020. And since then, the way we live has changed immeasurably as the pandemic has brought to light the importance of technology, especially in data-sharing, analytics, and predictive modeling, leading to new communication means and skyrocketed need for computing resources. Remote work is the new normal. Most of us are at home, using tools like Zoom, Teams, and Slack to stay in touch with family, friends, and colleagues.</p><p>Healthcare providers and hospitals are overwhelmed and struggling to render quality care. Limited access to patient health records is leading to a delay in timely intervention and administrative hassles. The current model of exchanging healthcare information involves physical mails and faxes. It is imperative to remove this bottleneck so that medical information can be exchanged seamlessly, enabling providers to make better clinical decisions and empower patients to access their medical information.</p><p>On March 9, 2020, the Centers for Medicare &amp; Medicaid Services (CMS) announced the Final Rule for Interoperability and Patient Access. The intent of this Rule which affects all CMS-regulated health insurance plans, such as Medicare Advantage, Medicaid, Children Health Insurance Plan (CHIP), and Quality Health Plan (QHP) issuers on Federally-facilitated Exchanges (FFE), is to give patients full access and control of their health records electronically via mobile apps of the patients’ choice. The Rule mandates that these payers make two Application Program Interfaces (APIs) available by January 1, 2021 (plus a 6-month period where compliance will not be enforced) to third-party app developers so that these developers can create mobile apps which patients can choose to use.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HVZJBFeR_J2vvcB2LLsHHg.png" /><figcaption>The rule for Interoperability and Patient Access</figcaption></figure><p>These APIs (using Health Level 7® (HL7) Fast Healthcare Interoperability Resources® (FHIR) 4.0.1) include the following:</p><ul><li><strong>Patient Access API</strong> — which allows patients to easily access their claims and encounter information including costs and a defined subset of their clinical information.</li><li><strong>Provider Directory API — </strong>which makes the plans’ provider directory information publicly available.</li></ul><p>This Rule doesn’t just require one to write an API or two, it is much more.<br>There are a number of preparation steps that are needed in order to build these APIs:</p><ul><li>Managing data</li><li>Process Orchestration</li><li><a href="http://hl7.org/fhir/R4/">FHIR</a> (Fast Healthcare Interoperability Resources) Server &amp; Repository</li><li>Managing APIs</li></ul><p>FHIR, a specification, based on modern RESTful approaches makes it easier for healthcare entities to exchange information that is specific, well defined, and ubiquitously understood.</p><p>We at <strong>TIBCO’s Global Innovation Center</strong> recently built a system to show how payers (health insurers, CMS, etc.,) can meet the healthcare interoperability mandate by following the above steps.</p><h3><strong>System Architecture</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7_dc8u_Gm4aL6EuKluxgGQ.png" /><figcaption>Architectural Diagram</figcaption></figure><p>The solution takes care of the following:</p><ul><li>Data Entitlement and Governance of Patient and Provider Datasets using Data Virtualization and Master Data Management — Unifies versions across all data sources &amp; types</li><li>Reference Data Management for FHIR Terminologies — Clean, accurate &amp; secure data policies &amp; procedures</li><li>Rapid transformation of clinical records to FHIR Resources, HL7 message to FHIR Resource, FHIR Resource to HL7 message for enabling Patient Access API and Provider Directory API</li><li>Persisting FHIR resources in FHIR Server Repository</li><li>API Management of Patient Access API and Provider Directory API — Create/host/manage APIs &amp; provide a developer portal</li></ul><h3><strong>Business Impact</strong></h3><p>TIBCO Cloud Integration (TCI) provides an Interoperability Platform that is complete healthcare IT solution to will help you build a solid foundation for robust, flexible, scalable, and FHIR compliant applications with:</p><ul><li>Ease of Integration — quick and secure integration with backend applications along with HL7 FHIR plug-in providing schemas and out of the box encoding, validation, and CDS functionalities, pre-built maps accelerate data format conversions</li><li>Reduced cost and time to market — tooling for rapid development and deployment of FHIR applications, accelerate developer and third party onboarding with an intuitive and self-service developer portal</li><li>Data Accessibility — provide Data-As-A-Service for complete, unified, and trusted view of healthcare business data, add business context to your data, complete data lifecycle management, PHI protection, and HIPAA compliance</li><li>Security — <br>- ISO 27001:2013 Certificate for Information Security Management System<br>- Data Security: authentication, authorization, encryption, and masking, leverage your existing security investments (LDAP, Active Directory and Kerberos), standards (SAM, NTLM, TLS, and WSS), and policies for secure access<br>- API Security: API Key, API Key+Hash (MD5 or SHA1), OAuth2, and SAML for LDAP and AD integration</li></ul><p>FHIR standard’s modular approach and emphasis on the latest web technologies have the potential to lower the barrier for achieving meaningful interoperability in healthcare. The widespread adoption of interoperability would promote care coordination, better health outcomes, and quality measures. Physicians can make data-driven interventions, improving care, reducing medical spending waste, and errors. Patients can make informed decisions about their healthcare needs. With the TIBCO Interoperability platform provided by TCI, businesses can accelerate their healthcare interoperability journey with the right tools and holistic approach.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cc626d23bd1e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Setting up RDP in an Ubuntu AWS EC2 Instance]]></title>
            <link>https://medium.com/tecxperiments/setting-up-rdp-in-an-ubuntu-aws-ec2-instance-b11044ca849b?source=rss-4f8657eff022------2</link>
            <guid isPermaLink="false">https://medium.com/p/b11044ca849b</guid>
            <category><![CDATA[remote-working]]></category>
            <category><![CDATA[aws-ec2]]></category>
            <category><![CDATA[ubuntu-server]]></category>
            <dc:creator><![CDATA[Akash Mahapatra]]></dc:creator>
            <pubDate>Sat, 11 Apr 2020 13:13:45 GMT</pubDate>
            <atom:updated>2021-10-18T07:18:39.986Z</atom:updated>
            <content:encoded><![CDATA[<h3>Setting up RDP in an Ubuntu-18 AWS EC2 Instance</h3><p>I have come across situations many times when I have intentions to run some graphical sessions for some of my work. Many times having a GUI setup in your Linux servers can come in handy at times when you wish to show certain features or components of your development work to someone who is not that well accustomed to the CLI universe ( trust me this could be a lifesaver, “been there, done that”). But at times it becomes a hectic task to install an RDP server on a remote machine.</p><p>Here, in this article, I have listed the steps I generally take to set up an xRDP server on Ubuntu 18.04 hosted as an AWS EC2 instance.</p><p>Please note that if you are using any of the later versions of Ubuntu such as Ubuntu 20 or something, this method may not work. Please follow the steps mentioned in the <a href="https://ubuntu.com/tutorials/ubuntu-desktop-aws#1-overview">official Ubuntu website</a></p><p><strong>Step 1: Connecting to the remote server</strong></p><p>We need to login to the remote server via ssh in order to install various packages and prepare the environment. For this EC2 provides the command to connect to your instance. Just click on the “Connect” button towards to top right corner of the EC2 Service Page.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/549/1*FHzhatZAT3_dpeXSC_kEOw.png" /></figure><p><strong>Step 2: Create a new User</strong></p><p>This step is important as even though AWS provides you with a user “ubuntu”, but EC2 doesn’t provide a password for this user which will be required while login. You may try to follow the below approach of changing the password of “ubuntu” user but I prefer to create a new user and do all of my development under that user.</p><pre># Change to the super user<br>sudo su -</pre><pre># Provide a password for the &quot;ubuntu&quot; user<br>passwd ubuntu</pre><p>To create a new user you can follow <a href="https://www.digitalocean.com/community/tutorials/how-to-create-a-sudo-user-on-ubuntu-quickstart">this article</a>.</p><p><strong>Step 3: The actual Installation</strong></p><p>Once we are connected to our remote instance, we are now ready to setup the xRDP server</p><pre>sudo apt-get update</pre><pre>sudo apt-get install xrdp</pre><p>Installing a desktop environment : XFCE in our case as xRDP has problems working with Unity and GNOME desktop environment.</p><pre>sudo apt-get install xfce4<br>sudo apt-get install xfce4-terminal</pre><p>Make xRDP to use the environment we just create</p><pre>sudo sed -i.bak &#39;/fi/a #xrdp multiple users configuration \n xfce-session \n&#39; /etc/xrdp/startwm.sh</pre><p>Provide the Firewall permissions, allowing RDP (running at port 3389) to go through the local firewall.</p><pre>sudo ufw allow 3389/tcp</pre><pre># Restart xRDP<br>sudo /etc/init.d/xrdp restart</pre><p>Step 4: Done</p><p>The setting up is done and now you should be able to connect from your local laptops.</p><ul><li>If you are running a Windows machine, use the inbuilt RDP connection application.</li><li>Mac users can use the <a href="https://apps.apple.com/us/app/microsoft-remote-desktop-10/id1295203466?mt=12">Microsoft Remote Desktop</a></li><li><a href="https://remmina.org/how-to-install-remmina/">Remmina </a>can be used with any other platform.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Kh841e4kmTdPNwpPRTV2Tg.png" /></figure><p>Provide the username and password created in step 2.</p><p>References:</p><ul><li><a href="http://c-nergy.be/blog/?p=8952">http://c-nergy.be/blog/?p=8952</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b11044ca849b" width="1" height="1" alt=""><hr><p><a href="https://medium.com/tecxperiments/setting-up-rdp-in-an-ubuntu-aws-ec2-instance-b11044ca849b">Setting up RDP in an Ubuntu AWS EC2 Instance</a> was originally published in <a href="https://medium.com/tecxperiments">Tecxperiments</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Modern Event-Driven Application Development using TIBCO and AsyncAPI]]></title>
            <link>https://medium.com/tecxperiments/modern-event-driven-application-development-using-tibco-and-asyncapi-3400897a6cec?source=rss-4f8657eff022------2</link>
            <guid isPermaLink="false">https://medium.com/p/3400897a6cec</guid>
            <category><![CDATA[flogo]]></category>
            <category><![CDATA[event-driven-architecture]]></category>
            <category><![CDATA[asyncapi]]></category>
            <category><![CDATA[tibco]]></category>
            <dc:creator><![CDATA[Akash Mahapatra]]></dc:creator>
            <pubDate>Sun, 02 Feb 2020 16:38:41 GMT</pubDate>
            <atom:updated>2020-02-03T05:48:05.100Z</atom:updated>
            <content:encoded><![CDATA[<p>We have all heard about the term “API First Design” and “Cloud-Native Applications” (they generally walk hand in hand). APIs are omnipresent and sometimes we get caught up so much with them as the way of impelling data around and other technical aspects involved with the data formats, various protocols to be used, etc. that we forget they are truly about solving customer problems, enhancing developer experience, and integrating solutions. <br>Traditionally, APIs have been thought of as a wrapper around a set of protocols that enables different applications or logical units to communicate as a channel supporting data exchange. But recently with the rate with which various new technologies have been developed like GRPC, GraphQl, Web-sockets, etc. applications are required to conform to the rapidly changing message exchange patterns and eventually APIs have to bear the weight of adapting to the changing formats which may take on different characteristics, be it Request/Response (REST over HTTP), Batch Based or Publish/Subscribe (events or streaming) based on the conditions. APIs help a platform to open up and evolve by accommodating new behaviors as new protocols and design patterns get introduced in the market, beyond the situations they were initially designed in, which may force even the architectural approach to change, for instance, from monolithic to microservices-based to all the way to event-driven, allowing the applications to share events outside the platform and letting developers react and build on top of events.</p><p>Nearly every application in all modern infrastructures uses APIs to connect with data sources, third party data services or other applications. With so many applications and developers dealing with APIs, it became crucial to creating a description format for API services that could be used as a standard that is vendor-neutral and platform agnostic in order for accelerating the vision of a truly connected world. It’s a pain, not having a contract similar to RAML or OpenAPI for all your messages in your systems. This is often important in modern infrastructures involving multiple interdependent applications sharing messages amongst themselves. Consider a scenario where we tend to push messages into brokers where we may have many consumers, and a case arises where several times the producer of the messages suddenly changes the message format forcing us to fall into a mess of cascading effect of changing the interdependent applications and keeping track of these changes.</p><p>REST already had the OpenAPI, RAML, and other specification formats for generating a machine-readable definition of APIs but with an increasing number of applications in IoT space and with the emergence of new models of architectures, like serverless and event processing, a new standard of machine-readable specifications are required for applications dealing with message-driven APIs.Open-source project AsyncAPI is one such community where developers are working on these new standards. AsyncAPI is an API documentation specification for how event-driven services communicate with one another. It is a specification like the OpenAPI specifically designed to define contracts and dealing with the kind of difficulties mentioned above.</p><h3><strong>AsyncAPI Specification</strong></h3><p>The AsyncAPI Specification is a protocol-agnostic standard used to describe and document message-driven APIs in a machine-readable format, so you can use it for APIs that work over any protocol (e.g., AMQP, MQTT, WebSockets, Kafka, STOMP, HTTP, etc).</p><p>The AsyncAPI Specification defines a set of files required to describe such an API which can then be used to create utilities, such as documentation, integration and/or testing tools.</p><h3>Modern Event-Driven Application Development with TIBCO</h3><p>TIBCO has been closely associated with the project since its early days enabling enterprises to build use cases for event-driven APIs. Now coming to the sum and substance of this article, i.e How to develop applications using the AsyncAPI specification and Project Flogo. <br>Below are the steps to develop a simple publish/subscribe application over the MQTT protocol.</p><h4>Environment Setup</h4><p>Before going forward and developing we need to have certain requirements met, you need to have the following installed in your machine</p><ol><li><a href="https://git-scm.com/downloads">git</a></li><li><a href="https://www.docker.com/">Docker</a></li><li><a href="https://golang.org/dl/">Golang</a></li><li><a href="https://tibcosoftware.github.io/flogo/getting-started/getting-started-cli/">Flogo CLI</a></li></ol><h4>Developing the Flogo App</h4><p>Once you have set up your machine with the required software as mentioned above, you can start with the development.</p><ol><li>Get the Project Flogo extensions to support AsyncAPI: These will help you to convert the AsyncAPI specification to the corresponding Flogo application.<br>git clone <a href="https://github.com/project-flogo/asyncapi.git">https://github.com/project-flogo/asyncapi.git</a><br>cd asyncapi/<br>go install</li><li>Make sure the above command creates an executable binary at the location $GOPATH/bin called “asyncapi”.</li><li>Create a new folder and name it FlogoAsyncMessaging. Go to the newly created folder and create an AsyncAPI document file. An AsyncAPI document is a file that defines and annotates the different components of a specific Event-Driven API.<br>mkdir FlogoAsyncMessaging<br>cd FlogoAsyncMessaging<br>vi asyncapi.yml<br>The content of AsyncAPI document file asyncapi.yml can be obtained from <a href="https://github.com/project-flogo/asyncapi/blob/master/examples/mqtt/asyncapi.yml">here</a>.</li><li>Creating a Flogo application out of the asyncapi.yml AsyncAPI document file. <br>For creating a Flogo application you need to generate the JSON file corresponding to the Go code generated above:<br>asyncapi -input asyncapi.yml -type flogodescriptor</li><li>The resulting outputs are two files getting created namely flogo.json and support.go.</li><li>Create the Flogo application by using the flogo.json file created above.<br>flogo create -f flogo.json mqtt<br>Followed by the below set of commands:<br>mv support.go mqtt/src/<br>cd mqtt<br>flogo build</li><li>The above command creates a Flogo executable in the location mqtt/bin namely mqtt. <br>Alternatively, Flogo CLI also allows you to generate the Go code from the specification defined in the AsyncAPI document file.<br>asyncapi -input asyncapi.yml -type flogoapiapp -output .</li><li>The resulting outputs are three files getting created namely app.go, go.mod, and support.go. We can directly build app.go into a working executable:<br>go build<br>This command creates a new executable namely main</li></ol><h4>Testing the Flogo Application</h4><ol><li>Open a terminal (if you are using windows, you can use git bash) and start the MQTT server. If you don’t have a local server you can use the below command to start a docker container.<br>docker run -it -p 1883:1883 -p 9001:9001 eclipse-mosquitto</li><li>Open another terminal window and go to the location where you created the Flogo executable and run it.<br>cd FlogoAsyncMessaging/mqtt/bin <br>./mqtt<br>This is an MQTT subscriber that is connected to the MQTT broker started in step 1 of Testing the Flogo application.</li><li>In a new terminal start an MQTT publisher and start publishing messages and see that the subscriber has started getting the data being sent.<br>If you don’t have a local MQTT server and are using the docker container as mentioned in step 1 then follow the below steps.<br>docker ps<br>docker exec -it &lt;MOSQUITTO CONTAINER ID&gt; /bin/sh<br>The syntax to publish messages to the MQTT broker is:<br>mosquitto_pub -m ‘{“message”: “hello world”}’ -t message/1</li><li>If you configured everything as mentioned, you should see messages being consumed by the Flogo application as created using the AsyncAPI specification.</li></ol><h3><strong>References</strong></h3><ol><li><a href="https://www.asyncapi.com/">https://www.asyncapi.com/</a></li><li><a href="https://github.com/OAI/OpenAPI-Specification">https://github.com/OAI/OpenAPI-Specification</a></li><li><a href="https://github.com/project-flogo/asyncapi">https://github.com/project-flogo/asyncapi</a></li><li><a href="https://www.tibco.com/blog/2019/08/21/tibco-teams-up-with-asyncapi-to-advance-modern-event-driven-apps/">https://www.tibco.com/blog/2019/08/21/tibco-teams-up-with-asyncapi-to-advance-modern-event-driven-apps/</a></li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3400897a6cec" width="1" height="1" alt=""><hr><p><a href="https://medium.com/tecxperiments/modern-event-driven-application-development-using-tibco-and-asyncapi-3400897a6cec">Modern Event-Driven Application Development using TIBCO and AsyncAPI</a> was originally published in <a href="https://medium.com/tecxperiments">Tecxperiments</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Cloudera — Sandbox Deployment and Install Guide]]></title>
            <link>https://medium.com/tech-weekly/cloudera-sandbox-deployment-and-install-guide-6ae12bffe03e?source=rss-4f8657eff022------2</link>
            <guid isPermaLink="false">https://medium.com/p/6ae12bffe03e</guid>
            <category><![CDATA[tibco]]></category>
            <category><![CDATA[hortonworks]]></category>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[hortonworks-sandbox]]></category>
            <dc:creator><![CDATA[Akash Mahapatra]]></dc:creator>
            <pubDate>Tue, 03 Dec 2019 13:59:17 GMT</pubDate>
            <atom:updated>2019-12-03T17:42:50.105Z</atom:updated>
            <content:encoded><![CDATA[<h3>Cloudera — Sandbox Deployment and Install Guide</h3><p>Getting stuck is never fun. Especially when you’re working really hard on finishing up a project that has this “deadline” monster staring at you constantly through the skylight. I was caught up in a similar situation, on a Friday night, while working on a project involving integration with <a href="https://www.cloudera.com/downloads/hortonworks-sandbox/hdp.html">Hortonworks Data Platform on Hortonworks Sandbox</a>.</p><p>I was using its Docker version on an AWS Instance and due to certain reasons, which I will mention in a while, the script provided by Hortonworks was incapable to bring the necessary containers up. So, in this post, I have made a note of the steps that I took in order to resolve the issue and make the setup work.</p><p>You have to keep in mind that the setup has huge containers ( ~30GB ) and it needs to have at least 10GB of RAM to work properly. These are the <a href="https://www.cloudera.com/tutorials/sandbox-deployment-and-install-guide/3.html">prerequisites</a> as mentioned by the Sandbox Deployment and Install Guide. I was using AWS Image: Docker Infrastructure Ubuntu 14.04, which comes with Ubuntu Version: 1.10.2 preinstalled. So, depending upon your Docker version, you may or may not get the errors that have been listed below.</p><p>The guide tells you to run the below command:</p><pre>sh docker-deploy-{HDPversion}.sh<br>#In my case HDPVersion is 30 : docker-deploy-hdp30.sh</pre><p>Depending upon your version of Linux, you may have to either run it as bash.</p><p>From this point onward, we may have different kinds of errors or no errors at all. I am putting the errors that I got and how I have resolved them.</p><p>The first message which popped up was:</p><pre>+ docker run --privileged --name sandbox-hdp -h sandbox-hdp.hortonworks.com --network<br>flag provided but not defined: --network<br>See &#39;docker run --help&#39;.</pre><p>If you check docker documentation, it shows:</p><pre>$ docker run --help | grep net  <br>  --net=default           Connect a container to a network<br>  --net-alias=[]          Add network-scoped alias for the container</pre><p>Replace the flag from network to net in the script docker-deploy-hdp30.sh at line #40</p><pre>docker run --privileged --name $name -h $hostname --net=cda --net-alias=$hostname -d &quot;$registry/$name:$version&quot;</pre><p>The next error was:</p><pre>+ docker exec -t sandbox-hdp sh -c &#39;rm -rf /var/run/postgresql/*; systemctl restart p<br>Error response from daemon: Container sandbox-hdp is not running</pre><p>This could be due to the previous error so let’s ignore it for the time being. Following this was:</p><pre>+ sandbox/proxy/proxy-deploy.sh<br>sandbox-proxy<br>flag provided but not defined: --network<br>See &#39;docker run --help&#39;.</pre><p>Upon looking into the script docker-deploy-hdp30.sh, at the last line, there is a call to another script, i.e. sandbox/proxy/proxy-deploy.sh.<br>Open the file sandbox/proxy/proxy-deploy.sh and replace the network flag with net as shown below. Remember to open this file as sudo</p><pre>docker run --name sandbox-proxy --net=cda \</pre><p>Then run only the sandbox/proxy/proxy-deploy.sh script. Do not go back and run the docker-deploy-hdp30.sh file or else you will have to make the changes again, as it creates a new sandbox/proxy/proxy-deploy.sh file everytime. When I ran it, I got the error as :</p><pre>docker: Error response from daemon: failed to create endpoint sandbox-proxy on network cda: Bind for 0.0.0.0:8000 failed: port is already allocated.</pre><p>So, I changed the port from 8000 to 18000 and ran the script again and it solved my problem.</p><p>Now the HDP setup is ready and you can play with it.</p><pre>$ docker ps | grep sandbox-hdp<br>f55b44e38022   hortonworks/sandbox-hdp:3.0.1  &quot;/usr/sbin/init&quot;   14 minutes ago   Up 14 minutes      22/tcp, 4200/tcp, 8080/tcp    sandbox-hdp</pre><pre>$docker exec -it f55b44e38022 bin/bash<br>[root@sandbox-hdp /]# hive<br>0: jdbc:hive2://sandbox-hdp.hortonworks.com:2&gt; show databases;</pre><p>Thank you,</p><p>Cheers.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6ae12bffe03e" width="1" height="1" alt=""><hr><p><a href="https://medium.com/tech-weekly/cloudera-sandbox-deployment-and-install-guide-6ae12bffe03e">Cloudera — Sandbox Deployment and Install Guide</a> was originally published in <a href="https://medium.com/tech-weekly">Tech Weekly</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Cloudera — Sandbox Deployment and Install Guide]]></title>
            <link>https://medium.com/tecxperiments/cloudera-sandbox-deployment-and-install-guide-7922500243b7?source=rss-4f8657eff022------2</link>
            <guid isPermaLink="false">https://medium.com/p/7922500243b7</guid>
            <category><![CDATA[hortonworks-sandbox]]></category>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[hortonworks]]></category>
            <dc:creator><![CDATA[Akash Mahapatra]]></dc:creator>
            <pubDate>Sun, 24 Nov 2019 18:10:38 GMT</pubDate>
            <atom:updated>2019-11-24T18:10:38.378Z</atom:updated>
            <content:encoded><![CDATA[<h3>Cloudera — Sandbox Deployment and Install Guide</h3><p>Getting stuck is never fun. Especially when you’re working really hard on finishing up a project that has this “deadline” monster staring at you constantly through the skylight. I was caught up in a similar situation, on a Friday night, while working on a project involving integration with <a href="https://www.cloudera.com/downloads/hortonworks-sandbox/hdp.html">Hortonworks Data Platform on Hortonworks Sandbox</a>.</p><p>I was using its Docker version on an AWS Instance and due to certain reasons, which I will mention in a while, the script provided by Hortonworks was incapable to bring the necessary containers up. So, in this post, I have made a note of the steps that I took in order to resolve the issue and make the setup work.</p><p>You have to keep in mind that the setup has huge containers ( ~30GB ) and it needs to have at least 10GB of RAM to work properly. These are the <a href="https://www.cloudera.com/tutorials/sandbox-deployment-and-install-guide/3.html">prerequisites</a> as mentioned by the Sandbox Deployment and Install Guide. I was using AWS Image: Docker Infrastructure Ubuntu 14.04, which comes with Ubuntu Version: 1.10.2 preinstalled. So, depending upon your Docker version, you may or may not get the errors that have been listed below.</p><p>The guide tells you to run the below command:</p><pre>sh docker-deploy-{HDPversion}.sh<br>#In my case HDPVersion is 30 : docker-deploy-hdp30.sh</pre><p>Depending upon your version of Linux, you may have to either run it as bash.</p><p>From this point onward, we may have different kinds of errors or no errors at all. I am putting the errors that I got and how I have resolved them.</p><p>The first message which popped up was:</p><pre>+ docker run --privileged --name sandbox-hdp -h sandbox-hdp.hortonworks.com --network<br>flag provided but not defined: --network<br>See &#39;docker run --help&#39;.</pre><p>If you check docker documentation, it shows:</p><pre>$ docker run --help | grep net  <br>  --net=default           Connect a container to a network<br>  --net-alias=[]          Add network-scoped alias for the container</pre><p>Replace the flag from network to net in the script docker-deploy-hdp30.sh at line #40</p><pre>docker run --privileged --name $name -h $hostname --net=cda --net-alias=$hostname -d &quot;$registry/$name:$version&quot;</pre><p>The next error was:</p><pre>+ docker exec -t sandbox-hdp sh -c &#39;rm -rf /var/run/postgresql/*; systemctl restart p<br>Error response from daemon: Container sandbox-hdp is not running</pre><p>This could be due to the previous error so let’s ignore it for the time being. Following this was:</p><pre>+ sandbox/proxy/proxy-deploy.sh<br>sandbox-proxy<br>flag provided but not defined: --network<br>See &#39;docker run --help&#39;.</pre><p>Upon looking into the script docker-deploy-hdp30.sh, at the last line, there is a call to another script, i.e. sandbox/proxy/proxy-deploy.sh.<br>Open the file sandbox/proxy/proxy-deploy.sh and replace the network flag with net as shown below. Remember to open this file as sudo</p><pre>docker run --name sandbox-proxy --net=cda \</pre><p>Then run only the sandbox/proxy/proxy-deploy.sh script. Do not go back and run the docker-deploy-hdp30.sh file or else you will have to make the changes again, as it creates a new sandbox/proxy/proxy-deploy.sh file everytime. When I ran it, I got the error as :</p><pre>docker: Error response from daemon: failed to create endpoint sandbox-proxy on network cda: Bind for 0.0.0.0:8000 failed: port is already allocated.</pre><p>So, I changed the port from 8000 to 18000 and ran the script again and it solved my problem.</p><p>Now the HDP setup is ready and you can play with it.</p><pre>$ docker ps | grep sandbox-hdp<br>f55b44e38022   hortonworks/sandbox-hdp:3.0.1  &quot;/usr/sbin/init&quot;   14 minutes ago   Up 14 minutes      22/tcp, 4200/tcp, 8080/tcp    sandbox-hdp</pre><pre>$docker exec -it f55b44e38022 bin/bash<br>[root@sandbox-hdp /]# hive<br>0: jdbc:hive2://sandbox-hdp.hortonworks.com:2&gt; show databases;</pre><p>Thank you,</p><p>Cheers.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7922500243b7" width="1" height="1" alt=""><hr><p><a href="https://medium.com/tecxperiments/cloudera-sandbox-deployment-and-install-guide-7922500243b7">Cloudera — Sandbox Deployment and Install Guide</a> was originally published in <a href="https://medium.com/tecxperiments">Tecxperiments</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>