<?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[Engineering @ Onera - Medium]]></title>
        <description><![CDATA[Powering limitless commerce. - Medium]]></description>
        <link>https://medium.com/onera-engineering?source=rss----433d1d95608e---4</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>Engineering @ Onera - Medium</title>
            <link>https://medium.com/onera-engineering?source=rss----433d1d95608e---4</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 12:28:40 GMT</lastBuildDate>
        <atom:link href="https://medium.com/feed/onera-engineering" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Solving the Revenue Optimization Knapsack Problem in Practice]]></title>
            <link>https://medium.com/onera-engineering/solving-the-revenue-optimization-knapsack-problem-in-practice-d01abf7330de?source=rss----433d1d95608e---4</link>
            <guid isPermaLink="false">https://medium.com/p/d01abf7330de</guid>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[optimization]]></category>
            <category><![CDATA[knapsack-problem]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[retail-technology]]></category>
            <dc:creator><![CDATA[Srinath Sridhar]]></dc:creator>
            <pubDate>Thu, 20 Feb 2020 19:22:23 GMT</pubDate>
            <atom:updated>2020-02-20T19:22:22.959Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_nuKUSBbzagw95qCB12Kgw.png" /></figure><p>Recall that, as mentioned in the <a href="https://medium.com/onera-engineering/knapsack-problem-1bc5f58cd9e">previous post</a>, Onera can cast the problem of optimizing revenue without degrading customer experience as the following knapsack problem. Specifically, we have the following problem formulation:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/1*sLKxqIBryZSanaH5E8nEig.png" /></figure><p>In the above formulation, the retailer sells a set of items <em>I. </em>Each item <em>i </em>in <em>I</em>, has value <em>v</em>(<em>i</em>) which is the expected revenue (or margin) that the retailer makes if they sell that item and corresponding to that there is <em>w</em>(<em>i</em>) which is the expected number of dissatisfied customers (the size of the item in the knapsack problem). The problem asks for us to maximize the total expected revenue while ensuring that the total customer dissatisfaction remains below threshold <em>W</em>.</p><p>The knapsack problem as stated above is expressed as an <a href="https://en.wikipedia.org/wiki/Integer_programming">integer linear program</a>. Specifically, note that the variables <em>x</em> can only take on a value of either a 0 or a 1. If we hypothetically assume that we can include an item into the knapsack fractionally (nonsensical in the real-world when filling a knapsack made of rigid items), then we obtain what is called as a <a href="https://en.wikipedia.org/wiki/Linear_programming_relaxation">linear programming relaxation</a> of the integer program. In the linear programming relaxation we just convert the variables <em>x</em> from being binary in {0, 1} to a real number in [0, 1]. The linear programming relaxation is a problem that is in <strong><em>P</em></strong> while the above integer linear program is a problem that is <strong><em>NP</em></strong><em>-complete</em> like mentioned <a href="https://medium.com/onera-engineering/knapsack-problem-1bc5f58cd9e">before</a>. This should make intuitive sense since if I can fit an item fractionally, then I should be able to fill the knapsack up fully and it makes the problem a whole lot easier.</p><p>Notice that there are <em>I</em> variables, <em>I</em> constraints that ensure that the variables are all binary (or 2<em>I</em> constraints in the relaxation enforcing that <em>x</em> is in [0, 1]) and a single constraint that enforces that the sum of the sizes of the items selected is at most <em>W</em>. We will call that single constraint as the <em>knapsack constraint</em> and the remaining 2<em>I</em> constraints as binary <em>boundary constraints</em>. In this problem, the<em> 2I + 1</em> constraints each are <em>I</em>-dimensional hyperplanes each of which enforce feasibility on one side. These constraints together, using their intersections, define an <em>I</em>-dimensional <a href="https://en.wikipedia.org/wiki/Polytope">polytope</a> within which lie all feasible solutions to the knapsack problem. The points outside the polytope are those that violate at least one of the above set of constraints.</p><p>In a classical work, it has been shown that all linear programs have an optimal solution that lies at an <a href="https://en.wikipedia.org/wiki/Extreme_point">extreme point</a>. Think of an extreme point as just a generalization of a vertex, for example a point at the intersection of a polygon, such as the three points of a triangle or 4 points of a square.</p><p>The solution at the extreme point is called as the basic feasible solution, which was the defining concept used in <a href="https://en.wikipedia.org/wiki/Simplex_algorithm">Simplex</a>, one of the big results in computer science history to solve linear programs fast in practice. It is fairly intuitive to see this if one can imagine any polygon and an objective function as a direction vector.</p><p>We now examine these extreme points of the knapsack polytope (again the linear relaxation) to find a beautiful structure that helps us solve them extremely fast. Note that an extreme point in this <em>I</em>-dimensional polytope is defined exactly as the intersection of <em>I</em>-linearly independent <em>I</em>-dimensional hyperplanes. Consider any such extreme point in the knapsack problem’s polytope. To get <em>I</em>-linearly independent hyperplanes, we need either <em>I</em> of the boundary constraints each of which corresponding to a unique variable or we have <em>I-</em>1 linearly independent boundary constraints each of which corresponding to a unique variable and the 1 knapsack constraint. In the former case, the extreme point would simply be defined by planes each of which enforce that the variable is binary (in {0, 1}) but not in between. In the latter case, we have <em>I-</em>1 variables set to 0 or 1 and possibly one variable, corresponding to the only variable that was not part of the <em>I</em> boundary constraints but part of the knapsack constraint have a fractional value in (0, 1).</p><p>This implies that when we solve the linear program relaxation of the integer program using Simplex, it will give us a solution where all the variables are binary with the exception of at most 1 variable.</p><p>This has huge significance in practice. Let us take an example where, as in the case of Onera’s systems, each variable corresponds to an item that the retailer might carry. Retailers typically carry and sell millions of products and so this program contains millions of variables. In one quick solve of the linear program relaxation, we get a solution where all but at most one variable is integral. Said another way, we actually have the optimal solution if you ignore only that single product in the entire catalog of products that the retailer carries. Indeed, the effect of that is so small that it only takes in practice a few more <a href="https://en.wikipedia.org/wiki/Branch_and_bound">branch-and-bound</a> relaxations to find the true optimality but even otherwise, the solution is incredibly close to optimal straight away by solving a problem in <strong>P</strong>. The chances are that if you have a million products you can argue that your solution will be instantly about 99.99% accurate by solving this relaxation. The 0.01% is definitely not going to be the problem in your models in practice.</p><p><strong>Take Aways.</strong> What does this all mean? Here are some simple, handy observations:</p><ol><li>When the problem you are solving can be modeled as a knapsack problem, do not immediately worry that it is <strong><em>NP</em></strong><em>-complete</em>. In fact, we can be happy that it is knapsack.</li><li>One can generalize the above statement beyond the knapsack of course. Specifically when constructing the integer linear programming model, see if it can be defined with just a few non-boundary constraints. The number of those constraints is an upper bound on the number of fractional variables in the linear programming relaxation. The fewer that those are, the faster and closer to optimal solution one can get.</li></ol><p>Side note: Although you can essentially always solve the knapsack very fast in practice, it is still very much <strong><em>NP</em></strong><em>-complete</em> and the ‘fast in practice’ does not translate to other <strong><em>NP</em></strong><em>-complete</em> problems like the k-clique or Steiner minimum tree which are not only <strong><em>NP</em></strong><em>-complete</em> but are also hard to solve in practice. These things also do not make a dent on complexity classes and so things like public key encryption remain unaffected.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d01abf7330de" width="1" height="1" alt=""><hr><p><a href="https://medium.com/onera-engineering/solving-the-revenue-optimization-knapsack-problem-in-practice-d01abf7330de">Solving the Revenue Optimization Knapsack Problem in Practice</a> was originally published in <a href="https://medium.com/onera-engineering">Engineering @ Onera</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Modeling Revenue Optimization Without Degrading Customer Satisfaction: A Knapsack Problem]]></title>
            <link>https://medium.com/onera-engineering/knapsack-problem-1bc5f58cd9e?source=rss----433d1d95608e---4</link>
            <guid isPermaLink="false">https://medium.com/p/1bc5f58cd9e</guid>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[knapsack-problem]]></category>
            <category><![CDATA[customer-satisfaction]]></category>
            <category><![CDATA[optimization-algorithms]]></category>
            <category><![CDATA[retail]]></category>
            <dc:creator><![CDATA[Abhishek Das]]></dc:creator>
            <pubDate>Wed, 30 Oct 2019 18:48:51 GMT</pubDate>
            <atom:updated>2019-10-30T18:48:51.027Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_JzjAJzPMV3dS10iDgIq5w.png" /></figure><p>In this write-up, we unpack how Onera can model, optimize and increase the revenue (or gross margins) for its retail clients while maintaining a superior level of customer service.</p><h3>Optimizing the Retail Landscape</h3><p>In today’s retail landscape, customer expectations have never been higher. No matter how or where they choose to shop, they expect in-stock products, fast-and-free delivery, as well as exceptional service. Retailers who get this right are able to transform their stores into fulfillment centers, leveraging their existing operations to offer more products for their customers via omnichannel programs like Ship-From-Store (SFS) and Buy-Online-Pick-Up-in-Store (BOPUS). Each unit of product that they can sell through these programs generates revenue for the retailer.</p><p>Onera’s typical clients are very large retailers and brands. These companies have hundreds, if not thousands, of stores and sell millions of different products. Traditional retail stores, however, do not operate like fulfillment centers. While fulfillment centers are built to support pick, pack, and ship services, stores are more complex fulfillment environments — subject to shrinkage, inventory inaccuracy, human error, as well as in-store traffic demanding superior level of customer satisfaction. Such environments introduce unpredictability and risk that inventory may not be found to fulfill an omnichannel order, leading to canceled and degraded customer satisfaction.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/1*y4j3OgcJhfMUAv14E-RHsA.png" /><figcaption>Managing online availability when stores act as fulfillment centers requires a careful balance.</figcaption></figure><p>How Onera determines and models customer satisfaction is an entirely different, complex topic for another day. For simplicity’s sake, each unit of product that a retailer can sell can be thought to have an expected customer satisfaction rate. Retailers have the option of selling more of a certain product or less. Selling more of that product may increase revenue (or overall margin), but may bring down the customer satisfaction rate — and vice-versa. The paramount question is how to optimize a retailer’s overall revenue without degrading customer satisfaction. At Onera, we realized that we can model and solve this as a Knapsack problem.</p><h3>A Brief Note on Problem Complexity</h3><p>Before introducing the problem itself, it is worth talking about <em>P </em>vs<em> NP</em>.</p><p>Broadly speaking, problems in computer science fall under many complexity classes, each of which characterize the hardness of solving a problem. At one end of of the spectrum are problems so hard that computers will never be able to solve them, called <em>Undecidable Problems</em>. <em>P</em> is the complexity class that modern day computers (no quantum computers needed) can solve <em>efficiently</em>, and so one will interchangeably hear the term <em>tractable</em> for these problems. <em>NP</em> is the class of problems that are harder (to be precise, <em>not</em> easier) than those in <em>P</em>.</p><p><em>NP-Complete</em> is a complexity class that contains a collection of problems which are all ‘equally’ hard, such that a <a href="https://link.springer.com/chapter/10.1007%2F978-1-4684-2001-2_9">Nobel prize winning work</a> (essentially) showed that if you prove one of them to be a <em>tractable</em> problem, then all of them are <em>tractable</em>. If none of them are known to be <em>tractable</em>, one will interchangeably hear the term <em>intractable</em> to refer to these problems.</p><p>Problems in this believed-to-be-<em>intractable</em> complexity class include many that are important for humans to solve — for example, simple characterizations of the protein folding problem. However, we have also leveraged this (likely) gap in <em>tractability</em> in good ways. For example, all of internet security by way of public key crypto-systems relies on the assumption that there are fundamentally <em>intractable</em> problems in <em>NP-complete</em> class that do not belong in <em>P</em>, specifically to create cryptographic one-way functions. If this assumption fails, then the entire fabric of public key crypto-systems fails and the world economy will crash completely.</p><h3>Introducing the Knapsack Problem</h3><p>The Knapsack is a classic problem that is <em>NP-complete</em> and, in fact, was among the <a href="https://en.wikipedia.org/wiki/Karp%27s_21_NP-complete_problems">first problems shown to be NP-complete</a> in the above-mentioned classic computer science paper.</p><p>It is a problem that every person has faced while packing a bag for vacation. You have <em>I</em> different items, each item <em>i</em> has a value <em>v</em> and size <em>w</em>. You want to pack the set of most valuable items, defined as the sum of all its values, while ensuring that the sum of their sizes do not exceed the size of the knapsack <em>W</em>. This is a deceptively simple problem—but if you can write a computer program to solve it fast provably, then you will bring down the world economy.</p><p>You may now see the relationship between the knapsack problem and the optimization that retailers have to perform. The set <em>I</em> is simply every product that the retailer sells. Each item <em>i</em>, has the value <em>v</em>(<em>i</em>), which is the expected revenue (or margin) that the retailer makes if they sell that item. Corresponding to that, there is <em>w</em>(<em>i</em>), which is the expected number of dissatisfied customers (the size of the item in the knapsack problem).</p><p>The retailer now needs to maximize the revenue, or pack as many valuable items into the knapsack, while ensuring that the customer satisfaction rate does not drop below threshold <em>t</em>. We note that customer satisfaction rate and number of (dis)satisfied customers (<em>W</em>) can be used interchangeably because of some simple normalization. And so, we have the following problem:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/350/1*RA3iOEdFEDpAmnqhfeAAlg.jpeg" /></figure><p>As you may have guessed, this would mean that solving this problem to optimize a retailer’s revenue would be impossibly hard since that would imply showing <em>P=NP</em> and bringing down the entire world economy. So how do we achieve this without the world changing forever? We explain that in a future blog post.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1bc5f58cd9e" width="1" height="1" alt=""><hr><p><a href="https://medium.com/onera-engineering/knapsack-problem-1bc5f58cd9e">Modeling Revenue Optimization Without Degrading Customer Satisfaction: A Knapsack Problem</a> was originally published in <a href="https://medium.com/onera-engineering">Engineering @ Onera</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Spark at Onera: A Hybrid Cloud Approach]]></title>
            <link>https://medium.com/onera-engineering/spark-at-onera-a-hybrid-cloud-approach-bd8b89284848?source=rss----433d1d95608e---4</link>
            <guid isPermaLink="false">https://medium.com/p/bd8b89284848</guid>
            <category><![CDATA[apache-spark]]></category>
            <category><![CDATA[aws-emr]]></category>
            <category><![CDATA[distributed-computing]]></category>
            <category><![CDATA[gcp-dataproc]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <dc:creator><![CDATA[Abhinav Sarje]]></dc:creator>
            <pubDate>Thu, 19 Sep 2019 20:16:01 GMT</pubDate>
            <atom:updated>2019-09-19T20:16:01.248Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TjfSc7JEC14N3CbemFyS3Q.png" /></figure><h3>The Best of EMR and Dataproc</h3><p>Apache Spark is useful in processing large workloads at scale, and is one of the most widely used parallel processing frameworks in the industry. Cloud providers — including both Amazon Web Services (AWS) and Google Cloud Platform (GCP) — offer Spark as a hosted service through their Elastic Map-Reduce (EMR) and Dataproc services, respectively.</p><p>In this post, we discuss the advantages and disadvantages of these two hosted services (per our processing needs at Onera), as well as our design to utilize them both simultaneously. This post is not about how to implement Spark applications or how to use each of these cloud hosted services, but rather about the hybrid cloud approach we have adopted at Onera.</p><h3>Comparing the Hosted Spark Services</h3><p>AWS EMR has been around much longer than GCP Dataproc, and is viewed as a more mature platform compared to the latter. Apart from both offering hosted Spark services, there are some significant differences. We analyzed these differences to identify which aspects favor one platform over the other and influence design decisions on the architecture deployed at Onera.</p><p><strong>Native support for asynchronous job execution</strong></p><p>One of the major limiting factors on AWS EMR is that it surprisingly does not provide native support for asynchronous job execution through its default interface to add a “<a href="https://docs.aws.amazon.com/emr/latest/ReleaseGuide/emr-spark-submit-step.html">Spark Step</a>” so that available resources are utilized to their full potential. Multiple Spark jobs submitted to the EMR queue as Spark Steps are processed one after the other in a sequential fashion. In order to enable concurrent execution of multiple Spark jobs on EMR, we implemented a workaround by explicitly setting the Yarn configuration parameter <a href="https://aws.amazon.com/blogs/big-data/submitting-user-applications-with-spark-submit">spark.yarn.submit.waitAppCompletion to </a><a href="https://aws.amazon.com/blogs/big-data/submitting-user-applications-with-spark-submit">false</a>. This allows the jobs to be submitted and executed asynchronously in a non-blocking fashion. On the other hand, GCP Dataproc supports this out of the box and the workaround is not needed.</p><p><strong>Documentation &amp; community support</strong></p><p>EMR has the advantage of being significantly more mature than Dataproc, thereby providing significantly richer documentation and support.</p><p><strong>Cluster spin-up time</strong></p><p>Here, Dataproc is the clear winner. EMR has a typical cluster spin-up time of around ten minutes, while Dataproc requires just two minutes. Additional issues were uncovered on the EMR side, in that the required Spark and Yarn services do not automatically restart on a cluster reboot, making the cluster unusable unless these services are restarted via additional scripting overhead. Dataproc is more reliable in this aspect and a cluster reboot does not render the cluster unusable.</p><p><strong>Dollar cost</strong></p><p>As per the workloads at Onera, we found EMR to be more expensive compared to Dataproc. A detailed cost analysis for executing Spark on the two platforms will follow as a separate post.</p><p>Since we utilize AWS S3 for data storage, data movement in and out of S3 to Dataproc incurs additional cost; however even with this overhead, overall we still found Dataproc to be cheaper.</p><p><strong>Stability</strong></p><p>Given the above findings, ideally we would favor Dataproc over EMR, primarily over easier cluster management, lower spin-up time, and lower dollar costs. Due to the lower stability on Dataproc, however, we have experienced higher downtime on Dataproc than on EMR.</p><p>Based on these experiences, we decided to adopt a hybrid approach where we utilize both platforms and develop a seamless abstraction over them in order to easily utilize either of the two services as the need arises. This also matches Onera’s philosophy of implementing its architecture as a modular system with interactions among microservices, and being flexible in configuration.</p><h3>A Hybrid Cloud Approach</h3><p>In order to develop a seamless and platform-agnostic Spark service, we should be able to initiate Spark jobs to be submitted to either platform: EMR and Dataproc. AWS has been Onera’s primary cloud platform in that our primary pipelines execute on AWS; incorporating GCP services into our architecture requires a secure and authenticated communication to be established between the two platforms’ VPCs to enable seamless resource access and sharing among our microservices.</p><p>Using long lived credentials to provide resource access is a simpler approach, but requires a “<em>secure location</em>” to store these credentials, and leads to a single point vulnerability if the secure location gets compromised.</p><p>Instead, we opted for authentication and resource access through encrypted short lived security tokens (STS). This provides an additional layer of security, since the credentials expire after a short period of time.</p><p>Spark jobs are initiated through our pipelines running on AWS. (An overview of our microservices system architecture calls for another blog post.) A Spark job submitted to EMR for execution inherits the limited access security within our VPC on AWS (seen as the blue and purple steps in the below illustration).</p><p>Whenever a Spark job needs to be executed on Dataproc — which is an external resource to AWS — STS credentials are generated and encrypted through our key management microservice, and are transferred over to Dataproc with the Spark job. The driver on Dataproc decrypts the credentials using the same key management microservice, and subsequently uses them for resource access on AWS (as illustrated below in the blue and yellow steps).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LOK8Fa1xi-4DVuinZP2NMQ.png" /></figure><h3>API Design and Configuration Management</h3><p>Now that we can submit Spark jobs on either platform securely, we need a cloud platform-agnostic Spark job management API that can be used within to initiate and submit Spark jobs seamlessly on either platform.</p><p>We have implemented OneraClusterUtils interface to provide such an abstraction, with methods to submit Spark jobs asynchronously and query these jobs for their completion status. A platform-specific implementation of this interface was then realized for each of the two cloud services to handle the platform-specific details. The abstraction design is not just limited to these two cloud providers, but can be extended to other cloud services as well, such as Microsoft Azure. The following graphic visualizes this abstraction API.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*07vrNeY0iMS8aZhl61y6dg.png" /></figure><p>The OneraClusterUtils implementations also integrate a configuration microservice, which can be used to determine the hosted cloud service via a unified configuration file. In addition, multiple cluster environments are supported, such as separate development teams working on independent projects. The API gives the flexibility of selecting the cloud provider simply by specifying the service to use as a string in the configuration.</p><p>The microservice takes care of submitting any Spark jobs initiated through the pipeline to the Spark cluster on the platform of choice, along with any provider-specific configuration parameters as defined for a given environment through the configuration management. This configuration management microservice also determines the Spark and Yarn configurations through any defined parameters. (An abstraction of <a href="https://aws.amazon.com/blogs/big-data/submitting-user-applications-with-spark-submit/">performance-related Spark parameters</a> was also architected, which will be discussed in detail in a future post.)</p><pre><strong>spark.json</strong><br>{<br>    ...<br>    &quot;spark_cluster_properties&quot;: {<br>        &quot;spark_cluster_provider&quot;: {<br>        &quot;&lt;application_name_1&gt;&quot;: &quot;emr&quot;,<br>        &quot;&lt;application_name_2&gt;&quot;: &quot;dataproc&quot;,<br>        ...<br>    },<br>    &quot;spark_cluster_environment&quot;:  &quot;production&quot;<br>}</pre><pre><strong>emr.json</strong><br>{<br>    ...<br>    &quot;production_env&quot;: {<br>        &quot;cluster_id&quot;: &quot;&lt;cluster_id&gt;&quot;,<br>        ...<br>    },<br>    &quot;foo_env&quot;: {<br>        &quot;cluster_id&quot;: &quot;&lt;cluster_id&gt;&quot;,<br>        ...<br>    },<br>    &quot;bar_env&quot;: {<br>        &quot;cluster_id&quot;: &quot;&lt;cluster_id&gt;&quot;,<br>        ...<br>    }<br>}</pre><pre><strong>dataproc.json<br></strong>{<br>    ...<br>    &quot;production_env&quot;: {<br>        &quot;cluster_id&quot;: &quot;&lt;cluster_id&gt;&quot;,<br>        ...<br>    },<br>    &quot;foo_env&quot;: {<br>        &quot;cluster_id&quot;: &quot;&lt;cluster_id&gt;&quot;,<br>        ...<br>    },<br>    &quot;bar_env&quot;: {<br>        &quot;cluster_id&quot;: &quot;&lt;cluster_id&gt;&quot;,<br>        ...<br>    }<br>}</pre><h3>What’s Next?</h3><p>Accessing Spark logs seamlessly across multiple hosted services is yet another major hurdle that we’ll discuss — with details on unifying the Spark log viewability with our pipelines — in another blog post.</p><p>With the launch of our platform-agnostic Spark service, we are now able to execute the Spark jobs on the desired platform with just a configuration variable. In order to mitigate any Spark cluster downtime on either platform, we have also implemented an automatic Spark cluster failover service — which, of course, also calls for its own future blog post.</p><p>Since the incorporation of GCP Dataproc into the Onera pipelines, we have further extended the use of GCP in our architecture in conjunction with AWS, making Onera’s system architecture truly a hybrid cloud platform.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bd8b89284848" width="1" height="1" alt=""><hr><p><a href="https://medium.com/onera-engineering/spark-at-onera-a-hybrid-cloud-approach-bd8b89284848">Spark at Onera: A Hybrid Cloud Approach</a> was originally published in <a href="https://medium.com/onera-engineering">Engineering @ Onera</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>